]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio/container: mdev cpr blocker
authorSteve Sistare <steven.sistare@oracle.com>
Tue, 10 Jun 2025 15:39:20 +0000 (08:39 -0700)
committerCédric Le Goater <clg@redhat.com>
Wed, 11 Jun 2025 12:01:58 +0000 (14:01 +0200)
commitdac0dd68d9b150a6aa334ab8ee9aeba011d54b32
treed11cf4a2a28b533e5e2f1e06051c551b5e9c3405
parent7e9f21411302d823e9ee563ff6a2a40b1ffc1266
vfio/container: mdev cpr blocker

During CPR, after VFIO_DMA_UNMAP_FLAG_VADDR, the vaddr is temporarily
invalid, so mediated devices cannot be supported.  Add a blocker for them.
This restriction will not apply to iommufd containers when CPR is added
for them in a future patch.

Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/1749569991-25171-8-git-send-email-steven.sistare@oracle.com
[ clg: Fixed context change in VFIODevice ]
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/container.c
include/hw/vfio/vfio-cpr.h
include/hw/vfio/vfio-device.h