qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/4] intel_iommu: misc fixes for error exposed after error_report_once()
@ 2019-01-16  3:08 Peter Xu
  2019-01-16  3:08 ` [Qemu-devel] [PATCH v2 1/4] intel_iommu: fix operator in vtd_switch_address_space Peter Xu
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Peter Xu @ 2019-01-16  3:08 UTC (permalink / raw)
  To: qemu-devel
  Cc: Michael S . Tsirkin, Paolo Bonzini, Marcel Apfelbaum,
	Alex Williamson, Eric Auger, peterx, Jason Wang

v2:
- dropping the last vfio patch
- add acked-by for Jason on 1&2 patches

Recently we have switched quite a few VT-d trace points into
error_report_once()s and this does expose some errors that we didn't
detect before (previously tracepoints won't trigger as long as
tracepoints weren't enabled).  These errors are not severe in that all
of them will not affect functionality of the guest otherwise we'll
notice them even earlier.  However it still worths to fix all of
them.  This patchset tries to fix quite a few errors like this.

All the errors could easily be triggered by rebooting a guest with
both vfio-pci device and vIOMMU, and we can see errors dumped in
stderr like:

qemu-kvm: vtd_iova_to_slpte: detected slpte permission error (iova=0xffd9ce00, level=0x2, slpte=0x0, write=1)
qemu-kvm: vtd_iommu_translate: detected translation failure (dev=02:00:00, iova=0x0)
qemu-kvm: vtd_interrupt_remap_msi: MSI address low 32 bit invalid: 0x0

Regarding to the patchset itself:

Patch 1:    fixes slpte permission error warning
Patch 2:    fixes intr_enabled flag reset missing
Patch 3-4:  fixes MSI translation warning

It was tested that this series can fix all the error messages observed
in below bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1662270
https://bugzilla.redhat.com/show_bug.cgi?id=1662291

Please have a look, thanks.

Peter Xu (4):
  intel_iommu: fix operator in vtd_switch_address_space
  intel_iommu: reset intr_enabled when system reset
  pci/msi: export msi_is_masked()
  i386/kvm: ignore masked irqs when update msi routes

 hw/i386/intel_iommu.c |  3 ++-
 hw/pci/msi.c          |  2 +-
 include/hw/pci/msi.h  |  1 +
 target/i386/kvm.c     | 14 +++++++++++---
 4 files changed, 15 insertions(+), 5 deletions(-)

-- 
2.17.1

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-01-22  3:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-16  3:08 [Qemu-devel] [PATCH v2 0/4] intel_iommu: misc fixes for error exposed after error_report_once() Peter Xu
2019-01-16  3:08 ` [Qemu-devel] [PATCH v2 1/4] intel_iommu: fix operator in vtd_switch_address_space Peter Xu
2019-01-16  3:08 ` [Qemu-devel] [PATCH v2 2/4] intel_iommu: reset intr_enabled when system reset Peter Xu
2019-01-16  3:08 ` [Qemu-devel] [PATCH v2 3/4] pci/msi: export msi_is_masked() Peter Xu
2019-01-16  3:08 ` [Qemu-devel] [PATCH v2 4/4] i386/kvm: ignore masked irqs when update msi routes Peter Xu
2019-01-21  8:32 ` [Qemu-devel] [PATCH v2 0/4] intel_iommu: misc fixes for error exposed after error_report_once() no-reply
2019-01-21  9:35   ` Peter Xu
2019-01-22  2:57     ` Alexey Kardashevskiy
2019-01-22  3:08       ` Michael S. Tsirkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).