4 * This work is licensed under the terms of the GNU GPL, version 2 or later.
5 * See the COPYING file in the top-level directory.
11 #include "exec/cpu-common.h"
15 # define CONFIG_XEN_IS_POSSIBLE
18 # define CONFIG_XEN_IS_POSSIBLE
21 #ifdef CONFIG_XEN_IS_POSSIBLE
23 extern bool xen_allowed
;
25 #define xen_enabled() (xen_allowed)
27 #ifndef CONFIG_USER_ONLY
28 void xen_hvm_modified_memory(ram_addr_t start
, ram_addr_t length
);
29 void xen_ram_alloc(ram_addr_t ram_addr
, ram_addr_t size
,
30 struct MemoryRegion
*mr
, Error
**errp
);
33 #else /* !CONFIG_XEN_IS_POSSIBLE */
35 #define xen_enabled() 0
36 #ifndef CONFIG_USER_ONLY
37 static inline void xen_hvm_modified_memory(ram_addr_t start
, ram_addr_t length
)
41 static inline void xen_ram_alloc(ram_addr_t ram_addr
, ram_addr_t size
,
42 MemoryRegion
*mr
, Error
**errp
)
44 g_assert_not_reached();
48 #endif /* CONFIG_XEN_IS_POSSIBLE */