]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/xen: Add gnttab operations to allow redirection to internal emulation
authorDavid Woodhouse <dwmw@amazon.co.uk>
Sun, 1 Jan 2023 21:31:37 +0000 (21:31 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 11 Jan 2023 08:07:53 +0000 (08:07 +0000)
commitcdd13a3d54601cf87a3b99c33f36257d72cd970e
tree95fd4554bf8f578277fbf5c507187d231fa8a2d0
parent9f7d47e78874989bbc898d07d442d82d91c71ede
hw/xen: Add gnttab operations to allow redirection to internal emulation

In emulation, mapping more than one grant ref to be virtually contiguous
would be fairly difficult. The best way to do it might be to make the
ram_block mappings actually backed by a file (shmem or a deleted file,
perhaps) so that we can have multiple *shared* mappings of it. But that
would be fairly intrusive.

Making the backend drivers cope with page *lists* instead of expecting
the mapping to be contiguous is also non-trivial, since some structures
would actually *cross* page boundaries (e.g. the 32-bit blkif responses
which are 12 bytes).

So for now, we'll support only single-page mappings in emulation.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Paul Durrant <pdurrant@amazon.com>
hw/xen/xen-bus.c
hw/xen/xen-legacy-backend.c
hw/xen/xen-operations.c
hw/xen/xen_pvdev.c
include/hw/xen/xen-bus.h
include/hw/xen/xen-legacy-backend.h
include/hw/xen/xen_backend_ops.h
include/hw/xen/xen_common.h
softmmu/globals.c