All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: Avi Kivity <avi@redhat.com>
Cc: "Liu, Jinsong" <jinsong.liu@intel.com>,
	"Yang, Sheng" <sheng.yang@intel.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
	"Li, Xin" <xin.li@intel.com>
Subject: Re: [Qemu-devel] Re: [PATCH] Fix bug for vcpu hotplug
Date: Thu, 19 Aug 2010 14:04:27 -0500	[thread overview]
Message-ID: <4C6D803B.2000806@codemonkey.ws> (raw)
In-Reply-To: <4C6D4F21.6070605@redhat.com>

On 08/19/2010 10:34 AM, Avi Kivity wrote:
>  On 08/19/2010 06:24 PM, Anthony Liguori wrote:
>> On 08/18/2010 02:33 AM, Avi Kivity wrote:
>>>  On 08/18/2010 10:17 AM, Liu, Jinsong wrote:
>>>> During test, we found qemu-kvm has a bug result in guestos shutdown 
>>>> when vcpu hotadd.
>>>> This patch is to fix the bug, allow hotplug for sysbus qdev.
>>>>
>>>> --- a/hw/qdev.c
>>>> +++ b/hw/qdev.c
>>>> @@ -108,6 +108,7 @@ DeviceState *qdev_create(BusState *bus, const 
>>>> char *name)
>>>>       if (!bus) {
>>>>           if (!main_system_bus) {
>>>>               main_system_bus = qbus_create(&system_bus_info, NULL, 
>>>> "main-system-bus");
>>>> +            main_system_bus->allow_hotplug = 1;
>>>>           }
>>>>           bus = main_system_bus;
>>>>       }
>>>
>>>
>>> Looks reasonable to me.
>>
>> Not really to me.
>>
>> SysBus does not support hotplugging and CPU hot plug shouldn't have 
>> anything to do with qdev hotplug.
>>
>> Can you explain a bit more why this is needed?
>>
>
> On cpu hotplug an apic is added, and apics live on main_system_bus.

That's the problem then.  An APIC does not live on any bus and that's 
where the problem ought to be fixed.

Regards,

Anthony Liguori



      reply	other threads:[~2010-08-19 19:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-06  3:36 [PATCH] Fix bug for vcpu hotplug Liu, Jinsong
2010-08-15 12:06 ` Avi Kivity
2010-08-18  7:17   ` Liu, Jinsong
2010-08-18  7:17     ` [Qemu-devel] " Liu, Jinsong
2010-08-18  7:33     ` Avi Kivity
2010-08-18  7:33       ` [Qemu-devel] " Avi Kivity
2010-08-19 15:24       ` Anthony Liguori
2010-08-19 15:34         ` Avi Kivity
2010-08-19 19:04           ` Anthony Liguori [this message]

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=4C6D803B.2000806@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=avi@redhat.com \
    --cc=jinsong.liu@intel.com \
    --cc=kvm@vger.kernel.org \
    --cc=qemu-devel@nongnu.org \
    --cc=sheng.yang@intel.com \
    --cc=xin.li@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.