Skip to content

Xen: support grant mappings.

Vikram Garhwal qemu-arm qemu-devel xen-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 25 repliesIn review
  2. v28 patches 19 repliesSuperseded
  3. v17 patches 15 repliesSuperseded

Changes in v3 from the cover letter

Drop patch 1/7. This was done because device unplug is an x86-only case. Add missing qemu_mutex_unlock() before return.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7softmmu: physmem: Split ram_block_add()include/exec/ram_addr.h system/physmem.c+40 -232 replies
2/7xen: add pseudo RAM region for grant mappingshw/i386/xen/xen-hvm.c hw/xen/xen-hvm-common.c hw/xen/xen-mapcache.c +3 more+40 -22 replies
3/7softmmu: let qemu_map_ram_ptr() use qemu_ram_ptr_length()system/physmem.c+23 -333 replies
4/7xen: let xen_ram_addr_from_mapcache() return -1 in case of not found entryhw/xen/xen-mapcache.c+3 -82 replies
5/7memory: add MemoryRegion map and unmap callbacksinclude/exec/memory.h system/physmem.c+60 -118 replies
6/7xen: add map and unmap callbacks for grant regionhw/xen/xen-mapcache.c system/physmem.c+182 -52 replies
7/7hw: arm: Add grant mapping.hw/arm/xen_arm.c+3 -03 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchStefano StabelliniAlex BennéeEdgar E. Iglesias
1/7R-b R-b R-b
2/7R-b R-b R-b
3/7R-b R-b R-b
4/7R-b R-b R-b
5/7R-b R-b
6/7R-b R-b
7/7R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [QEMU][PATCH v3 0/7] Xen: support grant mappings.

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.

Changelog:
v2->v3:
Drop patch 1/7. This was done because device unplug is an x86-only case. Add missing qemu_mutex_unlock() before return.
v1->v2:
Split patch 2/7 to keep phymem.c changes in a separate.
In patch "xen: add map and unmap callbacks for grant" add check for total
allowed grant < XEN_MAX_VIRTIO_GRANTS.
Fix formatting issues and re-based with master latest.

Regards,
Vikram

Juergen Gross (5):
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 (2):
softmmu: physmem: Split ram_block_add()
hw: arm: Add grant mapping.

 hw/arm/xen_arm.c                |   3 +
 hw/i386/xen/xen-hvm.c           |   3 +
 hw/xen/xen-hvm-common.c         |   4 +-
 hw/xen/xen-mapcache.c           | 214 ++++++++++++++++++++++++++++++--
 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 +
 system/physmem.c                | 179 +++++++++++++++-----------
 10 files changed, 351 insertions(+), 82 deletions(-)
Signature · 1 line
2.17.1