]> git.baikalelectronics.ru Git - kernel.git/commit
x86/kvm/nVMX: tweak shadow fields
authorVitaly Kuznetsov <vkuznets@redhat.com>
Fri, 19 Oct 2018 14:16:03 +0000 (16:16 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 19 Oct 2018 16:45:14 +0000 (18:45 +0200)
commitee8a2a3be8fe4a61c04491a61efa76b5c721109d
tree0078a25798a55c8b514601f204f65094b4f21a5c
parent129a22c433862365335bbf3ce9ea7e2a6e2a2034
x86/kvm/nVMX: tweak shadow fields

It seems we have some leftovers from times when 'unrestricted guest'
wasn't exposed to L1. Stop shadowing GUEST_CS_{BASE,LIMIT,AR_SELECTOR}
and GUEST_ES_BASE, shadow GUEST_SS_AR_BYTES as it was found that some
hypervisors (e.g. Hyper-V without Enlightened VMCS) access it pretty
often.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c
arch/x86/kvm/vmx_shadow_fields.h