[PATCH v3 1/2] PCI: vmd: Filter resource type bits from shadow register

2020-05-27 Thread Jon Derrick
-provisioned front, it could lead to resource conflict issues with VMD or those devices. Fixes: a1a30170138c9 ("PCI: vmd: Fix shadow offsets to reflect spec changes") Signed-off-by: Jon Derrick --- drivers/pci/controller/vmd.c | 6 -- 1 file changed, 4 insertions(+), 2 deletion

[PATCH v3 2/2] PCI: vmd: Use Shadow MEMBAR registers for QEMU/KVM guests

2020-05-27 Thread Jon Derrick
VMDs which don't natively support this feature. This patch adds this mode and updates the supported device list to allow this feature to be used on these VMDs. Signed-off-by: Jon Derrick --- drivers/pci/controller/vmd.c | 44 ++-- 1 file changed, 38

[PATCH v3 0/2] VMD endpoint passthrough support

2020-05-27 Thread Jon Derrick
QEMU's so that the guest driver could match against it. This was unnecessary as the VMLOCK register and shadow membar registers could be safely emulated. Future VMDs will be aligned on these register bits. Jon Derrick (2): PCI: vmd: Filter resource type bits from shadow register PCI:

[PATCH v3 FOR QEMU v3] hw/vfio: Add VMD Passthrough Quirk

2020-05-27 Thread Jon Derrick
-passthrough device for all VMD device ids which don't natively assist with passthrough. The Linux VMD driver is updated to check for this new vendor-specific capability. Signed-off-by: Jon Derrick --- hw/vfio/pci-quirks.c | 84 +--- 1 file changed, 72 inser

[PATCH v2 1/2] PCI: vmd: Filter resource type bits from shadow register

2020-05-11 Thread Jon Derrick
-provisioned front, it could lead to resource conflict issues with VMD or those devices. Fixes: a1a30170138c9 ("PCI: vmd: Fix shadow offsets to reflect spec changes") Signed-off-by: Jon Derrick --- drivers/pci/controller/vmd.c | 6 -- 1 file changed, 4 insertions(+), 2 deletion

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

2020-05-11 Thread Jon Derrick
order to support existing VMDs, this quirk emulates the VMLOCK and HPA shadow registers for all VMD device ids which don't natively assist with passthrough. The Linux VMD driver is updated to allow existing VMD devices to query VMLOCK for passthrough support. Signed-off-by: Jon Derrick --- hw

[PATCH v2 2/2] PCI: vmd: Use Shadow MEMBAR registers for QEMU/KVM guests

2020-05-11 Thread Jon Derrick
ed to emulate this config space register and the shadow membar registers for VMDs which don't natively support this feature. This patch updates the supported device list to allow this feature to be used on these VMDs. Signed-off-by: Jon Derrick --- drivers/pci/controller/vmd.c | 15 ++---

[PATCH v2 0/2] VMD endpoint passthrough support

2020-05-11 Thread Jon Derrick
ster and shadow membar registers could be safely emulated. Future VMDs will be aligned on these register bits. Added the resource bit filtering patch that got lost in the mailserver. v1: https://lore.kernel.org/linux-pci/20200422171444.10992-1-jonathan.derr...@intel.com/ Jon Derrick (2): P

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

2020-04-22 Thread Jon Derrick
QEMU subsystem id to enable this feature. Signed-off-by: Jon Derrick --- hw/vfio/pci-quirks.c | 119 +++ hw/vfio/pci.c| 7 +++ hw/vfio/pci.h| 2 + hw/vfio/trace-events | 4 ++ 4 files changed, 132 insertions(+) diff --git a/hw/vfi

[PATCH 0/1] KVM support for VMD devices

2020-04-22 Thread Jon Derrick
ng a shadow register and advertising its support by using QEMU's subsystem vendor/id. The Linux patch matches the QEMU subsystem vendor/id to use the shadow register. Jon Derrick (1): pci: vmd: Use Shadow MEMBAR registers for QEMU/KVM guests drivers/pci/controller/vmd.c | 8 +++- 1 file c

[PATCH 1/1] pci: vmd: Use Shadow MEMBAR registers for QEMU/KVM guests

2020-04-22 Thread Jon Derrick
s mode can be added by emulating the VMD VMLOCK and Shadow MEMBAR registers Signed-off-by: Jon Derrick --- drivers/pci/controller/vmd.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/pci/controller/vmd.c b/drivers/pci/controller/vmd.c index dac91d60701d..76