]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/xen: Add emulated implementation of grant table operations
authorDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 6 Jan 2023 09:59:28 +0000 (09:59 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 7 Mar 2023 17:04:30 +0000 (17:04 +0000)
commitb08d88e30f061d5d8ae080a453a078214d4b462a
tree6b1102063364ff440246ab70b3b9cab1a4da5ab0
parent4dfd5fb178f93c3636a20684e7378427f067ce35
hw/xen: Add emulated implementation of grant table operations

This is limited to mapping a single grant at a time, because under Xen the
pages are mapped *contiguously* into qemu's address space, and that's very
hard to do when those pages actually come from anonymous mappings in qemu
in the first place.

Eventually perhaps we can look at using shared mappings of actual objects
for system RAM, and then we can make new mappings of the same backing
store (be it deleted files, shmem, whatever). But for now let's stick to
a page at a time.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
hw/i386/kvm/xen_gnttab.c