Re: [Qemu-devel] [RFC PATCH 1/4] pci: memory access API and IOMMU support

2010-08-05 Thread Eduard - Gabriel Munteanu
On Thu, Aug 05, 2010 at 09:23:30PM +, Blue Swirl wrote: > On Wed, Aug 4, 2010 at 10:32 PM, Eduard - Gabriel Munteanu [snip] > > @@ -58,6 +58,10 @@ struct PCIBus { > > ?? ?? ?? ??Keep a count of the number of devices with raised IRQs. ??*/ > > ?? ?? int nirq; > > ?? ?? int *irq_count; > > + >

Re: [Qemu-devel] [RFC PATCH 1/4] pci: memory access API and IOMMU support

2010-08-05 Thread Blue Swirl
On Wed, Aug 4, 2010 at 10:32 PM, Eduard - Gabriel Munteanu wrote: > PCI devices should access memory through pci_memory_*() instead of > cpu_physical_memory_*(). This also provides support for translation and > access checking in case an IOMMU is emulated. > > Memory maps are treated as remote IOT

[Qemu-devel] [RFC PATCH 1/4] pci: memory access API and IOMMU support

2010-08-04 Thread Eduard - Gabriel Munteanu
PCI devices should access memory through pci_memory_*() instead of cpu_physical_memory_*(). This also provides support for translation and access checking in case an IOMMU is emulated. Memory maps are treated as remote IOTLBs (that is, translation caches belonging to the IOMMU-aware device itself)