]> Git Repo - qemu.git/commitdiff
kvmvapic: Enter inactive state on hardware reset
authorJan Kiszka <[email protected]>
Tue, 3 Sep 2013 16:08:51 +0000 (18:08 +0200)
committerPaolo Bonzini <[email protected]>
Fri, 20 Sep 2013 10:37:52 +0000 (12:37 +0200)
ROM layout may change after reset of devices are hotplugged, so we have
to pick up the physical address again when the ROM is initialized. This
is best achieved by resetting the state to INACTIVE.

CC: [email protected]
Signed-off-by: Jan Kiszka <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
hw/i386/kvmvapic.c

index c66fbf2fdb332aa749763d7435a824c10e0bd57e..e4cea34865b863a1ff124f75ee00b6cabb0e8ec2 100644 (file)
@@ -510,9 +510,7 @@ static void vapic_reset(DeviceState *dev)
 {
     VAPICROMState *s = VAPIC(dev);
 
-    if (s->state == VAPIC_ACTIVE) {
-        s->state = VAPIC_STANDBY;
-    }
+    s->state = VAPIC_INACTIVE;
     vapic_enable_tpr_reporting(false);
 }
 
This page took 0.027943 seconds and 4 git commands to generate.