Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 3160499aacb81f6735941eb4c372d87a > files > 206

kvm-83-164.el5_5.30.src.rpm

From 8dc6c4f212818563358fc272f47ebe53af98ed44 Mon Sep 17 00:00:00 2001
From: Dor Laor <dor@redhat.com>
Date: Thu, 9 Jul 2009 12:31:44 +0300
Subject: [PATCH] Windows virtio driver cannot pass WHQL certification tests

while the storage class is PCI_CLASS_STORAGE_UNKNOWN.

QEMU upstream will use this default for 0.11.
http://lists.gnu.org/archive/html/qemu-devel/2009-07/threads.html#00478

We do not have backward compatibility issue for qemu/kvm, so
it can be hardcoded

BZ 497058

Signed-off-by: Dor Laor <dor@redhat.com>
Message-ID: <4A55B9F3.8050006@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Bugzilla: 497058
Acked-by: Mark McLoughlin <markmc@redhat.com>
Acked-by: Glauber Costa <glommer@redhat.com>
Acked-by: john cooper <john.cooper@redhat.com>
---
 qemu/hw/virtio-blk.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/qemu/hw/virtio-blk.c b/qemu/hw/virtio-blk.c
index ed8575b..e4060d4 100644
--- a/qemu/hw/virtio-blk.c
+++ b/qemu/hw/virtio-blk.c
@@ -310,7 +310,7 @@ void *virtio_blk_init(PCIBus *bus, BlockDriverState *bs)
                                        PCI_DEVICE_ID_VIRTIO_BLOCK,
                                        PCI_VENDOR_ID_REDHAT_QUMRANET,
                                        VIRTIO_ID_BLOCK,
-                                       0x01, 0x80, 0x00,
+                                       0x01, 0x00, 0x00,
                                        sizeof(struct virtio_blk_config), sizeof(VirtIOBlock));
     if (!s)
         return NULL;
-- 
1.6.3.rc4.29.g8146