]> xenbits.xensource.com Git - people/pauldu/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>
Fri, 20 Jan 2023 12:28:53 +0000 (12:28 +0000)
commitcb4a93a4cbae109def1e32d9800bb43ce9b649c5
treea337eb4cb424b2394aa2560c4327def8d71a8375
parent1b2f0a6afbd2d03814e18f78b082cf9da9897f30
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