qemu: make virtio-blk PCI compliant by default
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 7 Sep 2009 18:14:37 +0000 (21:14 +0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 11 Sep 2009 15:19:46 +0000 (10:19 -0500)
commit8bf328d65d7c43881ec232441289a014584253db
treedfb0e11d37ed9b782e6fa9453f70507d879c13dd
parent51e55007a0be8f5c07b9ca0483e3d60e4f8db293
qemu: make virtio-blk PCI compliant by default

commit bf011293faaa7f87e4de83185931e7411b794128 made virtio-blk-pci not
PCI-compliant, since it makes region 0 (which is an i/o region)
size > 256, and, since PCI 2.1, i/o regions are limited to 256 bytes size.

When the ATA serial number feature is off, which is the default,
make the device spec compliant again, by making region 0 smaller.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reported-by: Vadim Rozenfeld <vrozenfe@redhat.com>
Tested-by: Vadim Rozenfeld <vrozenfe@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/virtio-blk.c