Re: [PATCH v5 3/9] mshv: Introduce basic mshv bridge device for VFIO to build upon
From: Jacob Pan
Date: Thu Sep 03 2026 - 14:54:11 EST
Hi Jason,
On Thu, 3 Sep 2026 14:40:14 -0300
Jason Gunthorpe <jgg@xxxxxxxxxx> 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/20260903-vfio-v2-1-ef4cd4190ae7@xxxxxxxxxxxxx
>
> 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?