qdev: Decouple qdev_prop_drive from DriveInfo
Make the property point to BlockDriverState, cutting out the DriveInfomiddleman. This prepares the ground for block devices that don't havea DriveInfo.
Currently all user-defined ones have a DriveInfo, because the only way...
scsi: scsi_bus_legacy_handle_cmdline() can fail, fix callers
None of its callers checks for failure. scsi_hot_add() can crashbecause of that:
(qemu) drive_add 4 if=scsi,format=host_device,file=/dev/sg1scsi-generic: scsi generic interface too oldSegmentation fault (core dumped)...
ide: Make it explicit that ide_create_drive() can't fail
All callers of ide_create_drive() ignore its value. Currentlyharmless, because it fails only when qdev_init() fails, which failsonly when ide_drive_initfn() fails, which never fails.
Brittle. Change it to die instead of silently ignoring failure....
blockdev: Clean up automatic drive deletion
We automatically delete blockdev host parts on unplug of the guestdevice. Too much magic, but we can't change that now.
The delete happens early in the guest device teardown, before theconnection to the host part is severed. Thus, the guest part's...
qdev-properties: Fix (u)intXX parsers
scanf calls must not use PRI constants, they have probably the wrong size andcorrupt memory. We could replace them by SCN ones, but strtol is simpler thanscanf here anyway. While at it, also fix the parsers to reject garbage after...
usb-uhci: fix commit 8e65b7c04965c8355e4ce43211582b6b83054e3d for vmstate
The commit 8e65b7c04965c8355e4ce43211582b6b83054e3d introducedexpire_time of UHCIState. But expire_time is not in vmstate, thesecond uhci_frame_timer will not be fired immediately after loadvm....
hw/omap : make local function static and remove declaration from header
Signed-off-by: cmchao <cmchao@gmail.com>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/omap2.c : separate tap module(Test-Chip-level)
hw/omwp2.c : separate l4 interconnect module
hw/omap1.c : separate uart module
View revisions
Also available in: Atom