Blame 0034-kvmvapic-Enter-inactive-state-on-hardware-reset.patch

298366
From 7ea8a3c12aa49efc8f503a019dd764f8a0add2cb Mon Sep 17 00:00:00 2001
298366
From: Jan Kiszka <jan.kiszka@siemens.com>
298366
Date: Tue, 3 Sep 2013 18:08:51 +0200
298366
Subject: [PATCH] kvmvapic: Enter inactive state on hardware reset
298366
298366
ROM layout may change after reset of devices are hotplugged, so we have
298366
to pick up the physical address again when the ROM is initialized. This
298366
is best achieved by resetting the state to INACTIVE.
298366
298366
CC: qemu-stable@nongnu.org
298366
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
298366
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
298366
(cherry picked from commit c056bc3f3464cfae1c94b7dd633d3ec13b13b655)
298366
298366
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
298366
---
298366
 hw/i386/kvmvapic.c | 4 +---
298366
 1 file changed, 1 insertion(+), 3 deletions(-)
298366
298366
diff --git a/hw/i386/kvmvapic.c b/hw/i386/kvmvapic.c
298366
index 7ac0fe1..f2e335d 100644
298366
--- a/hw/i386/kvmvapic.c
298366
+++ b/hw/i386/kvmvapic.c
298366
@@ -510,9 +510,7 @@ static void vapic_reset(DeviceState *dev)
298366
 {
298366
     VAPICROMState *s = VAPIC(dev);
298366
 
298366
-    if (s->state == VAPIC_ACTIVE) {
298366
-        s->state = VAPIC_STANDBY;
298366
-    }
298366
+    s->state = VAPIC_INACTIVE;
298366
     vapic_enable_tpr_reporting(false);
298366
 }
298366