VMX: don't needlessly write CR4 guest/host mask
authorJan Beulich <jbeulich@suse.com>
Mon, 2 Jul 2018 11:12:10 +0000 (13:12 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 2 Jul 2018 11:12:10 +0000 (13:12 +0200)
commitc2c0f0db02623d9ad1ca70d1f1d759bb76715e47
tree1554f5112b66f072fb96fd8c7ff7b19a326fb85a
parent1d30850644a1d921c1d44b96ba7007cb943b9e0d
VMX: don't needlessly write CR4 guest/host mask

In shadow mode the field never changes from ~0UL, so there's no need for
a VMWRITE (or an update of its cached value).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/vmx/vmx.c