target/i386: Add bus lock debug exception support
commit06e878b413766778a53be3d25c0373a23679d039
authorChenyi Qiang <chenyi.qiang@intel.com>
Tue, 2 Feb 2021 09:02:24 +0000 (2 17:02 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 25 Feb 2021 13:14:33 +0000 (25 14:14 +0100)
tree5fbaf0ce96a47137306a10bd2321394951f081e8
parent3a2e982d4774993290a12c75f5918e3caec80d2b
target/i386: Add bus lock debug exception support

Bus lock debug exception is a feature that can notify the kernel by
generate an #DB trap after the instruction acquires a bus lock when
CPL>0. This allows the kernel to enforce user application throttling or
mitigations.

This feature is enumerated via CPUID.(EAX=7,ECX=0).ECX[bit 24].

Signed-off-by: Chenyi Qiang <chenyi.qiang@intel.com>
Message-Id: <20210202090224.13274-1-chenyi.qiang@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c
target/i386/cpu.h