aboutsummaryrefslogtreecommitdiffstats
path: root/hw/xen_domainbuild.c
diff options
context:
space:
mode:
authorAnthony PERARD <anthony.perard@citrix.com>2011-02-25 16:20:34 +0000
committerAlexander Graf <agraf@suse.de>2011-05-08 10:09:59 +0200
commitd5b93ddfefe63d5869a8eb97ea3474867d3b105b (patch)
tree59e371524ce2dc25b9a9940f4a3c811e7d0aef1f /hw/xen_domainbuild.c
parentce6bc29458e9e0a95da8aa192fc117125132dc2a (diff)
xen: Support new libxc calls from xen unstable.
This patch updates the libxenctrl calls in Qemu to use the new interface, otherwise Qemu wouldn't be able to build against new versions of the library. We check libxenctrl version in configure, from Xen 3.3.0 to Xen unstable. Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Acked-by: Alexander Graf <agraf@suse.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/xen_domainbuild.c')
-rw-r--r--hw/xen_domainbuild.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/xen_domainbuild.c b/hw/xen_domainbuild.c
index 4093587df..a6a12e593 100644
--- a/hw/xen_domainbuild.c
+++ b/hw/xen_domainbuild.c
@@ -175,8 +175,9 @@ static int xen_domain_watcher(void)
for (i = 3; i < n; i++) {
if (i == fd[0])
continue;
- if (i == xen_xc)
+ if (i == xc_fd(xen_xc)) {
continue;
+ }
close(i);
}