On Wed, Nov 9, 2011 at 3:42 PM, Sasha Levin <levinsasha928@xxxxxxxxx> wrote: > For some reason some of the defines were set to HAS_VIRTIO instead of HAS_AIO. > > This broke raw blk device. > > Reported-by: richard -rw- weinberger <richard.weinberger@xxxxxxxxx> > Signed-off-by: Sasha Levin <levinsasha928@xxxxxxxxx> > --- > tools/kvm/disk/raw.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/tools/kvm/disk/raw.c b/tools/kvm/disk/raw.c > index de2092a..9e5e86f 100644 > --- a/tools/kvm/disk/raw.c > +++ b/tools/kvm/disk/raw.c > @@ -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 > -- > 1.7.7.2 > > Tested-by: Richard Weinberger <richard@xxxxxx> -- Thanks, //richard -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html