]> xenbits.xensource.com Git - qemu-xen-4.6-testing.git/commit
qemu-xen-trad/block: use a character device if a block device is given
authorChristoph Egger <Christoph.Egger@amd.com>
Thu, 7 Jun 2012 18:35:28 +0000 (19:35 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 7 Jun 2012 18:37:36 +0000 (19:37 +0100)
commit136f340531929c723113bbd625d99de2b552a871
treee85bf023582b0eea688eed3d095f946fe2ea78a4
parent7bde54662d45b0bbc2ee78c7a8bf2c97c6655445
qemu-xen-trad/block: use a character device if a block device is given

On NetBSD a userland process is better with the character device
interface. In addition, a block device can't be opened twice; if a Xen
backend opens it, qemu can't and vice-versa.

This is a backport of 1de1ae0a7d956b3c87712bf2c09d277f99873f4c.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Backport-requested-by: Roger Pau Monne <roger.pau@citrix.com>
Signed-off-by: Roger Pau Monne <roger.pau@citrix.com>
block-raw-posix.c