From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LzbhK-00039Z-Gb for qemu-devel@nongnu.org; Thu, 30 Apr 2009 15:13:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LzbhG-00036x-6r for qemu-devel@nongnu.org; Thu, 30 Apr 2009 15:13:30 -0400 Received: from [199.232.76.173] (port=51626 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LzbhF-00036u-V7 for qemu-devel@nongnu.org; Thu, 30 Apr 2009 15:13:26 -0400 Received: from mx2.redhat.com ([66.187.237.31]:59784) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LzbhF-0007IC-Iq for qemu-devel@nongnu.org; Thu, 30 Apr 2009 15:13:25 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n3UJDNTZ005269 for ; Thu, 30 Apr 2009 15:13:23 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n3UJDN91014439 for ; Thu, 30 Apr 2009 15:13:23 -0400 Received: from localhost.localdomain (vpn-12-15.rdu.redhat.com [10.11.12.15]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n3UJDLXQ004672 for ; Thu, 30 Apr 2009 15:13:22 -0400 Message-ID: <49F9F86C.3000009@redhat.com> Date: Thu, 30 Apr 2009 22:13:48 +0300 From: Dor Laor MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] Change the virtio-block storage class to PCI_CLASS_STORAGE_SCSI Reply-To: dlaor@redhat.com List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Windows virtio driver cannot pass DTM (certification) tests while the storage class is PCI_CLASS_STORAGE_UNKNOWN. Signed-off-by: Dor Laor --- hw/virtio-blk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index 51a8e22..6c23ec6 100644 --- a/hw/virtio-blk.c +++ b/hw/virtio-blk.c @@ -250,7 +250,7 @@ void *virtio_blk_init(PCIBus *bus, BlockDriverState *bs) PCI_DEVICE_ID_VIRTIO_BLOCK, PCI_VENDOR_ID_REDHAT_QUMRANET, VIRTIO_ID_BLOCK, - PCI_CLASS_STORAGE_OTHER, 0x00, + PCI_CLASS_STORAGE_SCSI, 0x00, sizeof(struct virtio_blk_config), sizeof(VirtIOBlock)); if (!s) return NULL; -- 1.5.6.6