mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
i386/xen: Reserve Xen special pages for console, xenstore rings
Xen has eight frames at 0xfeff8000 for this; we only really need two for now and KVM puts the identity map at 0xfeffc000, so limit ourselves to four. Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> Reviewed-by: Paul Durrant <paul@xen.org>
This commit is contained in:
parent
b746a77926
commit
8b57d5c523
2 changed files with 19 additions and 0 deletions
|
@ -30,4 +30,13 @@ uint16_t kvm_xen_get_gnttab_max_frames(void);
|
|||
#define kvm_xen_has_cap(cap) (!!(kvm_xen_get_caps() & \
|
||||
KVM_XEN_HVM_CONFIG_ ## cap))
|
||||
|
||||
#define XEN_SPECIAL_AREA_ADDR 0xfeff8000UL
|
||||
#define XEN_SPECIAL_AREA_SIZE 0x4000UL
|
||||
|
||||
#define XEN_SPECIALPAGE_CONSOLE 0
|
||||
#define XEN_SPECIALPAGE_XENSTORE 1
|
||||
|
||||
#define XEN_SPECIAL_PFN(x) ((XEN_SPECIAL_AREA_ADDR >> TARGET_PAGE_BITS) + \
|
||||
XEN_SPECIALPAGE_##x)
|
||||
|
||||
#endif /* QEMU_SYSEMU_KVM_XEN_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue