qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Shmulik Ladkani <shmulik.ladkani@ravellosystems.com>
To: Dmitry Fleytman <dmitry@daynix.com>, Paolo Bonzini <pbonzini@redhat.com>
Cc: idan.brown@ravellosystems.com, qemu-devel@nongnu.org,
	Shmulik Ladkani <shmulik.ladkani@ravellosystems.com>
Subject: [Qemu-devel] [PATCH 1/3] vmw_pvscsi: Set device subsystem and revision
Date: Thu, 19 Nov 2015 16:21:50 +0200	[thread overview]
Message-ID: <1447942912-24958-2-git-send-email-shmulik.ladkani@ravellosystems.com> (raw)
In-Reply-To: <1447942912-24958-1-git-send-email-shmulik.ladkani@ravellosystems.com>

To be VMware PVSCSI SCSI Controller, rev 02.
As reported by the VMware virtual hardware.

Signed-off-by: Shmulik Ladkani <shmulik.ladkani@ravellosystems.com>
---
 hw/scsi/vmw_pvscsi.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/hw/scsi/vmw_pvscsi.c b/hw/scsi/vmw_pvscsi.c
index 9c71f31..df4d383 100644
--- a/hw/scsi/vmw_pvscsi.c
+++ b/hw/scsi/vmw_pvscsi.c
@@ -1069,10 +1069,6 @@ pvscsi_init(PCIDevice *pci_dev)
 
     trace_pvscsi_state("init");
 
-    /* PCI subsystem ID */
-    pci_dev->config[PCI_SUBSYSTEM_ID] = 0x00;
-    pci_dev->config[PCI_SUBSYSTEM_ID + 1] = 0x10;
-
     /* PCI latency timer = 255 */
     pci_dev->config[PCI_LATENCY_TIMER] = 0xff;
 
@@ -1190,7 +1186,9 @@ static void pvscsi_class_init(ObjectClass *klass, void *data)
     k->vendor_id = PCI_VENDOR_ID_VMWARE;
     k->device_id = PCI_DEVICE_ID_VMWARE_PVSCSI;
     k->class_id = PCI_CLASS_STORAGE_SCSI;
-    k->subsystem_id = 0x1000;
+    k->subsystem_vendor_id = PCI_VENDOR_ID_VMWARE;
+    k->subsystem_id = PCI_DEVICE_ID_VMWARE_PVSCSI;
+    k->revision = 0x2;
     dc->reset = pvscsi_reset;
     dc->vmsd = &vmstate_pvscsi;
     dc->props = pvscsi_properties;
-- 
1.9.1

  reply	other threads:[~2015-11-19 14:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-19 14:21 [Qemu-devel] [PATCH 0/3] vmw_pvscsi: Fine-tune device capabilities Shmulik Ladkani
2015-11-19 14:21 ` Shmulik Ladkani [this message]
2015-11-20  7:40   ` [Qemu-devel] [PATCH 1/3] vmw_pvscsi: Set device subsystem and revision Dmitry Fleytman
2015-11-19 14:21 ` [Qemu-devel] [PATCH 2/3] vmw_pvscsi: The pvscsi device is a PCIE endpoint Shmulik Ladkani
2015-11-20  7:41   ` Dmitry Fleytman
2015-11-19 14:21 ` [Qemu-devel] [PATCH 3/3] vmw_pvscsi: Change offsets of PCI capabilities Shmulik Ladkani
2015-11-20  7:41   ` Dmitry Fleytman
2015-11-19 15:25 ` [Qemu-devel] [PATCH 0/3] vmw_pvscsi: Fine-tune device capabilities Paolo Bonzini
2015-12-12 14:39   ` Shmulik Ladkani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1447942912-24958-2-git-send-email-shmulik.ladkani@ravellosystems.com \
    --to=shmulik.ladkani@ravellosystems.com \
    --cc=dmitry@daynix.com \
    --cc=idan.brown@ravellosystems.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).