scsi-disk: Add device_id property
commit7471a649fc3a391dd497297013fb2525ca9821ba
authorKevin Wolf <kwolf@redhat.com>
Fri, 25 Jan 2019 17:20:27 +0000 (25 18:20 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 1 Feb 2019 12:48:11 +0000 (1 13:48 +0100)
treec7c7d0fb32bf209d983f8fa95bf3a92872064f4b
parenta8f58afcdb86e266e06c9dc41a71605e570244c3
scsi-disk: Add device_id property

The new device_id property specifies which value to use for the vendor
specific designator in the Device Identification VPD page.

In particular, this is necessary for libvirt to maintain guest ABI
compatibility when no serial number is given and a VM is switched from
-drive (where the BlockBackend name is used) to -blockdev (where the
vendor specific designator is left out by default).

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
hw/scsi/scsi-disk.c