All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] AMD IOMMU emulation patches v3
@ 2010-08-15 19:27 ` Eduard - Gabriel Munteanu
  0 siblings, 0 replies; 34+ messages in thread
From: Eduard - Gabriel Munteanu @ 2010-08-15 19:27 UTC (permalink / raw)
  To: joro
  Cc: paul, blauwirbel, anthony, avi, kvm, qemu-devel,
	Eduard - Gabriel Munteanu

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


^ permalink raw reply	[flat|nested] 34+ messages in thread
* [PATCH 0/7] AMD IOMMU emulation patchset v4
@ 2010-08-28 14:54 Eduard - Gabriel Munteanu
  2010-08-28 14:54 ` [PATCH 2/7] pci: memory access API and IOMMU support Eduard - Gabriel Munteanu
  0 siblings, 1 reply; 34+ messages in thread
From: Eduard - Gabriel Munteanu @ 2010-08-28 14:54 UTC (permalink / raw)
  To: mst
  Cc: joro, blauwirbel, paul, avi, anthony, av1474, yamahata, kvm,
	qemu-devel, Eduard - Gabriel Munteanu

Hi,

I rebased my work on mst's PCI tree and, hopefully, fixed issues raised by
others. Here's a summary of the changes:
- made it apply to mst/pci
- moved some AMD IOMMU stuff in a reset handler
- dropped range_covers_range() (wasn't the same as ranges_overlap(), but the
  latter was better anyway)
- used 'expand' to remove tabs in pci_regs.h before applying the useful changes
- fixed the endianness mistake spotted by Blue (though ldq_phys wasn't needed)

As for Anthony's suggestion to simply sed-convert all devices, I'd rather go
through them one at a time and do it manually. 'sed' would not only mess
indentation, but also it isn't straightforward to get the 'PCIDevice *' you
need to pass to the pci_* helpers. (I'll try to focus on conversion next so we
can poison the old stuff.)

I also added (read "spelled it out myself") malc's ACK to the ac97 patch.
Nothing changed since his last review.

Please have a look and merge if you like it.


    Thanks,
    Eduard


Eduard - Gabriel Munteanu (7):
  pci: expand tabs to spaces in pci_regs.h
  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     |  663 ++++++++++++++++++++++++++
 hw/eepro100.c      |   86 ++--
 hw/ide/core.c      |   15 +-
 hw/ide/internal.h  |   39 ++
 hw/ide/macio.c     |    4 +-
 hw/ide/pci.c       |    7 +
 hw/pc.c            |    2 +
 hw/pci.c           |  185 ++++++++-
 hw/pci.h           |   74 +++
 hw/pci_ids.h       |    2 +
 hw/pci_internals.h |   12 +
 hw/pci_regs.h      | 1331 ++++++++++++++++++++++++++--------------------------
 hw/rtl8139.c       |   99 +++--
 qemu-common.h      |    1 +
 18 files changed, 1827 insertions(+), 768 deletions(-)
 create mode 100644 hw/amd_iommu.c
 rewrite hw/pci_regs.h (90%)


^ permalink raw reply	[flat|nested] 34+ messages in thread
* Re: [PATCH 0/7] AMD IOMMU emulation patchset v4
@ 2010-08-29 20:44 Blue Swirl
  2010-08-29 22:08 ` [PATCH 2/7] pci: memory access API and IOMMU support Eduard - Gabriel Munteanu
  0 siblings, 1 reply; 34+ messages in thread
From: Blue Swirl @ 2010-08-29 20:44 UTC (permalink / raw)
  To: Joerg Roedel
  Cc: Eduard - Gabriel Munteanu, mst, paul, avi, anthony, av1474,
	yamahata, kvm, qemu-devel

On Sun, Aug 29, 2010 at 9:55 AM, Joerg Roedel <joro@8bytes.org> wrote:
> On Sat, Aug 28, 2010 at 04:00:31PM +0000, Blue Swirl wrote:
>> On Sat, Aug 28, 2010 at 2:54 PM, Eduard - Gabriel Munteanu
>
>> > Please have a look and merge if you like it.
>>
>> The endianess bug still exists. I had also other comments to 2.
>
> I am very happy with this patch set. Besides your comments, is there
> anything else that prevents merging of this patch set? Paul, what is
> your opinion in this?

I also think it's nice piece of work. It would be good to fix the
CODING_STYLE (missing braces) problem in 2 before merging. The
endianess problem is not so much of a problem, my mistake.

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

end of thread, other threads:[~2010-09-05  7:17 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-15 19:27 [PATCH 0/7] AMD IOMMU emulation patches v3 Eduard - Gabriel Munteanu
2010-08-15 19:27 ` [Qemu-devel] " Eduard - Gabriel Munteanu
2010-08-15 19:27 ` [PATCH 1/7] pci: add range_covers_range() Eduard - Gabriel Munteanu
2010-08-15 19:27   ` [Qemu-devel] " Eduard - Gabriel Munteanu
2010-08-18  4:39   ` Isaku Yamahata
2010-08-18  4:39     ` Isaku Yamahata
2010-08-15 19:27 ` [PATCH 2/7] pci: memory access API and IOMMU support Eduard - Gabriel Munteanu
2010-08-15 19:27   ` [Qemu-devel] " Eduard - Gabriel Munteanu
2010-08-18  5:02   ` Isaku Yamahata
2010-08-18  5:02     ` Isaku Yamahata
2010-08-15 19:27 ` [PATCH 3/7] AMD IOMMU emulation Eduard - Gabriel Munteanu
2010-08-15 19:27   ` [Qemu-devel] " Eduard - Gabriel Munteanu
2010-08-16 17:57   ` Blue Swirl
2010-08-16 17:57     ` [Qemu-devel] " Blue Swirl
2010-08-15 19:27 ` [PATCH 4/7] ide: use the PCI memory access interface Eduard - Gabriel Munteanu
2010-08-15 19:27   ` [Qemu-devel] " Eduard - Gabriel Munteanu
2010-08-15 19:27 ` [PATCH 5/7] rtl8139: " Eduard - Gabriel Munteanu
2010-08-15 19:27   ` [Qemu-devel] " Eduard - Gabriel Munteanu
2010-08-15 19:27 ` [PATCH 6/7] eepro100: " Eduard - Gabriel Munteanu
2010-08-15 19:27   ` [Qemu-devel] " Eduard - Gabriel Munteanu
2010-08-15 19:27 ` [PATCH 7/7] ac97: " Eduard - Gabriel Munteanu
2010-08-15 19:27   ` [Qemu-devel] " Eduard - Gabriel Munteanu
2010-08-15 20:42   ` malc
2010-08-15 20:42     ` malc
2010-08-16  1:47 ` [PATCH 0/7] AMD IOMMU emulation patches v3 Anthony Liguori
2010-08-16  1:47   ` [Qemu-devel] " Anthony Liguori
2010-08-28 14:54 [PATCH 0/7] AMD IOMMU emulation patchset v4 Eduard - Gabriel Munteanu
2010-08-28 14:54 ` [PATCH 2/7] pci: memory access API and IOMMU support Eduard - Gabriel Munteanu
2010-09-02  5:28   ` Michael S. Tsirkin
2010-09-02  8:40     ` Eduard - Gabriel Munteanu
2010-09-02  9:49       ` Michael S. Tsirkin
2010-09-04  9:01         ` Blue Swirl
2010-09-05  7:10           ` Michael S. Tsirkin
2010-08-29 20:44 [PATCH 0/7] AMD IOMMU emulation patchset v4 Blue Swirl
2010-08-29 22:08 ` [PATCH 2/7] pci: memory access API and IOMMU support Eduard - Gabriel Munteanu
2010-08-29 22:11   ` Eduard - Gabriel Munteanu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.