]> git.proxmox.com Git - qemu.git/commitdiff
xen: simplify xen_enabled
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 3 Jun 2013 15:38:48 +0000 (15:38 +0000)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 11 Jun 2013 21:57:38 +0000 (16:57 -0500)
No need for preprocessor conditionals in xen_enabled: xen_allowed is
always defined.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
CC: qemu-stable@nongnu.org
(cherry picked from commit 49fa9881b2358e390e9e9466ddde74e995927efa)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
include/hw/xen/xen.h

index 7451c5a0bfd5959df7e574f2be53707608ee63c4..b42b0fdb48413c048e02bd7ca3f06e53492677d6 100644 (file)
@@ -25,11 +25,7 @@ extern bool xen_allowed;
 
 static inline bool xen_enabled(void)
 {
-#if defined(CONFIG_XEN_BACKEND) && defined(CONFIG_XEN)
     return xen_allowed;
-#else
-    return 0;
-#endif
 }
 
 int xen_pci_slot_get_pirq(PCIDevice *pci_dev, int irq_num);