summaryrefslogtreecommitdiff
path: root/arch/x86/include/uapi/asm/msgbuf.h
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2019-04-18 18:32:50 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2019-04-30 21:32:22 +0200
commit191c8137a93989825f0e9f78a198367dde677216 (patch)
treeff52632c417b12349903c076c23e0c06eeb82ea5 /arch/x86/include/uapi/asm/msgbuf.h
parent19e38336d71d22e27b60e70334ad572d4e3d0042 (diff)
x86/kvm: Implement HWCR support
The hardware configuration register has some useful bits which can be used by guests. Implement McStatusWrEn which can be used by guests when injecting MCEs with the in-kernel mce-inject module. For that, we need to set bit 18 - McStatusWrEn - first, before writing the MCi_STATUS registers (otherwise we #GP). Add the required machinery to do so. Signed-off-by: Borislav Petkov <bp@suse.de> Cc: Jim Mattson <jmattson@google.com> Cc: Joerg Roedel <joro@8bytes.org> Cc: KVM <kvm@vger.kernel.org> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Radim Krčmář <rkrcmar@redhat.com> Cc: Sean Christopherson <sean.j.christopherson@intel.com> Cc: Tom Lendacky <thomas.lendacky@amd.com> Cc: Tony Luck <tony.luck@intel.com> Cc: Yazen Ghannam <Yazen.Ghannam@amd.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include/uapi/asm/msgbuf.h')
0 files changed, 0 insertions, 0 deletions