]> xenbits.xensource.com Git - qemu-upstream-4.2-testing.git/commit
Xen PV backend: Move call to bdrv_new from blk_init to blk_connect
authorAlex Bligh <alex@alex.org.uk>
Fri, 5 Apr 2013 23:37:19 +0000 (23:37 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 5 Apr 2013 23:37:19 +0000 (23:37 +0000)
commit0eafc492bacb5b6370ab8650f8540eb9a8ee772a
treef84ed31247d5c8bb2b49d0a361a0c38c97efa7d8
parentbf8e2e756e3e98b8388068173e24d99d1e09d2dd
Xen PV backend: Move call to bdrv_new from blk_init to blk_connect

This commit delays the point at which bdrv_new (and hence blk_open
on the underlying device) is called from blk_init to blk_connect.
This ensures that in an inbound live migrate, the block device is
not opened until it has been closed at the other end. This is in
preparation for supporting devices with open/close consistency
without using O_DIRECT. This commit does NOT itself change O_DIRECT
semantics.

upstream-commit-id: 86f425db3b1c4b6c4a2927eaec35627f9ab2e703

Signed-off-by: Alex Bligh <alex@alex.org.uk>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
hw/xen_disk.c