All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Novotny <minovotn@redhat.com>
To: xen-devel@lists.xensource.com
Subject: Re: RE: [ PATCH 4/4 ] HVM vcpu add/remove: qemu logic for vcpu add/revmoe
Date: Mon, 14 Dec 2009 11:04:11 +0100	[thread overview]
Message-ID: <4B260D9B.40400@redhat.com> (raw)
In-Reply-To: <EB8593BCECAB3D40A8248BE0B6400A382E8742FF@shzsmsx502.ccr.corp.intel.com>

On 12/14/2009 10:54 AM, Liu, Jinsong wrote:
> Keir Fraser wrote:
>    
>> On 14/12/2009 08:04, "Keir Fraser"<keir.fraser@eu.citrix.com>  wrote:
>>
>>      
>>> On 13/12/2009 18:05, "Liu, Jinsong"<jinsong.liu@intel.com>  wrote:
>>>
>>>        
>>>> HVM vcpu add/remove: qemu logic for vcpu add/revmoe
>>>>
>>>> -- at qemu side, get vcpu_avail which used for original cpu avail
>>>> map;
>>>> -- setup gpe ioread/iowrite at qmeu;
>>>> -- setup vcpu add/remove user interface through monitor;
>>>> -- setup SCI logic;
>>>>          
>>> I'm guessing because this adds a new command-line option that I need
>>> this checked into the qemu tree before I can apply your first patch
>>> (1/4)? Otherwise that patch will break domain creation as qemu will
>>> exit with an 'unrecognised option' error. So I need Ian Jackson to
>>> apply this one and send me an updated QEMU_TAG first.
>>>        
>> As of c/s 20640 all your Xen patches are checked in. I modified them
>> a bit so you may want to take a look. I commented out the one line
>> that actually sets the new qemu option, until that option is
>> supported by our qemu. I think there is a question over whether the
>> new qemu option should (a) have a better name (I called it
>> vcpu_online[] in hvm_info structure); and (b) should have a more
>> user-friendly format (currently passing a decimal number interpreted
>> as a bitmap - perhaps should be a list of vcpus instead).
>>
>>   -- Keir
>>      
> Thanks!
>
> Currently at xm level, HVM config keep compatible with PV config (patch 20495, 20502), they both set maxvcpus/ avail vcpus at config file as
> maxvcpus = xxx
> vcpus = yyy
> and both HVM and PV can dynamic add/remove vcpus now.
>
> One question is, patch 20384/ 20386/ 20389 and qemu patch 3140780e451d3919ef2c81f91ae0ebe3f286eb06 extend HVM vcpus max to 128, however, current xm and xend python logic seems only support max 64 since xm/xend now interpret vcpu bitmap to a 'long'.
> I agree that the bitmap would better be replaced by a list of vcpus so that vcpus number will not be limited in the future.
>    

Well, actually I did the patches 20495 and 20502 and I used the existing 
infrastructure of vcpus and vcpu_avail here so there were no changes in 
current infrastructure since I wanted to preserve it. That's the reason 
why my patch was done this way. Changing existing infrastructure could 
introduce some problems with that so that's why maxvcpus values is going 
to be vcpus in xend python as well as vcpus is set the bitmask of 
vcpu_avail.

Regards,
Michal
> Regards,
> Jinsong
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>    

  reply	other threads:[~2009-12-14 10:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-13 18:05 [ PATCH 4/4 ] HVM vcpu add/remove: qemu logic for vcpu add/revmoe Liu, Jinsong
2009-12-14  8:04 ` Keir Fraser
2009-12-14  9:25   ` Liu, Jinsong
2009-12-14  9:34     ` Keir Fraser
2009-12-21  6:26     ` Liu, Jinsong
2009-12-14  9:33   ` Keir Fraser
2009-12-14  9:54     ` Liu, Jinsong
2009-12-14 10:04       ` Michal Novotny [this message]
2009-12-15 11:31     ` Liu, Jinsong
2009-12-14 16:25 ` Konrad Rzeszutek Wilk

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=4B260D9B.40400@redhat.com \
    --to=minovotn@redhat.com \
    --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 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.