qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 04/21] cpu: resume CPU from CPUClass.cpu_common_real


From: Igor Mammedov
Subject: [Qemu-devel] [PATCH 04/21] cpu: resume CPU from CPUClass.cpu_common_realizefn() when it is hot-plugged
Date: Tue, 23 Apr 2013 10:29:38 +0200

Signed-off-by: Igor Mammedov <address@hidden>
---
v2:
  s/resume_vcpu/cpu_resume/
v2:
 * remove unnecessary now sysemu/cpus.h header
 * move out introducing resume_vcpu() into a separate patch
---
 qom/cpu.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/qom/cpu.c b/qom/cpu.c
index 0c76712..abb20d0 100644
--- a/qom/cpu.c
+++ b/qom/cpu.c
@@ -60,6 +60,7 @@ static void cpu_common_realizefn(DeviceState *dev, Error 
**errp)
 {
     if (dev->hotplugged) {
         cpu_synchronize_post_init(CPU(dev));
+        cpu_resume(CPU(dev));
     }
 }
 
-- 
1.7.1




reply via email to

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