> From: Andrew Cooper [mailto:andrew.coop...@citrix.com]
> Sent: Monday, February 13, 2017 10:32 PM
> 
> A pcpu's LSTAR, STAR and SYSCALL_MASK MSRs are unconditionally switched when
> moving in and out of HVM vcpu context.  Two of these values are compile time
> constants, and the third is directly available in an existing per-cpu
> variable.
> 
> There is no need to save host state in vmx_cpu_up() into a different per-cpu
> structure, so drop all the infrastructure.  vmx_restore_host_msrs() is
> simplified to 3 plain WRMSR instructions.
> 
> Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com>

Acked-by: Kevin Tian <kevin.t...@intel.com>

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

Reply via email to