Add and use #defines for PCI device classes
This patch adds and uses #defines for PCI device classes and subclases,using a new pci_config_set_class() function, similar to the recentlyadded pci_config_set_vendor_id() and pci_config_set_device_id().
Change since v1: fixed compilation of hw/sun4u.c...
Update #defines for PCI vendor and device IDs from OpenBIOS and Linux
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6490 c046a42c-6fe2-441c-8c8c-71466251a162
PowerPC: IDE DB-DMA support
This patches allows powermac IDE interface to use DB-DMA.This implementation uses only synchronous I/O.
Signed-off-by: Laurent Vivier <Laurent@lvivier.info>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6489 c046a42c-6fe2-441c-8c8c-71466251a162
PowerPC: mac-io DB-DMA support
This patch adds powermac Descriptor-Based DMA.It is used by mac-io based IDE, ethernet, sounds and serial devices.
Signed-off-by: Laurent Vivier <Laurent@lvivier.info>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>...
pl031: remove unused variable
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6487 c046a42c-6fe2-441c-8c8c-71466251a162
check SCSI read/write requests against max LBA (Rik van Riel)
The bdrv layer uses a signed offset. Furthermore, block-raw-posixonly seeks when that offset is positive. Passing a negative offsetto block-raw-posix can result in data being written at the current...
Don't notify virtio devices before S_DRIVER_OK (Mark McLoughlin)
Current Linux guests oops if the host notifies of aconfig change before a driver has been bound to thedevice.
It's pretty pointless for us to do notify of configchanges before status is S_DRIVER_OK anyway, so let's...
SCSI divide capacity by s->cluster_size (Rik van Riel)
Paul Brook pointed out that the number of sectors reportedby the SCSI read capacity commands needs to be divided bys->cluster_size, because bdrv_get_geometry reports the numberof 512 byte sectors, while emulated CDROMs report 2048 byte...
support >2TB SCSI disks (Rik van Riel)
Implement SCSI READ, WRITE and SAI READ CAPACITY commands,so SCSI disks larger than 2TB can work with guests that support thesenewer SCSI commands.
The cast to (uint64_t) is needed because otherwise gcc will use a...
fix signed/unsigned overflows in SCSI disk (Rik van Riel)
Sector numbers can overflow on a virtual scsi disk of over 1TBin size. Qemu's bdrv_read expects an int64_t, so fix the overflowby going to that data type.
On large disks, we clip the capacity to 2TB instead of returning...
View revisions
Also available in: Atom