Skip to content

AMD IOMMU emulation patches v3

Eduard - Gabriel Munteanu kvm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7pci: add range_covers_range()hw/pci.h+10 -01 reply
2/7pci: memory access API and IOMMU supporthw/pci.c hw/pci.h qemu-common.h+271 -11 reply
3/7AMD IOMMU emulationMakefile.target hw/amd_iommu.c hw/pc.c +2 more+695 -01 reply
4/7ide: use the PCI memory access interfacedma-helpers.c dma.h hw/ide/core.c +2 more+115 -130 replies
5/7rtl8139: use the PCI memory access interfacehw/rtl8139.c+56 -430 replies
6/7eepro100: use the PCI memory access interfacehw/eepro100.c+41 -370 replies
7/7ac97: use the PCI memory access interfacehw/ac97.c+3 -31 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] AMD IOMMU emulation patches v3

Hi,

Please have a look at these and merge if you wish. I hope I've addressed the issues people have raised.

Some changes from the previous RFC:
- included and updated the other two device patches
- moved map registration and invalidation management into PCI code
- AMD IOMMU emulation is always enabled (no more configure options)
- cleaned up code, I now use typedefs as suggested
- event logging cleanups

BTW, the change to pci_regs.h is properly aligned but the original file contains tabs.

Cheers,
Eduard

Eduard - Gabriel Munteanu (7):
pci: add range_covers_range()
pci: memory access API and IOMMU support
AMD IOMMU emulation
ide: use the PCI memory access interface
rtl8139: use the PCI memory access interface
eepro100: use the PCI memory access interface
ac97: use the PCI memory access interface

 Makefile.target   |    2 +
 dma-helpers.c     |   46 ++++-
 dma.h             |   21 ++-
 hw/ac97.c         |    6 +-
 hw/amd_iommu.c    |  688 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 hw/eepro100.c     |   78 ++++---
 hw/ide/core.c     |   15 +-
 hw/ide/internal.h |   39 +++
 hw/ide/pci.c      |    7 +
 hw/pc.c           |    2 +
 hw/pci.c          |  197 +++++++++++++++-
 hw/pci.h          |   84 +++++++
 hw/pci_ids.h      |    2 +
 hw/pci_regs.h     |    1 +
 hw/rtl8139.c      |   99 +++++----
 qemu-common.h     |    1 +
 16 files changed, 1191 insertions(+), 97 deletions(-)
 create mode 100644 hw/amd_iommu.c