Re: [PATCH RFC 12/19] vfio-user: probe remote device's BARs

2021-07-19 Thread Alex Williamson
On Tue, 20 Jul 2021 01:39:21 + John Johnson wrote: > > On Jul 19, 2021, at 3:59 PM, Alex Williamson > > wrote: > > > > On Sun, 18 Jul 2021 23:27:51 -0700 > > Elena Ufimtseva wrote: > >> @@ -3442,6 +3448,22 @@ static void vfio_user_pci_realize(PCIDevice *pdev, > >> Error **errp) > >>

Re: [PATCH RFC 12/19] vfio-user: probe remote device's BARs

2021-07-19 Thread John Johnson
> On Jul 19, 2021, at 3:59 PM, Alex Williamson > wrote: > > On Sun, 18 Jul 2021 23:27:51 -0700 > Elena Ufimtseva wrote: >> @@ -3442,6 +3448,22 @@ static void vfio_user_pci_realize(PCIDevice *pdev, >> Error **errp) >> /* QEMU can also add or extend BARs */ >> memset(vdev->emulated_co

Re: [PATCH RFC 12/19] vfio-user: probe remote device's BARs

2021-07-19 Thread Alex Williamson
On Sun, 18 Jul 2021 23:27:51 -0700 Elena Ufimtseva wrote: > @@ -3442,6 +3448,22 @@ static void vfio_user_pci_realize(PCIDevice *pdev, > Error **errp) > /* QEMU can also add or extend BARs */ > memset(vdev->emulated_config_bits + PCI_BASE_ADDRESS_0, 0xff, 6 * 4); > > +/* > + *

[PATCH RFC 12/19] vfio-user: probe remote device's BARs

2021-07-18 Thread Elena Ufimtseva
From: John G Johnson Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman --- hw/vfio/pci.c | 32 +++- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index 054e673552..a8d2e59470