|
|
4a2fec |
From cd8403ec12e9ee21ebe61894e3a57e806c190956 Mon Sep 17 00:00:00 2001
|
|
|
4a2fec |
From: Fam Zheng <famz@redhat.com>
|
|
|
4a2fec |
Date: Wed, 17 Jan 2018 06:08:33 +0100
|
|
|
4a2fec |
Subject: [PATCH 03/21] scsi-block: Add share-rw option
|
|
|
4a2fec |
|
|
|
4a2fec |
RH-Author: Fam Zheng <famz@redhat.com>
|
|
|
4a2fec |
Message-id: <20180117060834.17481-2-famz@redhat.com>
|
|
|
4a2fec |
Patchwork-id: 78653
|
|
|
4a2fec |
O-Subject: [RHV7.5 qemu-kvm-rhev PATCH 1/2] scsi-block: Add share-rw option
|
|
|
4a2fec |
Bugzilla: 1518482
|
|
|
4a2fec |
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
4a2fec |
RH-Acked-by: John Snow <jsnow@redhat.com>
|
|
|
4a2fec |
RH-Acked-by: Jeffrey Cody <jcody@redhat.com>
|
|
|
4a2fec |
|
|
|
4a2fec |
Scsi-block doesn't use the DEFINE_BLOCK_PROPERTIES() macro so it didn't
|
|
|
4a2fec |
gain the share-rw back when it was added to all other storage devices.
|
|
|
4a2fec |
This option is meaningful here, and need to be used when attaching a
|
|
|
4a2fec |
shared storage to guest.
|
|
|
4a2fec |
|
|
|
4a2fec |
Signed-off-by: Fam Zheng <famz@redhat.com>
|
|
|
4a2fec |
Message-Id: <20171205071928.30242-1-famz@redhat.com>
|
|
|
4a2fec |
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
4a2fec |
(cherry picked from commit 07488549f884a658689370b9ef878dc50eced83e)
|
|
|
4a2fec |
Signed-off-by: Fam Zheng <famz@redhat.com>
|
|
|
4a2fec |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
4a2fec |
---
|
|
|
4a2fec |
hw/scsi/scsi-disk.c | 1 +
|
|
|
4a2fec |
1 file changed, 1 insertion(+)
|
|
|
4a2fec |
|
|
|
4a2fec |
diff --git a/hw/scsi/scsi-disk.c b/hw/scsi/scsi-disk.c
|
|
|
4a2fec |
index 8a63377..c676355 100644
|
|
|
4a2fec |
--- a/hw/scsi/scsi-disk.c
|
|
|
4a2fec |
+++ b/hw/scsi/scsi-disk.c
|
|
|
4a2fec |
@@ -2992,6 +2992,7 @@ static const TypeInfo scsi_cd_info = {
|
|
|
4a2fec |
#ifdef __linux__
|
|
|
4a2fec |
static Property scsi_block_properties[] = {
|
|
|
4a2fec |
DEFINE_PROP_DRIVE("drive", SCSIDiskState, qdev.conf.blk),
|
|
|
4a2fec |
+ DEFINE_PROP_BOOL("share-rw", SCSIDiskState, qdev.conf.share_rw, false),
|
|
|
4a2fec |
DEFINE_PROP_UINT16("rotation_rate", SCSIDiskState, rotation_rate, 0),
|
|
|
4a2fec |
DEFINE_PROP_END_OF_LIST(),
|
|
|
4a2fec |
};
|
|
|
4a2fec |
--
|
|
|
4a2fec |
1.8.3.1
|
|
|
4a2fec |
|