Thread (149 messages) 149 messages, 7 authors, 2025-05-12

Re: [PATCH v2 06/19] iommufd/viommu: Add IOMMU_VIOMMU_SET/UNSET_VDEV_ID ioctl

From: Jason Gunthorpe <jgg@nvidia.com>
Date: 2025-05-07 12:24:19
Also in: linux-iommu, linux-kselftest, lkml

On Wed, May 07, 2025 at 09:18:29PM +1000, Alexey Kardashevskiy wrote:
quoted
We should not destroy the vdevice for something like that. In a CC
case that would unplug it from the VM which is not right.
vdevice is not directly seen by the guest, is not it? The guest will
see, for example, an "AMD IOMMU" and assume there is device table
for all 64K devices, and so on, it is QEMU which will be
reallocating vdevice in the host's IOMMUFD. Did I miss something
here? Thanks,
I imagined the vdevice would trigger the CC call to create the vPCI
function in the guest attached to the secure iommu. At least some
arches will need something like that.

The "AMD IOMMU" I expected to be created by the viommu object.

Jason
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help