Re: [PATCH for QEMU v2] hw/vfio: Add VMD Passthrough Quirk

2020-05-13 Thread Alex Williamson
On Wed, 13 May 2020 19:26:34 + "Derrick, Jonathan" wrote: > On Wed, 2020-05-13 at 11:55 -0600, Alex Williamson wrote: > > On Wed, 13 May 2020 00:35:47 + > > "Derrick, Jonathan" wrote: > > > > > Hi Alex, > > > > > > > [snip] > > > > > Thanks for the confirmation. The approach se

Re: [PATCH for QEMU v2] hw/vfio: Add VMD Passthrough Quirk

2020-05-13 Thread Derrick, Jonathan
On Wed, 2020-05-13 at 11:55 -0600, Alex Williamson wrote: > On Wed, 13 May 2020 00:35:47 + > "Derrick, Jonathan" wrote: > > > Hi Alex, > > > > [snip] > > Thanks for the confirmation. The approach seems ok, but a subtle > side-effect of MemoryRegion quirks is that we're going to trap the

Re: [PATCH for QEMU v2] hw/vfio: Add VMD Passthrough Quirk

2020-05-13 Thread Alex Williamson
On Wed, 13 May 2020 00:35:47 + "Derrick, Jonathan" wrote: > Hi Alex, > > I'm probably not getting the translation technical details correct. > > On Mon, 2020-05-11 at 16:59 -0600, Alex Williamson wrote: > > On Mon, 11 May 2020 15:01:27 -0400 > > Jon Derrick wrote: > > > > > The VMD endp

Re: [PATCH for QEMU v2] hw/vfio: Add VMD Passthrough Quirk

2020-05-12 Thread Derrick, Jonathan
Hi Alex, I'm probably not getting the translation technical details correct. On Mon, 2020-05-11 at 16:59 -0600, Alex Williamson wrote: > On Mon, 11 May 2020 15:01:27 -0400 > Jon Derrick wrote: > > > The VMD endpoint provides a real PCIe domain to the guest, including > > Please define VMD. I'

Re: [PATCH for QEMU v2] hw/vfio: Add VMD Passthrough Quirk

2020-05-11 Thread Alex Williamson
On Mon, 11 May 2020 15:01:27 -0400 Jon Derrick wrote: > The VMD endpoint provides a real PCIe domain to the guest, including Please define VMD. I'm sure this is obvious to many, but I've had to do some research. The best TL;DR summary I've found is Keith's original commit 185a383ada2e adding t

[PATCH for QEMU v2] hw/vfio: Add VMD Passthrough Quirk

2020-05-11 Thread Jon Derrick
The VMD endpoint provides a real PCIe domain to the guest, including bridges and endpoints. Because the VMD domain is enumerated by the guest kernel, the guest kernel will assign Guest Physical Addresses to the downstream endpoint BARs and bridge windows. When the guest kernel performs MMIO to VMD