Skip to contentSkip to conversation

KVM/QEMU Community Call 13/10 agenda items?

DISCUSSION Alex Bennée 6 participants 11 messages Oct 7 – Nov 5

lore
Share & tools
lore
#0 lore raw

Hi,

The KVM/QEMU community call is at:

https://meet.jit.si/kvmcallmeeting
@
13/10/2026 14:00 UTC

I would like to propose a discussion that came out of Core Collective's QEMU sub-group [1]:

- Memory port interfaces for co-simulation
- Dynamic machines / data driven machines

This was discussed in relation to recent proposals to upstream some of the features from the Xilinx downstream fork:

From: Ruslan Ruslichenko <[email protected]>
Message-ID: <[email protected]>
Date: Tue, 15 Sep 2026 18:00:24 +0200
Subject: [PATCH v2 00/20] hw/core: Introduce Remote Port Co-simulation Protocol
From: Ruslan Ruslichenko <[email protected]>

There is also a wider meta-question of where the best place to co-ordinate engineering (and potentially funding) for these sort of features is. Obviously CoreCollective is already a place to do this for companies in the Arm eco-system but features that support co-simulation are hopefully of interest to a number of the architectures.

Are there any other agenda items for the sync-up?

Signature · 4 lines
Alex Bennée
Virtualisation Tech Lead @ Linaro

[1] https://corecollective.dev/working-groups/virtualization/
#1 lore raw

[email protected]

Thanks, we will join the discussion on Tuesday.

--
Best Regard,
Ruslan

Quoted 32 lines · Alex Bennée

Hi,

The KVM/QEMU community call is at:

https://meet.jit.si/kvmcallmeeting
@
13/10/2026 14:00 UTC

I would like to propose a discussion that came out of Core Collective's QEMU sub-group [1]:

- Memory port interfaces for co-simulation
- Dynamic machines / data driven machines

This was discussed in relation to recent proposals to upstream some of the features from the Xilinx downstream fork:

From: Ruslan Ruslichenko <[email protected]>
Message-ID: <[email protected]>
Date: Tue, 15 Sep 2026 18:00:24 +0200
Subject: [PATCH v2 00/20] hw/core: Introduce Remote Port Co-simulation Protocol
From: Ruslan Ruslichenko <[email protected]>

There is also a wider meta-question of where the best place to co-ordinate engineering (and potentially funding) for these sort of features is. Obviously CoreCollective is already a place to do this for companies in the Arm eco-system but features that support co-simulation are hopefully of interest to a number of the architectures.

Are there any other agenda items for the sync-up?

#2 lore raw
In reply to Alex Bennée
Quoted 24 lines · Alex Bennée

Hi,

The KVM/QEMU community call is at:

https://meet.jit.si/kvmcallmeeting
@
13/10/2026 14:00 UTC

I would like to propose a discussion that came out of Core Collective's QEMU sub-group [1]:

- Memory port interfaces for co-simulation
- Dynamic machines / data driven machines

This was discussed in relation to recent proposals to upstream some of the features from the Xilinx downstream fork:

From: Ruslan Ruslichenko <[email protected]>
Message-ID: <[email protected]>
Date: Tue, 15 Sep 2026 18:00:24 +0200
Subject: [PATCH v2 00/20] hw/core: Introduce Remote Port Co-simulation Protocol
From: Ruslan Ruslichenko <[email protected]>

Quoted 8 lines

There is also a wider meta-question of where the best place to co-ordinate engineering (and potentially funding) for these sort of features is. Obviously CoreCollective is already a place to do this for companies in the Arm eco-system but features that support co-simulation are hopefully of interest to a number of the architectures.

Are there any other agenda items for the sync-up?

Is this also for topics related to KVM but not necessarily QEMU? If so, and if there will be people who are familiar with device passthrough, I'd like to discuss whether IOMMU faults and KVM MMU faults are recoverable. There is a virtio device I am working on which requires this to avoid either crashing the guest or allowing the guest to hog host memory.

Signature · 2 lines
Sincerely,
Demi Marie Obenour (she/her/hers)
#3 lore raw

iommu recovery follow-up (was Re: KVM/QEMU Community Call 13/10 agenda items?)

Quoted 1 line · Demi Marie Obenour

On 10/7/26 12:29, Alex Bennée wrote:

(CC trimmed, IOMMU relevant maintainers added)

Quoted 5 lines
Quoted 5 lines

Hi,

The KVM/QEMU community call is at:

<snip>

Quoted 7 lines

Is this also for topics related to KVM but not necessarily QEMU? If so, and if there will be people who are familiar with device passthrough, I'd like to discuss whether IOMMU faults and KVM MMU faults are recoverable. There is a virtio device I am working on which requires this to avoid either crashing the guest or allowing the guest to hog host memory.

We didn't get to this at the last community call. Is this something that can be discussed on list first?

Signature · 2 lines
Alex Bennée
Virtualisation Tech Lead @ Linaro
#4 lore raw

Re: iommu recovery follow-up (was Re: KVM/QEMU Community Call 13/10 agenda items?)

Quoted 23 lines · Alex Bennée
Quoted 1 line · Demi Marie Obenour

On 10/7/26 12:29, Alex Bennée wrote:

(CC trimmed, IOMMU relevant maintainers added)

Quoted 5 lines
Quoted 5 lines

Hi,

The KVM/QEMU community call is at:

<snip>

Quoted 7 lines

Is this also for topics related to KVM but not necessarily QEMU? If so, and if there will be people who are familiar with device passthrough, I'd like to discuss whether IOMMU faults and KVM MMU faults are recoverable. There is a virtio device I am working on which requires this to avoid either crashing the guest or allowing the guest to hog host memory.

Quoted 2 lines

We didn't get to this at the last community call. Is this something that can be discussed on list first?

It should be I think.

Hi,

For such a virtio device (and granularly exposing it to user contexts too), is ATS + PRI a good choice? Perhaps even using the host page tables directly, with a per-process abstraction as the security boundary.

On physical hardware as intended, outside of the ATS + PRI case, IOMMU faults are expected to be something requiring a device/driver reset. On Arm however, there’s an exception for the stall model, which pre-dates ATS + PRI.

A PRI PPR reply of not present isn’t equivalent to an IOMMU fault and isn’t expected to result in a crash resulting in a device reset.

Quoted 5 lines
Signature · 3 lines
-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro
#5 lore raw

Re: iommu recovery follow-up (was Re: KVM/QEMU Community Call 13/10 agenda items?)

Quoted 30 lines · Mohamed Mediouni
Quoted 23 lines · Alex Bennée
Quoted 1 line · Demi Marie Obenour

On 10/7/26 12:29, Alex Bennée wrote:

(CC trimmed, IOMMU relevant maintainers added)

Quoted 5 lines
Quoted 5 lines

Hi,

The KVM/QEMU community call is at:

<snip>

Quoted 7 lines

Is this also for topics related to KVM but not necessarily QEMU? If so, and if there will be people who are familiar with device passthrough, I'd like to discuss whether IOMMU faults and KVM MMU faults are recoverable. There is a virtio device I am working on which requires this to avoid either crashing the guest or allowing the guest to hog host memory.

Quoted 2 lines

We didn't get to this at the last community call. Is this something that can be discussed on list first?

It should be I think.

Hi,

Quoted 8 lines

For such a virtio device (and granularly exposing it to user contexts too), is ATS + PRI
a good choice? Perhaps even using the host page tables directly, with a per-process
abstraction as the security boundary.> > On physical hardware as intended, outside of the ATS + PRI case, IOMMU faults are expected to be something requiring a device/driver reset. On Arm however,
there’s an exception for the stall model, which pre-dates ATS + PRI.

A PRI PPR reply of not present isn’t equivalent to an IOMMU fault and isn’t expected to result in a crash resulting in a device reset.

I have two concerns with ATS + PRI:

1. ATS allows a device to bypass the IOMMU, and my project relies on the IOMMU to isolate a compromised device.

2. I need to support both consumer and enterprise hardware. I suspect that ATS support is very limited in the consumer space.

For more context, I'm working on a device that allows a backend VM to provide virtio devices to other (frontend) VMs. The backend VM will often have an assigned PCIe device, and there are applications where zero-copy I/O would be very helpful for performance.

However, when the frontend VM exits or unmaps memory, the memory also needs to be unmapped from the backend. If this is cooperative, the backend may simply refuse to cooperate, causing a host-side memory leak. If it is preemptive, the backend will take faults when it tries to access the memory that has been unmapped from it.

One can avoid both problems by only letting the backend access a small buffer, but this requires a copy in either the frontend or the device. This might make the system uncompetitive with host-side vhost-user devices in high-performance applications.

Is there a way around this tradeoff, or is zero copy incompatible with protecting both the backend and the host?

Signature · 2 lines
Sincerely,
Demi Marie Obenour (she/her/hers)
#6 lore raw

Re: iommu recovery follow-up (was Re: KVM/QEMU Community Call 13/10 agenda items?)

Quoted 41 lines · Demi Marie Obenour
Quoted 36 lines · Mohamed Mediouni
Quoted 23 lines · Alex Bennée
Quoted 1 line · Demi Marie Obenour

On 10/7/26 12:29, Alex Bennée wrote:

(CC trimmed, IOMMU relevant maintainers added)

Quoted 5 lines
Quoted 5 lines

Hi,

The KVM/QEMU community call is at:

<snip>

Quoted 7 lines

Is this also for topics related to KVM but not necessarily QEMU? If so, and if there will be people who are familiar with device passthrough, I'd like to discuss whether IOMMU faults and KVM MMU faults are recoverable. There is a virtio device I am working on which requires this to avoid either crashing the guest or allowing the guest to hog host memory.

Quoted 2 lines

We didn't get to this at the last community call. Is this something that can be discussed on list first?

It should be I think.

Hi,

For such a virtio device (and granularly exposing it to user contexts too), is ATS + PRI
a good choice? Perhaps even using the host page tables directly, with a per-process
abstraction as the security boundary.> > On physical hardware as intended, outside of the ATS + PRI case, IOMMU faults are expected to be something requiring a device/driver reset. On Arm however,
there’s an exception for the stall model, which pre-dates ATS + PRI.

Quoted 7 lines
Quoted 2 lines

A PRI PPR reply of not present isn’t equivalent to an IOMMU fault and isn’t expected to result in a crash resulting in a device reset.

I have two concerns with ATS + PRI:

1. ATS allows a device to bypass the IOMMU, and my project relies on the IOMMU to isolate a compromised device.

Hi,

For the hw side:

There are hardware mitigations for these in the sense of only allowing pages to be addressed if they were supposed to be accessible (Arm DPT, tied as part of the RME story)

Or what is also out there and often preferred is relying on PCIe IDE + attestation instead…

Quoted 3 lines

2. I need to support both consumer and enterprise hardware. I suspect that ATS support is very limited in the consumer space.

PCIe ATS (at least in-SoC) is how AMD NPUs are deployed today, and the Intel in-SoC accelerators rely on it too (via SVA): https://www.kernel.org/doc/html/next/x86/sva.html

But for a synthetic device implemented in the hypervisor stack for the guest that’s not going to be an issue.

Quoted 4 lines

For more context, I'm working on a device that allows a backend VM to provide virtio devices to other (frontend) VMs. The backend VM will often have an assigned PCIe device,

Hm, and you want that backend VM to not be able to access to all guest memory?

Quoted 7 lines

and there are applications
where zero-copy I/O would be very helpful for performance.

However, when the frontend VM exits or unmaps memory, the memory also needs to be unmapped from the backend. If this is cooperative, the backend may simply refuse to cooperate, causing a host-side memory leak.

So “stealing” memory from the frontend VM to be a shared region with the backend? With an aim that all other guest memory remains inaccessible?

Quoted 5 lines

If it is preemptive, the backend will take faults when
it tries to access the memory that has been unmapped from it.

One can avoid both problems by only letting the backend access a small buffer, but this requires a copy in either the frontend or the device.

In practice, bounce buffering here can end up meaning both…

Given your use case, I’m not sure if emulating ATS + PRI is the right thing to do, but it’s the only on-demand memory mapping support in the PCIe specification today.

In your case it might mean having the IOMMU implementation as part of your TCB so that the device emulator is only able to map guest pages through the IOMMU implementation in your VMM...

Quoted 5 lines

This might make the system uncompetitive with host-side vhost-user devices in high-performance applications.

Is there a way around this tradeoff, or is zero copy incompatible with protecting both the backend and the host?

I don’t have much visibility on something else that’d be portable across platforms unfortunately. In the CoCo cases what I’ve seen being deployed ends up being either bounce buffering for passed through devices or PCIe IDE with attestation and the NIC being trusted...

Quoted 3 lines
Signature · 2 lines
Sincerely,
Demi Marie Obenour (she/her/hers)
#7 lore raw

Re: iommu recovery follow-up (was Re: KVM/QEMU Community Call 13/10 agenda items?)

Quoted 51 lines · Mohamed Mediouni
Quoted 41 lines · Demi Marie Obenour
Quoted 36 lines · Mohamed Mediouni
Quoted 23 lines · Alex Bennée
Quoted 1 line · Demi Marie Obenour

On 10/7/26 12:29, Alex Bennée wrote:

(CC trimmed, IOMMU relevant maintainers added)

Quoted 5 lines
Quoted 5 lines

Hi,

The KVM/QEMU community call is at:

<snip>

Quoted 7 lines

Is this also for topics related to KVM but not necessarily QEMU? If so, and if there will be people who are familiar with device passthrough, I'd like to discuss whether IOMMU faults and KVM MMU faults are recoverable. There is a virtio device I am working on which requires this to avoid either crashing the guest or allowing the guest to hog host memory.

Quoted 2 lines

We didn't get to this at the last community call. Is this something that can be discussed on list first?

It should be I think.

Hi,

For such a virtio device (and granularly exposing it to user contexts too), is ATS + PRI
a good choice? Perhaps even using the host page tables directly, with a per-process
abstraction as the security boundary.> > On physical hardware as intended, outside of the ATS + PRI case, IOMMU faults are expected to be something requiring a device/driver reset. On Arm however,
there’s an exception for the stall model, which pre-dates ATS + PRI.

Quoted 7 lines
Quoted 2 lines

A PRI PPR reply of not present isn’t equivalent to an IOMMU fault and isn’t expected to result in a crash resulting in a device reset.

I have two concerns with ATS + PRI:

1. ATS allows a device to bypass the IOMMU, and my project relies on the IOMMU to isolate a compromised device.

Hi,

Quoted 7 lines

For the hw side:

There are hardware mitigations for these in the sense of only allowing pages to be addressed if they were supposed to be accessible (Arm DPT, tied as part of the RME story)

Or what is also out there and often preferred is relying on PCIe IDE + attestation instead…

I need to support consumer hardware as well.

Quoted 5 lines
Quoted 2 lines

2. I need to support both consumer and enterprise hardware. I suspect that ATS support is very limited in the consumer space.

PCIe ATS (at least in-SoC) is how AMD NPUs are deployed today, and the Intel in-SoC accelerators rely on it too (via SVA): https://www.kernel.org/doc/html/next/x86/sva.html

Sadly, those are very much a special case. AMD NPUs don't support passthrough at all, and Intel in-SoC accelerators aren't available on the platforms I'm targeting. The main devices this is intended for are NICs, storage devices, USB controllers, and Wi-Fi controllers.

Quoted 9 lines

But for a synthetic device implemented in the hypervisor stack for the guest that’s not going to be an issue.

Quoted 4 lines

For more context, I'm working on a device that allows a backend VM to provide virtio devices to other (frontend) VMs. The backend VM will often have an assigned PCIe device,

Hm, and you want that backend VM to not be able to access to all guest memory?

The data flow is:

PCIe device

     |
     | PCIe passthrough
     |
  Backend VM
     |
     | Virtio PCI transport
     |
  Virtio Vhost-Guest Device/Vhost-User Server (in backend VMM)
     |
     | AF_UNIX socket
     |
  Vhost-User Client
     |
     | Virtio PCI transport
     |

Frontend VM

Threat model:

- The host is fully trusted, and does not trust the PCIe device, backend VM, frontend VM, or device emulators.

- All device emulators consider all VMs (including, but not limited to, their own) to be untrusted.

- The backend VM trusts the PCI device, the host, and its device emulator. It does not trust the frontend VM or the frontend VM's device emulator.

- The frontend VM trusts the host and the frontend VM's device emulator. For the purpose of this discussion, one can assume that it also trusts the backend VM.

Quoted 9 lines
Quoted 6 lines

and there are applications>> where zero-copy I/O would be very helpful for performance.

However, when the frontend VM exits or unmaps memory, the memory also needs to be unmapped from the backend. If this is cooperative, the backend may simply refuse to cooperate, causing a host-side memory leak.

So “stealing” memory from the frontend VM to be a shared region with the backend? With an aim that all other guest memory remains inaccessible?

Stealing some or all of the frontend memory, yes.

Quoted 7 lines
Quoted 5 lines

If it is preemptive, the backend will take faults when it tries to access the memory that has been unmapped from it.

One can avoid both problems by only letting the backend access a small buffer, but this requires a copy in either the frontend or the device.

In practice, bounce buffering here can end up meaning both…

I think the copy could happen in two possible places:

- The backend VM could be given memory that doesn't support P2PDMA, forcing it to fall back to memcpy(). I don't know how well the guest would handle that situation.

- The frontend VM could use Device Memory Buffer, meaning that only a small amount of memory needs to be accessed by the backend (and so possibly leaked).

Quoted 5 lines

Given your use case, I’m not sure if emulating ATS + PRI is the right thing to do,> but it’s the only on-demand memory mapping support in the PCIe specification today.

In your case it might mean having the IOMMU implementation as part of your TCB so that the device emulator is only able to map guest pages through the IOMMU implementation in your VMM...

Given my threat model, I can't use ATS + PRI. There's also no way to emulate it that I am aware of. While I could emulate it to the VMs, I can't make the PCIe device use it.

Quoted 10 lines
Quoted 5 lines

This might make the system uncompetitive with host-side vhost-user devices in high-performance applications.

Is there a way around this tradeoff, or is zero copy incompatible with protecting both the backend and the host?

I don’t have much visibility on something else that’d be portable across platforms unfortunately. In the CoCo cases what I’ve seen being deployed ends up being either bounce buffering for passed through devices or PCIe IDE with attestation and the NIC being trusted...

That makes sense.

Signature · 2 lines
Sincerely,
Demi Marie Obenour (she/her/hers)
#8 lore raw

Re: iommu recovery follow-up (was Re: KVM/QEMU Community Call 13/10 agenda items?)

In reply to Demi Marie Obenour
Quoted 45 lines · Demi Marie Obenour
Quoted 30 lines · Mohamed Mediouni
Quoted 23 lines · Alex Bennée
Quoted 1 line · Demi Marie Obenour

On 10/7/26 12:29, Alex Bennée wrote:

(CC trimmed, IOMMU relevant maintainers added)

Quoted 5 lines
Quoted 5 lines

Hi,

The KVM/QEMU community call is at:

<snip>

Quoted 7 lines

Is this also for topics related to KVM but not necessarily QEMU? If so, and if there will be people who are familiar with device passthrough, I'd like to discuss whether IOMMU faults and KVM MMU faults are recoverable. There is a virtio device I am working on which requires this to avoid either crashing the guest or allowing the guest to hog host memory.

Quoted 2 lines

We didn't get to this at the last community call. Is this something that can be discussed on list first?

It should be I think.

Hi,

Quoted 8 lines

For such a virtio device (and granularly exposing it to user contexts too), is ATS + PRI
a good choice? Perhaps even using the host page tables directly, with a per-process
abstraction as the security boundary.> > On physical hardware as intended, outside of the ATS + PRI case, IOMMU faults are expected to be something requiring a device/driver reset. On Arm however,
there’s an exception for the stall model, which pre-dates ATS + PRI.

A PRI PPR reply of not present isn’t equivalent to an IOMMU fault and isn’t expected to result in a crash resulting in a device reset.

I have two concerns with ATS + PRI:

1. ATS allows a device to bypass the IOMMU, and my project relies on the IOMMU to isolate a compromised device.

Quoted 7 lines

2. I need to support both consumer and enterprise hardware. I suspect that ATS support is very limited in the consumer space.

For more context, I'm working on a device that allows a backend VM to provide virtio devices to other (frontend) VMs. The backend VM will often have an assigned PCIe device, and there are applications where zero-copy I/O would be very helpful for performance.

curious how you let the frontend memory accessible to backend within a VM?

Quoted 13 lines

However, when the frontend VM exits or unmaps memory, the memory also needs to be unmapped from the backend. If this is cooperative, the backend may simply refuse to cooperate, causing a host-side memory leak. If it is preemptive, the backend will take faults when it tries to access the memory that has been unmapped from it.

One can avoid both problems by only letting the backend access a small buffer, but this requires a copy in either the frontend or the device. This might make the system uncompetitive with host-side vhost-user devices in high-performance applications.

Is there a way around this tradeoff, or is zero copy incompatible with protecting both the backend and the host?

#9 lore raw

Re: iommu recovery follow-up (was Re: KVM/QEMU Community Call 13/10 agenda items?)

Quoted 49 lines · Yi Liu
Quoted 48 lines · Demi Marie Obenour
Quoted 30 lines · Mohamed Mediouni
Quoted 23 lines · Alex Bennée
Quoted 1 line · Demi Marie Obenour

On 10/7/26 12:29, Alex Bennée wrote:

(CC trimmed, IOMMU relevant maintainers added)

Quoted 5 lines
Quoted 5 lines

Hi,

The KVM/QEMU community call is at:

<snip>

Quoted 7 lines

Is this also for topics related to KVM but not necessarily QEMU? If so, and if there will be people who are familiar with device passthrough, I'd like to discuss whether IOMMU faults and KVM MMU faults are recoverable. There is a virtio device I am working on which requires this to avoid either crashing the guest or allowing the guest to hog host memory.

Quoted 2 lines

We didn't get to this at the last community call. Is this something that can be discussed on list first?

It should be I think.

Hi,

Quoted 8 lines

For such a virtio device (and granularly exposing it to user contexts too), is ATS + PRI
a good choice? Perhaps even using the host page tables directly, with a per-process
abstraction as the security boundary.> > On physical hardware as intended, outside of the ATS + PRI case, IOMMU faults are expected to be something requiring a device/driver reset. On Arm however,
there’s an exception for the stall model, which pre-dates ATS + PRI.

A PRI PPR reply of not present isn’t equivalent to an IOMMU fault and isn’t expected to result in a crash resulting in a device reset.

I have two concerns with ATS + PRI:

1. ATS allows a device to bypass the IOMMU, and my project relies on the IOMMU to isolate a compromised device.

2. I need to support both consumer and enterprise hardware. I suspect that ATS support is very limited in the consumer space.

Quoted 7 lines
Quoted 4 lines

For more context, I'm working on a device that allows a backend VM to provide virtio devices to other (frontend) VMs. The backend VM will often have an assigned PCIe device, and there are applications where zero-copy I/O would be very helpful for performance.

curious how you let the frontend memory accessible to backend within a VM?

The FDs passed by the frontend are mmap()d, and the regions are mapped into KVM.

Signature · 2 lines
Sincerely,
Demi Marie Obenour (she/her/hers)