« Previous | Next » 

Revision 68dc0364

ID68dc036488dfea170627a55e6ee3dfd7f2c2063e

Added by Stefan Weil over 10 years ago

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:
Reported-by: David Brenner <>
Signed-off-by: Stefan Weil <>
Reviewed-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences