]> xenbits.xensource.com Git - xen.git/commit
x86/hvm: Drop restore boolean from hvm_cr4_guest_valid_bits()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 29 Sep 2020 15:51:07 +0000 (16:51 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 6 Oct 2020 11:28:37 +0000 (12:28 +0100)
commit345fd6d01e6730ea9024ae3b98e1832c35b34a28
treebf7891f48f3d39771a930a43833729b45b3cdebe
parent3600118a52e75e10800806fdd05eba13adc87347
x86/hvm: Drop restore boolean from hvm_cr4_guest_valid_bits()

Previously, migration was reordered so the CPUID data was available before
register state.  nestedhvm_enabled() has recently been made accurate for the
entire lifetime of the domain.

Therefore, we can drop the bodge in hvm_cr4_guest_valid_bits() which existed
previously to tolerate a guests' CR4 being set/restored before
HVM_PARAM_NESTEDHVM.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/hvm/domain.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/svm/svmdebug.c
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/hvm/vmx/vvmx.c
xen/include/asm-x86/hvm/hvm.h