qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RFC][PATCH 6/6] Support "bootonceindex" property for SCSI


From: Janne Huttunen
Subject: [Qemu-devel] [RFC][PATCH 6/6] Support "bootonceindex" property for SCSI disks.
Date: Tue, 14 Mar 2017 14:50:13 +0200

Signed-off-by: Janne Huttunen <address@hidden>
---
 hw/scsi/scsi-bus.c       | 3 +++
 include/hw/block/block.h | 1 +
 2 files changed, 4 insertions(+)

diff --git a/hw/scsi/scsi-bus.c b/hw/scsi/scsi-bus.c
index 5940cb1..26e38ab 100644
--- a/hw/scsi/scsi-bus.c
+++ b/hw/scsi/scsi-bus.c
@@ -2084,6 +2084,9 @@ static void scsi_dev_instance_init(Object *obj)
     device_add_bootindex_property(obj, &s->conf.bootindex,
                                   "bootindex", NULL,
                                   &s->qdev, NULL);
+    device_add_bootonceindex_property(obj, &s->conf.bootonceindex,
+                                      "bootonceindex", NULL,
+                                      &s->qdev, NULL);
 }
 
 static const TypeInfo scsi_device_type_info = {
diff --git a/include/hw/block/block.h b/include/hw/block/block.h
index df9d207..f3e76c3 100644
--- a/include/hw/block/block.h
+++ b/include/hw/block/block.h
@@ -22,6 +22,7 @@ typedef struct BlockConf {
     uint16_t min_io_size;
     uint32_t opt_io_size;
     int32_t bootindex;
+    int32_t bootonceindex;
     uint32_t discard_granularity;
     /* geometry, not all devices use this */
     uint32_t cyls, heads, secs;
-- 
2.7.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]