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

[Xen-devel] where the vcpu-s switching is happen

  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: xennn <openbg@xxxxxx>
  • Date: Sun, 2 Mar 2014 10:44:22 -0800 (PST)
  • Delivery-date: Sun, 02 Mar 2014 18:44:29 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

Hi all,

I wlould like to ask where is the code where the switching of vcpu-s on one
physical cpu is happening?

If i use x86 and vmx mode i think that the actual switch i happen in 
vmx_ctxt_switch_to(struct vcpu *v) at vmx.c file. 

I think the vmx_restore_guest_msrs(v) function is responsible for restoring
the registers of the guest and the RIP register - which is the real task
switching between vcpus. 

i'm not sure but i would like to ask where the RIP register is changed with
the new vcpu's instuction pointer?

as far as i know the RIP register is stored at VMCS controll stucture and it
is loaded when that structure become active ... 

plase help with some hints about this proccess.

Best Regards

View this message in context: 
Sent from the Xen - Dev mailing list archive at Nabble.com.

Xen-devel mailing list



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