Re: [PATCH RFC server 04/11] vfio-user: find and init PCI device

2021-07-28 Thread Jag Raman
> On Jul 26, 2021, at 11:05 AM, John Levon wrote: > > On Mon, Jul 19, 2021 at 04:00:06PM -0400, Jagannathan Raman wrote: > >> +vfu_pci_set_id(o->vfu_ctx, >> + pci_get_word(o->pci_dev->config + PCI_VENDOR_ID), >> + pci_get_word(o->pci_dev->config + PCI_DE

Re: [PATCH RFC server 04/11] vfio-user: find and init PCI device

2021-07-26 Thread John Levon
On Mon, Jul 19, 2021 at 04:00:06PM -0400, Jagannathan Raman wrote: > +vfu_pci_set_id(o->vfu_ctx, > + pci_get_word(o->pci_dev->config + PCI_VENDOR_ID), > + pci_get_word(o->pci_dev->config + PCI_DEVICE_ID), > + pci_get_word(o->pci_dev->config

[PATCH RFC server 04/11] vfio-user: find and init PCI device

2021-07-19 Thread Jagannathan Raman
Find the PCI device with specified id. Initialize the device context with the QEMU PCI device Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman --- hw/remote/vfio-user-obj.c | 28 1 file changed, 28 insertions(+) diff --