[QEMU][PATCH v1 0/7] Xen: support grant mappings.

Vikram Garhwal posted 7 patches 7 months, 1 week ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20231005181629.4046-1-vikram.garhwal@amd.com
Maintainers: Peter Maydell <peter.maydell@linaro.org>, Stefano Stabellini <sstabellini@kernel.org>, Anthony Perard <anthony.perard@citrix.com>, Paul Durrant <paul@xen.org>, "Michael S. Tsirkin" <mst@redhat.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Paolo Bonzini <pbonzini@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, Eduardo Habkost <eduardo@habkost.net>, Peter Xu <peterx@redhat.com>, David Hildenbrand <david@redhat.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>
There is a newer version of this series
hw/arm/xen_arm.c                |   3 +
hw/i386/xen/xen-hvm.c           |   3 +
hw/i386/xen/xen_platform.c      |   8 +-
hw/xen/xen-hvm-common.c         |   4 +-
hw/xen/xen-mapcache.c           | 206 ++++++++++++++++++++++++++++++--
include/exec/memory.h           |  21 ++++
include/exec/ram_addr.h         |   1 +
include/hw/xen/xen-hvm-common.h |   2 +
include/hw/xen/xen_pvdev.h      |   3 +
include/sysemu/xen-mapcache.h   |   3 +
softmmu/physmem.c               | 181 +++++++++++++++++-----------
11 files changed, 349 insertions(+), 86 deletions(-)
[QEMU][PATCH v1 0/7] Xen: support grant mappings.
Posted by Vikram Garhwal 7 months, 1 week ago
Hi,
This patch series add support for grant mappings as a pseudo RAM region for Xen.

Enabling grant mappings patches(first 6) are written by Juergen in 2021.

QEMU Virtio device provides an emulated backends for Virtio frontned devices
in Xen.
Please set "iommu_platform=on" option when invoking QEMU. As this will set
VIRTIO_F_ACCESS_PLATFORM feature which will be used by virtio frontend in Xen
to know whether backend supports grants or not.

Regards,
Vikram

Juergen Gross (6):
  xen: when unplugging emulated devices skip virtio devices
  xen: add pseudo RAM region for grant mappings
  softmmu: let qemu_map_ram_ptr() use qemu_ram_ptr_length()
  xen: let xen_ram_addr_from_mapcache() return -1 in case of not found
    entry
  memory: add MemoryRegion map and unmap callbacks
  xen: add map and unmap callbacks for grant region

Vikram Garhwal (1):
  hw: arm: Add grant mapping.

 hw/arm/xen_arm.c                |   3 +
 hw/i386/xen/xen-hvm.c           |   3 +
 hw/i386/xen/xen_platform.c      |   8 +-
 hw/xen/xen-hvm-common.c         |   4 +-
 hw/xen/xen-mapcache.c           | 206 ++++++++++++++++++++++++++++++--
 include/exec/memory.h           |  21 ++++
 include/exec/ram_addr.h         |   1 +
 include/hw/xen/xen-hvm-common.h |   2 +
 include/hw/xen/xen_pvdev.h      |   3 +
 include/sysemu/xen-mapcache.h   |   3 +
 softmmu/physmem.c               | 181 +++++++++++++++++-----------
 11 files changed, 349 insertions(+), 86 deletions(-)

-- 
2.17.1