xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: xennn <openbg@abv.bg>
To: xen-devel@lists.xensource.com
Subject: where the vcpu-s switching is happen
Date: Sun, 2 Mar 2014 10:44:22 -0800 (PST)	[thread overview]
Message-ID: <1393785862763-5721477.post@n5.nabble.com> (raw)

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: http://xen.1045712.n5.nabble.com/where-the-vcpu-s-switching-is-happen-tp5721477.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

             reply	other threads:[~2014-03-02 18:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-02 18:44 xennn [this message]
2014-03-03  1:58 ` where the vcpu-s switching is happen Ian Campbell
  -- strict thread matches above, loose matches on Subject: below --
2014-03-02 18:43 xennn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1393785862763-5721477.post@n5.nabble.com \
    --to=openbg@abv.bg \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).