diff options
author | David Woodhouse <dwmw@amazon.co.uk> | 2022-12-16 15:50:26 +0000 |
---|---|---|
committer | David Woodhouse <dwmw@amazon.co.uk> | 2023-03-01 09:07:52 +0000 |
commit | a28b0fc0345b1ddc12109de807e6d4ce566c1914 (patch) | |
tree | 61d0f7ba087cfaaedd3b7db3dc4832f3c7143761 /target/i386/kvm/xen-emu.c | |
parent | 6f43f2ee49568f067b15c31372bb8116e1cb0182 (diff) |
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>
Diffstat (limited to 'target/i386/kvm/xen-emu.c')
-rw-r--r-- | target/i386/kvm/xen-emu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/i386/kvm/xen-emu.c b/target/i386/kvm/xen-emu.c index 46be631726..6f9b7a5cb9 100644 --- a/target/i386/kvm/xen-emu.c +++ b/target/i386/kvm/xen-emu.c @@ -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; |