]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/qemu-xen.git/commitdiff
vmw_pvscsi: Introduce 'x-disable-pcie' backword compatability property
authorShmulik Ladkani <shmulik.ladkani@ravellosystems.com>
Sun, 13 Dec 2015 08:08:32 +0000 (10:08 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Dec 2015 14:24:34 +0000 (15:24 +0100)
Following the previous patch which changed pvscsi to be a pci express
device, this patch introduces a boolean property 'x-disable-pcie'.

Its default value is false, exposing pvscsi as a pcie device.

Setting 'x-disable-pcie' to 'on' preserves the old 'pci device' (non
express) behavior. This allows migration to older versions.

Signed-off-by: Shmulik Ladkani <shmulik.ladkani@ravellosystems.com>
Message-Id: <1449994112-7054-7-git-send-email-shmulik.ladkani@ravellosystems.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/vmw_pvscsi.c
include/hw/compat.h

index fb53b24083eb5053c0cfbc2a2295ccf1a78ec70c..6b4b9899a46a1ab6ef712a30e0f5ff7cf2f58f65 100644 (file)
@@ -1241,6 +1241,8 @@ static Property pvscsi_properties[] = {
     DEFINE_PROP_UINT8("use_msg", PVSCSIState, use_msg, 1),
     DEFINE_PROP_BIT("x-old-pci-configuration", PVSCSIState, compat_flags,
                     PVSCSI_COMPAT_OLD_PCI_CONFIGURATION_BIT, false),
+    DEFINE_PROP_BIT("x-disable-pcie", PVSCSIState, compat_flags,
+                    PVSCSI_COMPAT_DISABLE_PCIE_BIT, false),
     DEFINE_PROP_END_OF_LIST(),
 };
 
index 66e4affa982625bbe334628742b89eb8b47e4897..bcb36ef836eba783e37a714dc15003946906bff1 100644 (file)
             .driver   = "pvscsi",\
             .property = "x-old-pci-configuration",\
             .value    = "on",\
+        },{\
+            .driver   = "pvscsi",\
+            .property = "x-disable-pcie",\
+            .value    = "on",\
         },{\
             .driver   = "e1000",\
             .property = "extra_mac_registers",\