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

2016-06-24 Thread Marcel Apfelbaum
On 06/24/2016 08:47 AM, Michael S. Tsirkin wrote: On Tue, Jun 14, 2016 at 10:19:32AM +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

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

2016-06-23 Thread Michael S. Tsirkin
On Tue, Jun 14, 2016 at 10:19:32AM +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 t

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

2016-06-14 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 cr