mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
accel: change {xen, kvm, tcg, qtest}_allowed from int to bool
Signed-off-by: liguang <lig.fnst@cn.fujitsu.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
217e21be6e
commit
d5286af5ef
5 changed files with 11 additions and 11 deletions
4
hw/xen.h
4
hw/xen.h
|
@ -21,9 +21,9 @@ enum xen_mode {
|
|||
extern uint32_t xen_domid;
|
||||
extern enum xen_mode xen_mode;
|
||||
|
||||
extern int xen_allowed;
|
||||
extern bool xen_allowed;
|
||||
|
||||
static inline int xen_enabled(void)
|
||||
static inline bool xen_enabled(void)
|
||||
{
|
||||
#if defined(CONFIG_XEN_BACKEND) && !defined(CONFIG_NO_XEN)
|
||||
return xen_allowed;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue