[Qemu-discuss] IOMMU and custom PCIe Device in non-nested VMs

2019-08-21 Thread Paul Lancaster
I’m writing a custom NVMe device model and I need to test ATS functionality. For that, I need to enable the IOMMU. I start QEMU with the following command line, using a stock Ubuntu 16.04 image: % emu-system-x86_64 -M q35,accel=kvm,kernel_irqchip=off -m 8K -device intel-iommu,intremap=on,device

Re: [Qemu-discuss] IOMMU and custom PCIe Device in non-nested VMs

2019-08-21 Thread Paul Lancaster
Sorry, transcription error. Yes, I used intel-iommu=on on the guest command line.

Re: [Qemu-discuss] IOMMU and custom PCIe Device in non-nested VMs

2019-08-21 Thread Paul Lancaster
Correction to my correction: no “=on”. If I add “=on, I get ‘Parameter ‘driver’ missing' > On Aug 21, 2019, at 14:15, Paul Lancaster wrote: > > Sorry, transcription error. Yes, I used intel-iommu=on on the guest command > line. >

Re: [Qemu-discuss] IOMMU and custom PCIe Device in non-nested VMs

2019-08-21 Thread Maxim Levitsky
On Wed, 2019-08-21 at 13:37 -0700, Paul Lancaster wrote: > I’m writing a custom NVMe device model and I need to test ATS functionality. > For that, I need to enable the IOMMU. > > I start QEMU with the following command line, using a stock Ubuntu 16.04 > image: > > % emu-system-x86_64 -M q35,ac

Re: [Qemu-discuss] IOMMU and custom PCIe Device in non-nested VMs

2019-08-21 Thread Paul Lancaster
Doh! You meant iommu_intel=on kernel argument to the guest boot command line… (sorry, I’m a HW guy, not a linux/kernel guy). Just did. No change.

Re: [Qemu-discuss] IOMMU and custom PCIe Device in non-nested VMs

2019-08-21 Thread Maxim Levitsky
On Wed, 2019-08-21 at 14:17 -0700, Paul Lancaster wrote: > Correction to my correction: no “=on”. If I add “=on, I get ‘Parameter > ‘driver’ missing' > > > On Aug 21, 2019, at 14:15, Paul Lancaster > > wrote: > > > > Sorry, transcription error. Yes, I used intel-iommu=on on the guest command

Re: [Qemu-discuss] IOMMU and custom PCIe Device in non-nested VMs

2019-08-21 Thread Maxim Levitsky
On Wed, 2019-08-21 at 14:30 -0700, Paul Lancaster wrote: > Doh! You meant iommu_intel=on kernel argument to the guest boot command line… > (sorry, I’m a HW guy, not a linux/kernel guy). > > Just did. No change. You need intel_iommu=on on the guest's command line. Best regards, Maxim Levi