]> git.proxmox.com Git - 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)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 6 Sep 2013 13:25:08 +0000 (15:25 +0200)
commit68dc036488dfea170627a55e6ee3dfd7f2c2063e
treeb985342e8da8254e95d0168049cd997a6f27a257
parentb2e10493c71160d88bb823cae9a92e806a79b9d6
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>
block/raw-win32.c