mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
i386/xen: implement HYPERVISOR_memory_op
Specifically XENMEM_add_to_physmap with space XENMAPSPACE_shared_info to allow the guest to set its shared_info page. Signed-off-by: Joao Martins <joao.m.martins@oracle.com> [dwmw2: Use the xen_overlay device, add compat support] Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> Reviewed-by: Paul Durrant <paul@xen.org>
This commit is contained in:
parent
110a0ea59f
commit
fb0fd2ce38
3 changed files with 143 additions and 1 deletions
27
target/i386/kvm/xen-compat.h
Normal file
27
target/i386/kvm/xen-compat.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
* Xen HVM emulation support in KVM
|
||||
*
|
||||
* Copyright © 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
||||
* See the COPYING file in the top-level directory.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef QEMU_I386_KVM_XEN_COMPAT_H
|
||||
#define QEMU_I386_KVM_XEN_COMPAT_H
|
||||
|
||||
#include "hw/xen/interface/memory.h"
|
||||
|
||||
typedef uint32_t compat_pfn_t;
|
||||
typedef uint32_t compat_ulong_t;
|
||||
|
||||
struct compat_xen_add_to_physmap {
|
||||
domid_t domid;
|
||||
uint16_t size;
|
||||
unsigned int space;
|
||||
compat_ulong_t idx;
|
||||
compat_pfn_t gpfn;
|
||||
};
|
||||
|
||||
#endif /* QEMU_I386_XEN_COMPAT_H */
|
Loading…
Add table
Add a link
Reference in a new issue