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

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