]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm tools: Use correct config defines
authorSasha Levin <levinsasha928@gmail.com>
Wed, 9 Nov 2011 14:42:20 +0000 (16:42 +0200)
committerPekka Enberg <penberg@kernel.org>
Wed, 9 Nov 2011 19:14:46 +0000 (21:14 +0200)
For some reason some of the defines were set to HAS_VIRTIO instead of HAS_AIO.

This broke raw blk device.

Reported-and-tested-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/disk/raw.c

index de2092ab7c97d8c0dad7c2e157e5ea19ae0f3245..9e5e86f66295d418b96def0615d8f5907d65255a 100644 (file)
@@ -121,7 +121,7 @@ struct disk_image *raw_image__probe(int fd, struct stat *st, bool readonly)
                        ro_ops = raw_image_regular_ops;
 
                        disk = disk_image__new(fd, st->st_size, &ro_ops_nowrite, DISK_IMAGE_REGULAR);
-#ifdef CONFIG_HAS_VIRTIO
+#ifdef CONFIG_HAS_AIO
                        if (disk)
                                disk->async = 1;
 #endif
@@ -133,7 +133,7 @@ struct disk_image *raw_image__probe(int fd, struct stat *st, bool readonly)
                 * Use read/write instead of mmap
                 */
                disk = disk_image__new(fd, st->st_size, &raw_image_regular_ops, DISK_IMAGE_REGULAR);
-#ifdef CONFIG_HAS_VIRTIO
+#ifdef CONFIG_HAS_AIO
                if (disk)
                        disk->async = 1;
 #endif