]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/xen: Add backend 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>
Wed, 11 Jan 2023 08:29:24 +0000 (08:29 +0000)
commit2e2e79a843133bff1b4e6eb1d8aa8b4ef2fd3fa7
treecae7063cdc3fa992c369accda66209fa96f7092b
parentc1ce5d0336c4d2afe36e4370b6a4d6dc192dc2a1
hw/xen: Add backend 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 stuck to
a page at a time.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
hw/i386/kvm/xen_gnttab.c