diff options
author | Anthony PERARD <anthony.perard@citrix.com> | 2011-02-25 16:20:34 +0000 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2011-05-08 10:09:59 +0200 |
commit | d5b93ddfefe63d5869a8eb97ea3474867d3b105b (patch) | |
tree | 59e371524ce2dc25b9a9940f4a3c811e7d0aef1f /hw/xen_domainbuild.c | |
parent | ce6bc29458e9e0a95da8aa192fc117125132dc2a (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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/xen_domainbuild.c b/hw/xen_domainbuild.c index 4093587df1..a6a12e5930 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); } |