|
|
9ae3a8 |
From 1199c18251b039c80d66b0036e4f22bb2ce7dbd8 Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
From: Bandan Das <bsd@redhat.com>
|
|
|
9ae3a8 |
Date: Wed, 6 Nov 2013 02:11:02 +0100
|
|
|
9ae3a8 |
Subject: [PATCH 55/81] kvmvapic: Enter inactive state on hardware reset
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
RH-Author: Bandan Das <bsd@redhat.com>
|
|
|
9ae3a8 |
Message-id: <1383703863-4840-2-git-send-email-bsd@redhat.com>
|
|
|
9ae3a8 |
Patchwork-id: 55472
|
|
|
9ae3a8 |
O-Subject: [PATCH RHEL-7.0 qemu-kvm 2/3] kvmvapic: Enter inactive state on hardware reset
|
|
|
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 |
ROM layout may change after reset of devices are hotplugged, so we have
|
|
|
9ae3a8 |
to pick up the physical address again when the ROM is initialized. This
|
|
|
9ae3a8 |
is best achieved by resetting the state to INACTIVE.
|
|
|
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 c056bc3f3464cfae1c94b7dd633d3ec13b13b655)
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
hw/i386/kvmvapic.c | 4 +---
|
|
|
9ae3a8 |
1 file changed, 1 insertion(+), 3 deletions(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
hw/i386/kvmvapic.c | 4 +---
|
|
|
9ae3a8 |
1 files changed, 1 insertions(+), 3 deletions(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
diff --git a/hw/i386/kvmvapic.c b/hw/i386/kvmvapic.c
|
|
|
9ae3a8 |
index a2c7e8f..a96ea85 100644
|
|
|
9ae3a8 |
--- a/hw/i386/kvmvapic.c
|
|
|
9ae3a8 |
+++ b/hw/i386/kvmvapic.c
|
|
|
9ae3a8 |
@@ -504,9 +504,7 @@ static void vapic_reset(DeviceState *dev)
|
|
|
9ae3a8 |
{
|
|
|
9ae3a8 |
VAPICROMState *s = DO_UPCAST(VAPICROMState, busdev.qdev, dev);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
- if (s->state == VAPIC_ACTIVE) {
|
|
|
9ae3a8 |
- s->state = VAPIC_STANDBY;
|
|
|
9ae3a8 |
- }
|
|
|
9ae3a8 |
+ s->state = VAPIC_INACTIVE;
|
|
|
9ae3a8 |
vapic_enable_tpr_reporting(false);
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.7.1
|
|
|
9ae3a8 |
|