All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bei Guan <gbtju85@gmail.com>
To: Wei Liu <wei.liu2@citrix.com>
Cc: xen-devel <xen-devel@lists.xen.org>
Subject: Re: How does the Xen kernel change the vcpu number of a domain?
Date: Fri, 13 Jun 2014 22:36:25 +0800	[thread overview]
Message-ID: <CAEQjb-Q1MyHi68d+XuB80VR5CRy2+fRcNWTS2P6f3=XmTHL+BA@mail.gmail.com> (raw)
In-Reply-To: <20140613085924.GA5227@zion.uk.xensource.com>


[-- Attachment #1.1: Type: text/plain, Size: 1620 bytes --]

2014-06-13 16:59 GMT+08:00 Wei Liu <wei.liu2@citrix.com>:

> On Fri, Jun 13, 2014 at 03:19:08PM +0800, Bei Guan wrote:
> > Hi All,
> >
> > I try to figure out that how the command "xl vcpu-set" works. I find out
> > that the command "xl vcpu-set" calls the method
> > libxl__set_vcpuonline_xenstore() to set the state of the vcpu in the
> > Xenstore path /local/domain_id/cpu/vcpu_id/availability. The value of the
> > key "availability" is set to "online" while the the vcpu number will
> > increase. When the key is set to "offline" the vcpu number will decrease.
> >
> > What I want to know is how does the vcpu number increase/decrease
> according
> > to the vcpu state in the Xenstore?  How can I find the method that really
> > does the work?
> >
>
> Linux kernel code drivers/xen/cpu_hotplug.c. It sets up a xenstore watch
> for "cpu" xenstore node and handles event accordingly.
>
> Thank you very much for your reply.
I'm using Xen-4.1.2. I also find that the Xen code
tools/ioemu-qemu-xen/xenstore.c sets a Xenstore watch for
/loca/domain/domid/cpu. It handles the watch event in the method
xenstore_procees_vcpu_set_event(char **vec). So, what's difference between
the two Xenstore watch in the Linux kernel and qemu-xen? Is the Xenstore
watch in qemu-xen for HVM domains that are without PV drivers?

Thank you very much.



> Wei.
>
> > Any reply is appreciated. Thank you all very much.
> >
> > --
> > Best Regards,
> > Bei Guan
>
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.xen.org
> > http://lists.xen.org/xen-devel
>
>


-- 
Best Regards,
Bei Guan

[-- Attachment #1.2: Type: text/html, Size: 2528 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

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

  reply	other threads:[~2014-06-13 14:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-13  7:19 How does the Xen kernel change the vcpu number of a domain? Bei Guan
2014-06-13  8:59 ` Wei Liu
2014-06-13 14:36   ` Bei Guan [this message]
2014-06-16  9:12     ` Wei Liu

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='CAEQjb-Q1MyHi68d+XuB80VR5CRy2+fRcNWTS2P6f3=XmTHL+BA@mail.gmail.com' \
    --to=gbtju85@gmail.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.