scsi: copy serial number into VPD page 0x83
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 16 Mar 2012 18:12:43 +0000 (19:12 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 19 Mar 2012 15:35:17 +0000 (16:35 +0100)
commitfd9307912d0a2ffa0310f9e20935d96d5af0a1ca
tree0299568b231f5aa94693e222f63923b6ee1e4448
parent9bcaf4fe264c507b59ab2e5fc6b2fa9d36f06d44
scsi: copy serial number into VPD page 0x83

Currently QEMU passes the qdev device id to the guest in an ASCII-string
designator in page 0x83.  While this is fine, it does not match what
real hardware does; usually the ASCII-string designator there hosts
another copy of the serial number (there can be other designators,
for example with a world-wide name).  Do the same for QEMU SCSI
disks.

ATAPI does not support VPD pages, so it does not matter there.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi-disk.c