[PATCH 0/2] Fixes for vfio region cache

John Levon posted 2 patches 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20251014151227.2298892-1-john.levon@nutanix.com
Maintainers: John Levon <john.levon@nutanix.com>, Thanos Makatos <thanos.makatos@nutanix.com>, "Cédric Le Goater" <clg@redhat.com>, Thomas Huth <thuth@redhat.com>, Eric Farman <farman@linux.ibm.com>, Matthew Rosato <mjrosato@linux.ibm.com>, Alex Williamson <alex.williamson@redhat.com>
include/hw/vfio/vfio-device.h |  2 +-
hw/vfio-user/device.c         |  2 +-
hw/vfio/ccw.c                 |  4 ++--
hw/vfio/device.c              | 39 ++++++++++++++++++++++-------------
hw/vfio/iommufd.c             |  3 ++-
hw/vfio/pci.c                 |  4 ++--
6 files changed, 33 insertions(+), 21 deletions(-)
[PATCH 0/2] Fixes for vfio region cache
Posted by John Levon 1 month ago

John Levon (2):
  vfio: rename field to "num_initial_regions"
  vfio: only check region info cache for initial regions

 include/hw/vfio/vfio-device.h |  2 +-
 hw/vfio-user/device.c         |  2 +-
 hw/vfio/ccw.c                 |  4 ++--
 hw/vfio/device.c              | 39 ++++++++++++++++++++++-------------
 hw/vfio/iommufd.c             |  3 ++-
 hw/vfio/pci.c                 |  4 ++--
 6 files changed, 33 insertions(+), 21 deletions(-)

-- 
2.43.0
Re: [PATCH 0/2] Fixes for vfio region cache
Posted by Cédric Le Goater 1 month ago
+ Mario

On 10/14/25 17:12, John Levon wrote:
> 
> 
> John Levon (2):
>    vfio: rename field to "num_initial_regions"
>    vfio: only check region info cache for initial regions
> 
>   include/hw/vfio/vfio-device.h |  2 +-
>   hw/vfio-user/device.c         |  2 +-
>   hw/vfio/ccw.c                 |  4 ++--
>   hw/vfio/device.c              | 39 ++++++++++++++++++++++-------------
>   hw/vfio/iommufd.c             |  3 ++-
>   hw/vfio/pci.c                 |  4 ++--
>   6 files changed, 33 insertions(+), 21 deletions(-)
> 

That was quick ! Thanks John. I will build a version based
on upstream for internal testing.

C.
Re: [PATCH 0/2] Fixes for vfio region cache
Posted by Cédric Le Goater 1 month ago
On 10/14/25 21:20, Cédric Le Goater wrote:
> + Mario
> 
> On 10/14/25 17:12, John Levon wrote:
>>
>>
>> John Levon (2):
>>    vfio: rename field to "num_initial_regions"
>>    vfio: only check region info cache for initial regions
>>
>>   include/hw/vfio/vfio-device.h |  2 +-
>>   hw/vfio-user/device.c         |  2 +-
>>   hw/vfio/ccw.c                 |  4 ++--
>>   hw/vfio/device.c              | 39 ++++++++++++++++++++++-------------
>>   hw/vfio/iommufd.c             |  3 ++-
>>   hw/vfio/pci.c                 |  4 ++--
>>   6 files changed, 33 insertions(+), 21 deletions(-)
>>
> 
> That was quick ! Thanks John. I will build a version based
> on upstream for internal testing.
All good. Thanks to Mario.

Applied to vfio-next.

C.



Re: [PATCH 0/2] Fixes for vfio region cache
Posted by Alex Williamson 1 month ago
On Tue, 14 Oct 2025 17:12:25 +0200
John Levon <john.levon@nutanix.com> wrote:

> John Levon (2):
>   vfio: rename field to "num_initial_regions"
>   vfio: only check region info cache for initial regions
> 
>  include/hw/vfio/vfio-device.h |  2 +-
>  hw/vfio-user/device.c         |  2 +-
>  hw/vfio/ccw.c                 |  4 ++--
>  hw/vfio/device.c              | 39 ++++++++++++++++++++++-------------
>  hw/vfio/iommufd.c             |  3 ++-
>  hw/vfio/pci.c                 |  4 ++--
>  6 files changed, 33 insertions(+), 21 deletions(-)
> 

Reviewed-by: Alex Williamson <alex@shazbot.org>