From: Christoph Egger <Christoph.Egger@amd.com>
To: xen-devel@lists.xensource.com
Cc: "Liu, Jinsong" <jinsong.liu@intel.com>,
"Jiang, Yunhong" <yunhong.jiang@intel.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
"Li, Xin" <xin.li@intel.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: [PATCH] qemu-xen: fix cpu hotplug
Date: Fri, 3 Sep 2010 09:34:01 +0200 [thread overview]
Message-ID: <201009030934.03106.Christoph.Egger@amd.com> (raw)
In-Reply-To: <BC00F5384FCFC9499AF06F92E8B78A9E1837FFC067@shsmsx502.ccr.corp.intel.com>
On Friday 03 September 2010 08:28:53 Liu, Jinsong wrote:
> Ian Jackson wrote:
> > Stefano Stabellini writes ("[Xen-devel] [PATCH] qemu-xen: fix cpu
> >
> > hotplug"):
> >> qemu-xen: fix cpu hotplug
> >>
> >> The current xenstore watch path for a vcpu-set event is wrong and is
> >> also wrong the code to parse it. This patch fixes both of them:
> >
> > Thanks. So it seems you're saying it's completely broken in
> > xen-unstable.
>
> Stabellini, I read your attached patch, it's OK.
> In fact, we firstly implemented xenstore watch by same scheme of your
> patch, watching each cpu node status:
> /local/domain/xx/cpu/yy/availability=offline (online)
>
> However, we finally didn't use this scheme. We watch 'common' node instead:
> /local/domain/xx/cpu
> in this way, only 1 watch point need.
> Considering vcpu number may become more and more in the future (say, more
> than 128), it's more simple and reasonable. (Watches can be set at points
> in the hierarchy and an individual watch will be triggered when anything at
> or below that point in the hierachy changes)
Does this scheme allow to say how many cores per cpu exist ?
When you run a Windows guest with a license for one cpu socket,
then you can use 4 cores. But if one cpu is equal to one socket,
then you can't use SMP for the Windows guest.
Christoph
>
> > I have CC'd a bunch of Intel folks who were doing some other
> > work on cpu hotplug. They were dealing with a race when multiple CPUs
> > were added at once.
> >
> > So I think there must be some confusion. Perhaps xl and xend have
> > different ideas about what the xenstore syntax is for these
> > operations ?
> >
> > Jinsong Liu et al: would you care to comment ? Particularly about
> >
> > this:
> >> A xenstore vcpu hotplug command is of the following form:
> >> path: /local/domain/DOMID/cpu/VCPU_NUMBER/availability
> >> values: "online" or "offline"
>
> Yes, I think there must be some confusion.
> Currently 'xm vcpu-set' command works fine with both PV and HVM vcpu
> hotplug.
>
> Stabellini/Jackson, would your please tell me what xl recently happened for
> vcpu hotplug? is there any different ideas xl and xend about xenstore
> syntax?
> (Each time 'xm vcpu-set' executed, xend will write all xenstore cpu node
> status)
>
> > That doesn't seem to match up with what's in xend, which seems to
> > write "cpu_avail" in the vm tree.
> >
> > Thanks,
> > Ian.
--
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
next prev parent reply other threads:[~2010-09-03 7:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-02 13:17 [PATCH] qemu-xen: fix cpu hotplug Stefano Stabellini
2010-09-02 17:30 ` Ian Jackson
2010-09-03 6:28 ` Liu, Jinsong
2010-09-03 7:34 ` Christoph Egger [this message]
2010-09-03 7:47 ` Liu, Jinsong
2010-09-03 10:10 ` Stefano Stabellini
2010-09-03 17:27 ` Ian Jackson
2010-09-03 18:52 ` Liu, Jinsong
2010-09-06 11:00 ` Stefano Stabellini
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=201009030934.03106.Christoph.Egger@amd.com \
--to=christoph.egger@amd.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=jinsong.liu@intel.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
--cc=xin.li@intel.com \
--cc=yunhong.jiang@intel.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 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.