aboutsummaryrefslogtreecommitdiff
path: root/kvm-stub.c
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2013-04-23 10:29:36 +0200
committerAndreas Färber <afaerber@suse.de>2013-05-01 13:04:17 +0200
commit13eed94ed5617b98e657163490584dc2a0cc4b32 (patch)
tree04a4408ad812a18b1c161131827aa6a6fbdd70d1 /kvm-stub.c
parentc4cfef5e8a6371aa5e6577f2b980315c2dc46cfb (diff)
cpu: Call cpu_synchronize_post_init() from DeviceClass::realize()
If hotplugged, synchronize CPU state to KVM. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'kvm-stub.c')
-rw-r--r--kvm-stub.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kvm-stub.c b/kvm-stub.c
index b22837828e..b2c8f9b02d 100644
--- a/kvm-stub.c
+++ b/kvm-stub.c
@@ -25,6 +25,7 @@ bool kvm_async_interrupts_allowed;
bool kvm_irqfds_allowed;
bool kvm_msi_via_irqfd_allowed;
bool kvm_gsi_routing_allowed;
+bool kvm_allowed;
int kvm_init_vcpu(CPUState *cpu)
{