[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[QEMU][PATCHv2 0/8] Xen: support grant mappings.
From: |
Vikram Garhwal |
Subject: |
[QEMU][PATCHv2 0/8] Xen: support grant mappings. |
Date: |
Wed, 25 Oct 2023 14:24:13 -0700 |
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:
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 (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 (2):
softmmu: physmem: Split ram_block_add()
hw: arm: Add grant mapping.
docs/system/i386/xen.rst | 3 -
hw/arm/xen_arm.c | 3 +
hw/i386/xen/xen-hvm.c | 3 +
hw/i386/xen/xen_platform.c | 10 +-
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 | 181 ++++++++++++++++-----------
12 files changed, 358 insertions(+), 90 deletions(-)
--
2.17.1
- [QEMU][PATCHv2 0/8] Xen: support grant mappings.,
Vikram Garhwal <=
- [QEMU][PATCHv2 6/8] memory: add MemoryRegion map and unmap callbacks, Vikram Garhwal, 2023/10/25
- [QEMU][PATCHv2 3/8] xen: add pseudo RAM region for grant mappings, Vikram Garhwal, 2023/10/25
- [QEMU][PATCHv2 4/8] softmmu: let qemu_map_ram_ptr() use qemu_ram_ptr_length(), Vikram Garhwal, 2023/10/25
- [QEMU][PATCHv2 8/8] hw: arm: Add grant mapping., Vikram Garhwal, 2023/10/25
- [QEMU][PATCHv2 7/8] xen: add map and unmap callbacks for grant region, Vikram Garhwal, 2023/10/25
- [QEMU][PATCHv2 2/8] softmmu: physmem: Split ram_block_add(), Vikram Garhwal, 2023/10/25