Re: [RFC v4 04/21] vfio-user: add region cache

2022-03-09 Thread Alex Williamson
On Tue, 11 Jan 2022 16:43:40 -0800 John Johnson wrote: > diff --git a/hw/vfio/pci-quirks.c b/hw/vfio/pci-quirks.c > index 0cf69a8..223bd02 100644 > --- a/hw/vfio/pci-quirks.c > +++ b/hw/vfio/pci-quirks.c > @@ -1601,16 +1601,14 @@ int vfio_pci_nvidia_v100_ram_init(VFIOPCIDevice > *vdev, Error

[RFC v4 04/21] vfio-user: add region cache

2022-01-11 Thread John Johnson
cache VFIO_DEVICE_GET_REGION_INFO results to reduce memory alloc/free cycles and as prep work for vfio-user Signed-off-by: John G Johnson Signed-off-by: Elena Ufimtseva Signed-off-by: Jagannathan Raman --- include/hw/vfio/vfio-common.h | 2 ++ hw/vfio/ccw.c | 5 -