aboutsummaryrefslogtreecommitdiff
path: root/hw/xen_disk.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2011-09-08 09:05:14 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2011-09-08 09:05:14 -0500
commit220724ca4ada4e30bcfff326b62822a69c23e181 (patch)
treec0bb1bdd3ec41c5945000cf43620725d2e00ffd8 /hw/xen_disk.c
parentd8ac46d950451a722fd6b1d5d0768c72bee87d47 (diff)
parentcfc606da0ddcef1f7228317b9f7dfa6c94c6c64f (diff)
Merge remote-tracking branch 'kwolf/for-anthony' into staging
Diffstat (limited to 'hw/xen_disk.c')
-rw-r--r--hw/xen_disk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/xen_disk.c b/hw/xen_disk.c
index bd5c66916b..da531a67dd 100644
--- a/hw/xen_disk.c
+++ b/hw/xen_disk.c
@@ -697,6 +697,7 @@ static int blk_init(struct XenDevice *xendev)
xen_be_printf(&blkdev->xendev, 2, "get configured bdrv (cmdline setup)\n");
blkdev->bs = blkdev->dinfo->bdrv;
}
+ bdrv_attach_dev_nofail(blkdev->bs, blkdev);
blkdev->file_blk = BLOCK_SIZE;
blkdev->file_size = bdrv_getlength(blkdev->bs);
if (blkdev->file_size < 0) {