]> git.ipfire.org Git - thirdparty/qemu.git/commit
w32: Fix access to host devices (regression)
authorStefan Weil <sw@weilnetz.de>
Sun, 1 Sep 2013 20:59:25 +0000 (22:59 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 25 Sep 2013 03:30:07 +0000 (22:30 -0500)
commite8601a4e3102321d054ce3d641c03ebcd0519357
tree1abd315a2cff04f5aec8f950cbaef3f86dc95630
parent96b14d0db19b2b80ab3dc35d522671da82101e72
w32: Fix access to host devices (regression)

QEMU failed to open host devices like \\.\PhysicalDrive0 (first hard disk)
since some time (commit 8a79380b8ef1b02d2abd705dd026a18863b09020?).

Those devices use hdev_open which did not use the latest API for options.
This resulted in a fatal runtime error:

  Block protocol 'host_device' doesn't support the option 'filename'

Duplicate code from raw_open to fix this.

Cc: qemu-stable@nongnu.org
Reported-by: David Brenner <david.brenner3@gmail.com>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit 68dc036488dfea170627a55e6ee3dfd7f2c2063e)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/raw-win32.c