Re: [PATCH 1/1] KVM: VMX: Update necessary state when guest enters long mode

2009-02-24 Thread Avi Kivity
Amit Shah wrote: setup_msrs() should be called when entering long mode to save the shadow state for the 64-bit guest state. Using vmx_set_efer() in enter_lmode() removes some duplicated code and also ensures we call setup_msrs(). We can safely pass the value of shadow_efer to vmx_set_efer() as

[PATCH 1/1] KVM: VMX: Update necessary state when guest enters long mode

2009-02-20 Thread Amit Shah
setup_msrs() should be called when entering long mode to save the shadow state for the 64-bit guest state. Using vmx_set_efer() in enter_lmode() removes some duplicated code and also ensures we call setup_msrs(). We can safely pass the value of shadow_efer to vmx_set_efer() as no other bits in