Blame SOURCES/kvm-scsi-block-Add-share-rw-option.patch

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