aboutsummaryrefslogtreecommitdiff
path: root/hw/xen_disk.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_disk.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_disk.c')
-rw-r--r--hw/xen_disk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xen_disk.c b/hw/xen_disk.c
index 2b3a8feac7..233c8c99c6 100644
--- a/hw/xen_disk.c
+++ b/hw/xen_disk.c
@@ -242,7 +242,7 @@ err:
static void ioreq_unmap(struct ioreq *ioreq)
{
- int gnt = ioreq->blkdev->xendev.gnttabdev;
+ XenGnttab gnt = ioreq->blkdev->xendev.gnttabdev;
int i;
if (ioreq->v.niov == 0) {
@@ -275,7 +275,7 @@ static void ioreq_unmap(struct ioreq *ioreq)
static int ioreq_map(struct ioreq *ioreq)
{
- int gnt = ioreq->blkdev->xendev.gnttabdev;
+ XenGnttab gnt = ioreq->blkdev->xendev.gnttabdev;
int i;
if (ioreq->v.niov == 0) {