xen: Add initialisation of Xen

The xenpv machine use the common init function.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
Anthony PERARD 2010-08-19 12:27:56 +01:00 committed by Alexander Graf
parent d5b93ddfef
commit 3285cf4fe7
7 changed files with 64 additions and 2 deletions

View file

@ -18,4 +18,17 @@ enum xen_mode {
extern uint32_t xen_domid;
extern enum xen_mode xen_mode;
extern int xen_allowed;
static inline int xen_enabled(void)
{
#ifdef CONFIG_XEN
return xen_allowed;
#else
return 0;
#endif
}
int xen_init(void);
#endif /* QEMU_HW_XEN_H */