cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
9ae3a8
From 9d0c4b3d52464cb38b531e610a71ff1e0f6fcf61 Mon Sep 17 00:00:00 2001
9ae3a8
From: Bandan Das <bsd@redhat.com>
9ae3a8
Date: Wed, 6 Nov 2013 02:11:03 +0100
9ae3a8
Subject: [PATCH 56/81] kvmvapic: Clear also physical ROM address when entering INACTIVE state
9ae3a8
9ae3a8
RH-Author: Bandan Das <bsd@redhat.com>
9ae3a8
Message-id: <1383703863-4840-3-git-send-email-bsd@redhat.com>
9ae3a8
Patchwork-id: 55473
9ae3a8
O-Subject: [PATCH RHEL-7.0 qemu-kvm 3/3] kvmvapic: Clear also physical ROM address when entering INACTIVE state
9ae3a8
Bugzilla: 920021
9ae3a8
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
9ae3a8
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
9ae3a8
RH-Acked-by: Igor Mammedov <imammedo@redhat.com>
9ae3a8
RH-Acked-by: Alex Williamson <alex.williamson@redhat.com>
9ae3a8
9ae3a8
From: Jan Kiszka <jan.kiszka@siemens.com>
9ae3a8
9ae3a8
To avoid misinterpreting INACTIVE after migration as old qemu-kvm's
9ae3a8
STANDBY, also clear rom_state_paddr when going back to this state.
9ae3a8
9ae3a8
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
9ae3a8
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
9ae3a8
(cherry picked from commit 4357930b8a7d2fcff2d8121ec518117428a781e7)
9ae3a8
---
9ae3a8
 hw/i386/kvmvapic.c | 2 ++
9ae3a8
 1 file changed, 2 insertions(+)
9ae3a8
9ae3a8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
---
9ae3a8
 hw/i386/kvmvapic.c |    2 ++
9ae3a8
 1 files changed, 2 insertions(+), 0 deletions(-)
9ae3a8
9ae3a8
diff --git a/hw/i386/kvmvapic.c b/hw/i386/kvmvapic.c
9ae3a8
index a96ea85..577ae64 100644
9ae3a8
--- a/hw/i386/kvmvapic.c
9ae3a8
+++ b/hw/i386/kvmvapic.c
9ae3a8
@@ -505,6 +505,7 @@ static void vapic_reset(DeviceState *dev)
9ae3a8
     VAPICROMState *s = DO_UPCAST(VAPICROMState, busdev.qdev, dev);
9ae3a8
 
9ae3a8
     s->state = VAPIC_INACTIVE;
9ae3a8
+    s->rom_state_paddr = 0;
9ae3a8
     vapic_enable_tpr_reporting(false);
9ae3a8
 }
9ae3a8
 
9ae3a8
@@ -655,6 +656,7 @@ static void vapic_write(void *opaque, hwaddr addr, uint64_t data,
9ae3a8
         }
9ae3a8
         if (vapic_prepare(s) < 0) {
9ae3a8
             s->state = VAPIC_INACTIVE;
9ae3a8
+            s->rom_state_paddr = 0;
9ae3a8
             break;
9ae3a8
         }
9ae3a8
         break;
9ae3a8
-- 
9ae3a8
1.7.1
9ae3a8