[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] About VMX VMExit handler


  • To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Wu Bingzheng" <wubingzheng@xxxxxxx>
  • Date: Wed, 20 May 2009 15:44:06 +0800 (CST)
  • Delivery-date: Wed, 20 May 2009 00:44:54 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi,

In VM Exit handler, vmx_asm_vmexit_handler(), [xen-3.3.0/xen/arch/x86/hvm/vmx/entry.S:line65], it first saves guest's RIP, RSP, RFLAGS from VMCS to stack by VMREAD, then call vmx_vmexit_handler, and then recover guest's RIP, RSP and RFLAGS.

1. The VMCS is designed to save these registers, why need to save them into stack still?
2. What should I do, if I want to change the guest's RIP in vmx_vmexit_handler(), in order to let the guest load the new RIP on VM Entry? It doesn't work of changing the RIP in VMCS. Do I have to change the RIP in the stack?

Thanks,
Wu


穿越地震带 纪念汶川地震一周年
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.