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)
commitcbe3f898d159f4a6ed12121672c823b780df32d3
tree0078a25798a55c8b514601f204f65094b4f21a5c
parentf15ac811e80b857a443476de60ce70d3e6049ae5
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