diff mbox

[04/16] cpu: resume CPU from CPUClass.cpu_common_realizefn() when it is hot-plugged

Message ID 1366063976-4909-5-git-send-email-imammedo@redhat.com
State New
Headers show

Commit Message

Igor Mammedov April 15, 2013, 10:12 p.m. UTC
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
---
v2:
 * remove unnecessary now sysemu/cpus.h header
 * move out introducing resume_vcpu() into a separate patch
---
 qom/cpu.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Eduardo Habkost April 18, 2013, 5:04 p.m. UTC | #1
On Tue, Apr 16, 2013 at 12:12:44AM +0200, Igor Mammedov wrote:
> Signed-off-by: Igor Mammedov <imammedo@redhat.com>

Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>


> ---
> v2:
>  * remove unnecessary now sysemu/cpus.h header
>  * move out introducing resume_vcpu() into a separate patch
> ---
>  qom/cpu.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/qom/cpu.c b/qom/cpu.c
> index 0c76712..40a4259 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));
> +        resume_vcpu(CPU(dev));
>      }
>  }
>  
> -- 
> 1.8.2
> 
>
diff mbox

Patch

diff --git a/qom/cpu.c b/qom/cpu.c
index 0c76712..40a4259 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));
+        resume_vcpu(CPU(dev));
     }
 }