qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH] Fix bug for vcpu hotplug


From: Avi Kivity
Subject: [Qemu-devel] Re: [PATCH] Fix bug for vcpu hotplug
Date: Wed, 18 Aug 2010 10:33:28 +0300
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Thunderbird/3.1.1

 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.

--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]