yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-intel_iommu-reset-intr_enabled-when-system-reset.patch

ae23c9
From b7229c79beaf790518048ff85b329eaa9cd6985f Mon Sep 17 00:00:00 2001
ae23c9
From: Peter Xu <peterx@redhat.com>
ae23c9
Date: Tue, 2 Apr 2019 07:25:29 +0100
ae23c9
Subject: [PATCH 5/7] intel_iommu: reset intr_enabled when system reset
ae23c9
MIME-Version: 1.0
ae23c9
Content-Type: text/plain; charset=UTF-8
ae23c9
Content-Transfer-Encoding: 8bit
ae23c9
ae23c9
RH-Author: Peter Xu <peterx@redhat.com>
ae23c9
Message-id: <20190402072531.23771-3-peterx@redhat.com>
ae23c9
Patchwork-id: 85299
ae23c9
O-Subject: [RHEL-8.1 qemu-kvm PATCH 2/4] intel_iommu: reset intr_enabled when system reset
ae23c9
Bugzilla: 1662272
ae23c9
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
ae23c9
RH-Acked-by: Wei Huang <wei@redhat.com>
ae23c9
RH-Acked-by: Xiao Wang <jasowang@redhat.com>
ae23c9
RH-Acked-by: Michael S. Tsirkin <mst@redhat.com>
ae23c9
ae23c9
This is found when I was debugging another problem.  Until now no bug
ae23c9
is reported with this but we'd better reset the IR status correctly
ae23c9
after a system reset.
ae23c9
ae23c9
Acked-by: Jason Wang <jasowang@redhat.com>
ae23c9
Signed-off-by: Peter Xu <peterx@redhat.com>
ae23c9
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
ae23c9
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
ae23c9
(cherry picked from commit d7bb469afa015e28a443faf1600a5a28b5fa483a)
ae23c9
Signed-off-by: Peter Xu <peterx@redhat.com>
ae23c9
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
ae23c9
---
ae23c9
 hw/i386/intel_iommu.c | 1 +
ae23c9
 1 file changed, 1 insertion(+)
ae23c9
ae23c9
diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c
ae23c9
index 7170266..e827c5a 100644
ae23c9
--- a/hw/i386/intel_iommu.c
ae23c9
+++ b/hw/i386/intel_iommu.c
ae23c9
@@ -3133,6 +3133,7 @@ static void vtd_init(IntelIOMMUState *s)
ae23c9
     s->root = 0;
ae23c9
     s->root_extended = false;
ae23c9
     s->dmar_enabled = false;
ae23c9
+    s->intr_enabled = false;
ae23c9
     s->iq_head = 0;
ae23c9
     s->iq_tail = 0;
ae23c9
     s->iq = 0;
ae23c9
-- 
ae23c9
1.8.3.1
ae23c9