diff options
author | Gao Shiyuan <gaoshiyuan@baidu.com> | 2024-09-03 20:03:04 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2024-09-11 09:46:14 -0400 |
commit | ffa8a3e3b2e6ff017113b98d500d6a9e05b1560a (patch) | |
tree | ca02096b33e89629ca4e05e2c6fd83ef8c69164e /hw/m68k/next-cube.c | |
parent | 6166799f698512ab35e216b4ff4f7156f47923c6 (diff) | |
download | qemu-ffa8a3e3b2e6ff017113b98d500d6a9e05b1560a.zip qemu-ffa8a3e3b2e6ff017113b98d500d6a9e05b1560a.tar.gz qemu-ffa8a3e3b2e6ff017113b98d500d6a9e05b1560a.tar.bz2 |
virtio-pci: Add lookup subregion of VirtIOPCIRegion MR
Now virtio_address_space_lookup only lookup common/isr/device/notify
MR and exclude their subregions.
When VHOST_USER_PROTOCOL_F_HOST_NOTIFIER enable, the notify MR has
host-notifier subregions and we need use host-notifier MR to
notify the hardware accelerator directly instead of eventfd notify.
Further more, maybe common/isr/device MR also has subregions in
the future, so need memory_region_find for each MR incluing
their subregions.
Add lookup subregion of VirtIOPCIRegion MR instead of only lookup container MR.
Fixes: a93c8d8 ("virtio-pci: Replace modern_as with direct access to modern_bar")
Co-developed-by: Zuo Boqun <zuoboqun@baidu.com>
Signed-off-by: Gao Shiyuan <gaoshiyuan@baidu.com>
Signed-off-by: Zuo Boqun <zuoboqun@baidu.com>
Message-Id: <20240903120304.97833-1-gaoshiyuan@baidu.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/m68k/next-cube.c')
0 files changed, 0 insertions, 0 deletions