public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] KVM:Qemu: Enable virtio for kvm/ia64.
@ 2008-08-25 11:15 Zhang, Xiantao
  2008-08-25 13:40 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Zhang, Xiantao @ 2008-08-25 11:15 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm-ia64, kvm

[-- Attachment #1: Type: text/plain, Size: 999 bytes --]

>From 31f8488afa4336362464ed5b9f0c84a9a0fd0c94 Mon Sep 17 00:00:00 2001
From: Xiantao Zhang <xiantao.zhang@intel.com>
Date: Mon, 25 Aug 2008 18:57:39 +0800
Subject: [PATCH] KVM:Qemu: Enable virtio for kvm/ia64.

Enable virtio-blk for kvm/ia64.
Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
---
 qemu/hw/ipf.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/qemu/hw/ipf.c b/qemu/hw/ipf.c
index 134076a..05f3d68 100644
--- a/qemu/hw/ipf.c
+++ b/qemu/hw/ipf.c
@@ -652,6 +652,17 @@ static void ipf_init1(ram_addr_t ram_size, int
vga_ram_size,
 	    }
         }
     }
+    /* Add virtio block devices */
+    if (pci_enabled) {
+	int index;
+	int unit_id = 0;
+
+	while ((index = drive_get_index(IF_VIRTIO, 0, unit_id)) != -1) {
+	    virtio_blk_init(pci_bus, 0x1AF4, 0x1001,
+			    drives_table[index].bdrv);
+	    unit_id++;
+	}
+    }
 }
 
 static void ipf_init_pci(ram_addr_t ram_size, int vga_ram_size,
-- 
1.5.1


[-- Attachment #2: 0001-KVM-Qemu-Enable-virtio-for-kvm-ia64.patch --]
[-- Type: application/octet-stream, Size: 961 bytes --]

From 31f8488afa4336362464ed5b9f0c84a9a0fd0c94 Mon Sep 17 00:00:00 2001
From: Xiantao Zhang <xiantao.zhang@intel.com>
Date: Mon, 25 Aug 2008 18:57:39 +0800
Subject: [PATCH] KVM:Qemu: Enable virtio for kvm/ia64.

Enable virtio-blk for kvm/ia64.
Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
---
 qemu/hw/ipf.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/qemu/hw/ipf.c b/qemu/hw/ipf.c
index 134076a..05f3d68 100644
--- a/qemu/hw/ipf.c
+++ b/qemu/hw/ipf.c
@@ -652,6 +652,17 @@ static void ipf_init1(ram_addr_t ram_size, int vga_ram_size,
 	    }
         }
     }
+    /* Add virtio block devices */
+    if (pci_enabled) {
+	int index;
+	int unit_id = 0;
+
+	while ((index = drive_get_index(IF_VIRTIO, 0, unit_id)) != -1) {
+	    virtio_blk_init(pci_bus, 0x1AF4, 0x1001,
+			    drives_table[index].bdrv);
+	    unit_id++;
+	}
+    }
 }
 
 static void ipf_init_pci(ram_addr_t ram_size, int vga_ram_size,
-- 
1.5.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] KVM:Qemu: Enable virtio for kvm/ia64.
  2008-08-25 11:15 [PATCH] KVM:Qemu: Enable virtio for kvm/ia64 Zhang, Xiantao
@ 2008-08-25 13:40 ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2008-08-25 13:40 UTC (permalink / raw)
  To: Zhang, Xiantao; +Cc: kvm-ia64, kvm

Zhang, Xiantao wrote:
> From 31f8488afa4336362464ed5b9f0c84a9a0fd0c94 Mon Sep 17 00:00:00 2001
> From: Xiantao Zhang <xiantao.zhang@intel.com>
> Date: Mon, 25 Aug 2008 18:57:39 +0800
> Subject: [PATCH] KVM:Qemu: Enable virtio for kvm/ia64.
>
> Enable virtio-blk for kvm/ia64.
> Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
>   

Applied, thanks.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-08-25 13:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-25 11:15 [PATCH] KVM:Qemu: Enable virtio for kvm/ia64 Zhang, Xiantao
2008-08-25 13:40 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox