]> Git Repo - qemu.git/commitdiff
scsi-block: remove properties that are not relevant for passthrough
authorPaolo Bonzini <[email protected]>
Mon, 9 Jul 2012 10:11:04 +0000 (12:11 +0200)
committerPaolo Bonzini <[email protected]>
Thu, 26 Jul 2012 15:44:08 +0000 (17:44 +0200)
scsi-block is a passthrough device and does not allow customization
of vendor, product, removable, DPOFUA, block size or any other piece of
information.  Thus, drop DEFINE_SCSI_DISK_PROPERTIES() from the
list of qdev properties.

Signed-off-by: Paolo Bonzini <[email protected]>
hw/scsi-disk.c

index 525816cb76242138631869d111d985407b19b251..8907197d59382d819808092bd279af6ae3d776c4 100644 (file)
@@ -2040,7 +2040,7 @@ static TypeInfo scsi_cd_info = {
 
 #ifdef __linux__
 static Property scsi_block_properties[] = {
-    DEFINE_SCSI_DISK_PROPERTIES(),
+    DEFINE_PROP_DRIVE("drive", SCSIDiskState, qdev.conf.bs),
     DEFINE_PROP_END_OF_LIST(),
 };
 
This page took 0.032683 seconds and 4 git commands to generate.