mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
hw/xen: Add xen_gnttab device for grant table emulation
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> Reviewed-by: Paul Durrant <paul@xen.org>
This commit is contained in:
parent
6f43f2ee49
commit
a28b0fc034
5 changed files with 135 additions and 0 deletions
|
@ -25,6 +25,7 @@
|
|||
#include "hw/i386/apic-msidef.h"
|
||||
#include "hw/i386/kvm/xen_overlay.h"
|
||||
#include "hw/i386/kvm/xen_evtchn.h"
|
||||
#include "hw/i386/kvm/xen_gnttab.h"
|
||||
|
||||
#include "hw/xen/interface/version.h"
|
||||
#include "hw/xen/interface/sched.h"
|
||||
|
@ -563,6 +564,8 @@ static int add_to_physmap_one(uint32_t space, uint64_t idx, uint64_t gfn)
|
|||
return xen_set_shared_info(gfn);
|
||||
|
||||
case XENMAPSPACE_grant_table:
|
||||
return xen_gnttab_map_page(idx, gfn);
|
||||
|
||||
case XENMAPSPACE_gmfn:
|
||||
case XENMAPSPACE_gmfn_range:
|
||||
return -ENOTSUP;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue