[RFC 0/2] Add support for bus lock VM exit

From: Chenyi Qiang
Date: Sun Jun 28 2020 - 04:52:02 EST


This serial adds the support for bus lock VM exit, which is a
sub-feature of bus lock detection in KVM. The left part concerning bus
lock debug exception support will be sent out once the kernel part is
ready.

The first patch applies Sean's refactor to vcpu_vmx.exit_reason at
https://patchwork.kernel.org/patch/11500659
It is necessary as bus lock VM exit adds a new modifier bit(bit 26) in
exit_reason field in VMCS.

The second patch is the enabling work for bus lock VM exit.

Document for Bus Lock VM exit is now available at the latest "Intel
Architecture Instruction Set Extensions Programming Reference".

Document Link:
https://software.intel.com/content/www/us/en/develop/download/intel-architecture-instruction-set-extensions-programming-reference.html

Chenyi Qiang (1):
KVM: VMX: Enable bus lock VM exit

Sean Christopherson (1):
KVM: VMX: Convert vcpu_vmx.exit_reason to a union

arch/x86/include/asm/kvm_host.h | 1 +
arch/x86/include/asm/vmx.h | 1 +
arch/x86/include/asm/vmxfeatures.h | 1 +
arch/x86/include/uapi/asm/vmx.h | 4 +-
arch/x86/kvm/vmx/nested.c | 42 ++++++++++------
arch/x86/kvm/vmx/vmx.c | 81 ++++++++++++++++++------------
arch/x86/kvm/vmx/vmx.h | 25 ++++++++-
arch/x86/kvm/x86.c | 1 +
8 files changed, 107 insertions(+), 49 deletions(-)

--
2.17.1