diff options
author | Peter Xu <peterx@redhat.com> | 2019-01-16 11:08:13 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2019-02-05 10:58:33 -0500 |
commit | d7bb469afa015e28a443faf1600a5a28b5fa483a (patch) | |
tree | 1b9648d1b6bedd476ac4646c856d425f59e1d8df /hw/i386 | |
parent | 2a078b1080917dc6143783e1dd645e188d11dc8f (diff) | |
download | qemu-d7bb469afa015e28a443faf1600a5a28b5fa483a.zip qemu-d7bb469afa015e28a443faf1600a5a28b5fa483a.tar.gz qemu-d7bb469afa015e28a443faf1600a5a28b5fa483a.tar.bz2 |
intel_iommu: reset intr_enabled when system reset
This is found when I was debugging another problem. Until now no bug
is reported with this but we'd better reset the IR status correctly
after a system reset.
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/i386')
-rw-r--r-- | hw/i386/intel_iommu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c index 6d5cc1d..ee22e75 100644 --- a/hw/i386/intel_iommu.c +++ b/hw/i386/intel_iommu.c @@ -3138,6 +3138,7 @@ static void vtd_init(IntelIOMMUState *s) s->root = 0; s->root_extended = false; s->dmar_enabled = false; + s->intr_enabled = false; s->iq_head = 0; s->iq_tail = 0; s->iq = 0; |