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)
commit711bf3d954371abffc07e397fc868a9c9e7e5585
treedfb0e11d37ed9b782e6fa9453f70507d879c13dd
parentc4c0e236beabb9de5ff472f77aeb811ec5484615
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