On Thu, Sep 03, 2026 at 11:46:47AM -0700, Jacob Pan wrote: > Hi Jason, > > On Thu, 3 Sep 2026 14:40:14 -0300 > Jason Gunthorpe <[email protected]> wrote: > > > On Thu, Sep 03, 2026 at 09:13:28AM -0700, Wei Liu wrote: > > > > Does mshv use KVM at all? Can a kvm fd describe the partition? > > > > > > No. MSHV doesn't use KVM. We don't have a kvm fd. We have an mshv > > > fd to describe the partition. They are different virtualization > > > solutions. > > > > > > In the ideal world, the fd should be hypervisor agnostic, not tied > > > to kvm. > > > > There is a patch generalizing vfio to work on FDs instead of KVM > > structures: > > > > https://patch.msgid.link/[email protected] > > > > That's probably a good step long that line. > Yeah, ideally, it would be removing/rename device/group->kvm to > something like group/device->vm_file?
Maybe it could? Do you need the file in VFIO land or is what you showed in the other message OK? I think it should be broadly fine to pass in the file that way and hold a reference on it in the viommu object.. Jason

