On 9/29/2026 8:30 AM, Matthew Rosato wrote:
In order to support direct mapping (which is only bound by the aperture
size of the underlying host EDMA reported via vfio) QEMU reports the
host-provided EDMA to the guest.  However, when using translation mode
QEMU only supports up to 4 TiB currently (the size of a single RT
table).

Reject attempts by a guest to register a translation aperture that
would exceed what QEMU can support by giving an operand exception on
the MPCIFC instruction that requested the large aperture.  This
restriction can be removed in the future if/when support for additional
IOAT regions is added.

Cc:[email protected]
Signed-off-by: Matthew Rosato<[email protected]>
---
  hw/s390x/s390-pci-inst.c        | 15 +++++++++++++++
  include/hw/s390x/s390-pci-bus.h |  1 +
  2 files changed, 16 insertions(+)

Reviewed-by: Farhan Ali <[email protected]>



Reply via email to