Message ID | 1450374401-31352-9-git-send-email-pbonzini@redhat.com |
---|---|
State | New |
Headers | show |
On 12/17/2015 10:46 AM, Paolo Bonzini wrote:
> From: Shmulik Ladkani <shmulik.ladkani@ravellosystems.com>
If there's a reason to respin:
long subject line, and contains a typo (should be backward, not
backword). Could shorten by saying 'back-compat' instead of spelling it out.
But since this is already in a PULL request, I'm also fine if it lands
as-is.
Hi Eric, On Thu, 17 Dec 2015 11:08:35 -0700 Eric Blake <eblake@redhat.com> wrote: > On 12/17/2015 10:46 AM, Paolo Bonzini wrote: > > From: Shmulik Ladkani <shmulik.ladkani@ravellosystems.com> > > If there's a reason to respin: > > long subject line, and contains a typo (should be backward, not > backword). Could shorten by saying 'back-compat' instead of spelling it out. > > But since this is already in a PULL request, I'm also fine if it lands > as-is. Thanks for your suggestion. Was about to fix; just noticed it was already pulled. There's one fix I need to submit however: Since this is pulled post 2.5, we need to introduce HW_COMPAT_2_5 and place the compat props there (instead of within HW_COMPAT_2_4). Will submit. Regards, Shmulik
diff --git a/hw/scsi/vmw_pvscsi.c b/hw/scsi/vmw_pvscsi.c index be95cff..e785b8b 100644 --- a/hw/scsi/vmw_pvscsi.c +++ b/hw/scsi/vmw_pvscsi.c @@ -1194,6 +1194,8 @@ static const VMStateDescription vmstate_pvscsi = { 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_END_OF_LIST(), }; diff --git a/include/hw/compat.h b/include/hw/compat.h index d0b1c4f..66e4aff 100644 --- a/include/hw/compat.h +++ b/include/hw/compat.h @@ -7,6 +7,10 @@ .property = "scsi",\ .value = "true",\ },{\ + .driver = "pvscsi",\ + .property = "x-old-pci-configuration",\ + .value = "on",\ + },{\ .driver = "e1000",\ .property = "extra_mac_registers",\ .value = "off",\