>From 31f8488afa4336362464ed5b9f0c84a9a0fd0c94 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <xiantao.zhang@xxxxxxxxx> 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@xxxxxxxxx> --- 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:
0001-KVM-Qemu-Enable-virtio-for-kvm-ia64.patch
Description: 0001-KVM-Qemu-Enable-virtio-for-kvm-ia64.patch