]> 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)
commitfd3e71b16bc8349395b92911fd6082de8895e315
tree0078a25798a55c8b514601f204f65094b4f21a5c
parent614034a8f766e246d6335a85523f050d3d14f8f3
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