]> git.proxmox.com Git - mirror_qemu.git/blobdiff - xen-common.c
virtio: decrement vq->inuse in virtqueue_discard()
[mirror_qemu.git] / xen-common.c
index 4860b2eb76dc02b3d1123dea54b46cda6bf755dd..e641ad1aeff8b0d325b6a98c4f2e3d32b1d47d58 100644 (file)
@@ -114,8 +114,8 @@ static void xen_change_state_handler(void *opaque, int running,
 
 static int xen_init(MachineState *ms)
 {
-    xen_xc = xen_xc_interface_open(0, 0, 0);
-    if (xen_xc == XC_HANDLER_INITIAL_VALUE) {
+    xen_xc = xc_interface_open(0, 0, 0);
+    if (xen_xc == NULL) {
         xen_be_printf(NULL, 0, "can't open xen interface\n");
         return -1;
     }