Re: [Qemu-devel] [PATCH 20/40] pci: use memory core for iommu support

2013-05-11 Thread Peter Maydell
On 11 May 2013 06:09, liu ping fan wrote: > On Wed, May 8, 2013 at 2:30 AM, Peter Maydell > wrote: >> Also, technically speaking get_system_memory() is never the >> right answer, though in practice it's good enough for our >> purposes. (returning get_system_memory() would allow a bus >> master D

Re: [Qemu-devel] [PATCH 20/40] pci: use memory core for iommu support

2013-05-10 Thread liu ping fan
On Wed, May 8, 2013 at 2:30 AM, Peter Maydell wrote: > On 7 May 2013 15:16, Paolo Bonzini wrote: >> From: Avi Kivity >> >> Use the new iommu support in the memory core for iommu support. The only >> user, spapr, is also converted, but it still provides a DMAContext >> interface until the non-PC

Re: [Qemu-devel] [PATCH 20/40] pci: use memory core for iommu support

2013-05-10 Thread Paolo Bonzini
Il 10/05/2013 15:07, Alexey Kardashevskiy ha scritto: >> @@ -2234,10 +2239,12 @@ static void pci_device_class_init(ObjectClass >> *klass, void *data) >> k->props = pci_props; >> } >> >> -void pci_setup_iommu(PCIBus *bus, PCIDMAContextFunc fn, void *opaque) >> +void pci_setup_iommu(PCIBus *

Re: [Qemu-devel] [PATCH 20/40] pci: use memory core for iommu support

2013-05-10 Thread Alexey Kardashevskiy
On 05/08/2013 12:16 AM, Paolo Bonzini wrote: > From: Avi Kivity > > Use the new iommu support in the memory core for iommu support. The only > user, spapr, is also converted, but it still provides a DMAContext > interface until the non-PCI bits switch to AddressSpace. > > Cc: Michael S. Tsirkin

Re: [Qemu-devel] [PATCH 20/40] pci: use memory core for iommu support

2013-05-07 Thread Peter Maydell
On 7 May 2013 15:16, Paolo Bonzini wrote: > From: Avi Kivity > > Use the new iommu support in the memory core for iommu support. The only > user, spapr, is also converted, but it still provides a DMAContext > interface until the non-PCI bits switch to AddressSpace. > > Cc: Michael S. Tsirkin >

[Qemu-devel] [PATCH 20/40] pci: use memory core for iommu support

2013-05-07 Thread Paolo Bonzini
From: Avi Kivity Use the new iommu support in the memory core for iommu support. The only user, spapr, is also converted, but it still provides a DMAContext interface until the non-PCI bits switch to AddressSpace. Cc: Michael S. Tsirkin Signed-off-by: Avi Kivity Signed-off-by: Paolo Bonzini