[PATCH] vfio/pci: Don't setup VFIO MSI-X for Kunlun VF

2021-12-14 Thread Cai Huoqing
No support MSI-X in BAIDU KUNLUN Virtual Function devices, so add a quirk to avoid setuping VFIO MSI-X Signed-off-by: Cai Huoqing --- hw/vfio/pci.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index 7b45353ce2..15f76bbe56 100644 --- a/hw/vfio/pci.c

[PATCH] intel_iommu: Fix typo in comments

2021-07-29 Thread Cai Huoqing
Fix typo: *Unknwon ==> Unknown *futher ==> further *configed ==> configured Signed-off-by: Cai Huoqing --- hw/i386/intel_iommu.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c index 209b3f5553..75f075547f 100

[PATCH] hw/usb: Fix typo in comments and print

2021-07-29 Thread Cai Huoqing
Fix typo: *informations ==> information *enougth ==> enough *enouth ==> enough *registy ==> registry *releated ==> related *Ouptut ==> Output *manualy ==> manually *Attemping ==> Attempting *contine ==> continue *tranceiver ==> transceiver *Tranceiver ==>

[PATCH] hw/vfio: Fix typo in comments

2021-07-29 Thread Cai Huoqing
Fix typo in comments: *programatically ==> programmatically *disconecting ==> disconnecting *mulitple ==> multiple *timout ==> timeout *regsiter ==> register *forumula ==> formula Signed-off-by: Cai Huoqing --- hw/vfio/igd.c| 2 +- hw/vfio/pci-quirks.c | 2

[PATCH v2] vfio/pci: Add pba_offset PCI quirk for BAIDU KUNLUN AI processor

2021-07-13 Thread Cai Huoqing
use vfio_pci_is instead of using an "encoding" *remove unused device id PCI_DEVICE_ID_KUNLUN Signed-off-by: Cai Huoqing --- hw/vfio/pci.c| 9 + include/hw/pci/pci_ids.h | 3 +++ 2 files changed, 12 insertions(+) diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c ind

[PATCH] vfio/pci: Change to use "vfio_pci_is"

2021-07-12 Thread Cai Huoqing
Since we don't have an encoding like the previous quirk, we can use vfio_pci_is(). Signed-off-by: Cai Huoqing --- hw/vfio/pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index ab4077aad2..971273fd45 100644 --- a/hw/vfio/pci.c +++

RE: [PATCH] vfio/pci: Add pba_offset PCI quirk for BAIDU KUNLUN AI processor

2021-07-12 Thread Cai,Huoqing
Sure I will check these issue in our hardware Then ,send patch-v2 -Original Message- From: Alex Williamson Sent: 2021年7月13日 3:49 To: Cai,Huoqing Cc: m...@redhat.com; marcel.apfelb...@gmail.com; qemu-devel@nongnu.org Subject: Re: [PATCH] vfio/pci: Add pba_offset PCI quirk for BAIDU

[PATCH] vfio/pci: Add pba_offset PCI quirk for BAIDU KUNLUN AI processor

2021-07-11 Thread Cai Huoqing
Fix pba_offset initialization value for BAIDU KUNLUN Virtual Function device. The KUNLUN hardware returns an incorrect value for the VF PBA offset, and add a quirk to instead return a hardcoded value of 0xb400. Signed-off-by: Cai Huoqing --- hw/vfio/pci.c| 8 include/hw/pci