Re: [Qemu-devel] [PATCH v3 0/4] enable iommu with -device

2016-06-14 Thread Marcel Apfelbaum
On 06/13/2016 11:51 PM, Michael S. Tsirkin wrote: On Mon, Jun 13, 2016 at 05:36:56PM +0300, Marcel Apfelbaum wrote: Create the iommu device with '-device intel-iommu' instead of '-machine,iommu=on'. The device is part of the machine properties because we wanted to ensure is created before

Re: [Qemu-devel] [PATCH v3 0/4] enable iommu with -device

2016-06-13 Thread Michael S. Tsirkin
On Mon, Jun 13, 2016 at 05:36:56PM +0300, Marcel Apfelbaum wrote: > Create the iommu device with '-device intel-iommu' instead of > '-machine,iommu=on'. > > The device is part of the machine properties because we wanted > to ensure is created before any other PCI device. > > The alternative is

[Qemu-devel] [PATCH v3 0/4] enable iommu with -device

2016-06-13 Thread Marcel Apfelbaum
Create the iommu device with '-device intel-iommu' instead of '-machine,iommu=on'. The device is part of the machine properties because we wanted to ensure is created before any other PCI device. The alternative is to skip the bus_master_enable_region at the time the device is created. We can