search for: virtio_blk_init

Displaying 12 results from an estimated 12 matches for "virtio_blk_init".

2007 Dec 21
0
[Virtio-for-kvm] [PATCH 3/7] userspace virtio
.../pc.c @@ -1103,6 +1103,18 @@ static void pc_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, 0x5002, 0x2258, + drives_table[index].bdrv); + unit_id++; + } + } } static void pc_init_pci(ram_addr_t ram_size, int vga_ram_size, diff --git a/qemu/hw/pc.h b/qemu/hw/pc.h index ce1a1f3..95471f3 100644 --- a/qemu/hw/pc.h +++ b/qemu/hw/pc.h @@ -147,4 +147,8 @...
2007 Dec 21
0
[Virtio-for-kvm] [PATCH 3/7] userspace virtio
.../pc.c @@ -1103,6 +1103,18 @@ static void pc_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, 0x5002, 0x2258, + drives_table[index].bdrv); + unit_id++; + } + } } static void pc_init_pci(ram_addr_t ram_size, int vga_ram_size, diff --git a/qemu/hw/pc.h b/qemu/hw/pc.h index ce1a1f3..95471f3 100644 --- a/qemu/hw/pc.h +++ b/qemu/hw/pc.h @@ -147,4 +147,8 @...
2007 Dec 21
2
[Virtio-for-kvm] [PATCH 7/7] userspace virtio
.../hw/pc.h index 95471f3..5d4c747 100644 --- a/qemu/hw/pc.h +++ b/qemu/hw/pc.h @@ -145,7 +145,7 @@ void isa_ne2000_init(int base, qemu_irq irq, NICInfo *nd); /* virtio-net.c */ void *virtio_net_init(PCIBus *bus, NICInfo *nd, int devfn); - +void virtio_net_poll(void); /* virtio-blk.h */ void *virtio_blk_init(PCIBus *bus, uint16_t vendor, uint16_t device, diff --git a/qemu/hw/virtio-net.c b/qemu/hw/virtio-net.c index f6f1f28..b955a5e 100644 --- a/qemu/hw/virtio-net.c +++ b/qemu/hw/virtio-net.c @@ -60,8 +60,13 @@ typedef struct VirtIONet VirtQueue *tx_vq; VLANClientState *vc; int can_recei...
2007 Dec 21
2
[Virtio-for-kvm] [PATCH 7/7] userspace virtio
.../hw/pc.h index 95471f3..5d4c747 100644 --- a/qemu/hw/pc.h +++ b/qemu/hw/pc.h @@ -145,7 +145,7 @@ void isa_ne2000_init(int base, qemu_irq irq, NICInfo *nd); /* virtio-net.c */ void *virtio_net_init(PCIBus *bus, NICInfo *nd, int devfn); - +void virtio_net_poll(void); /* virtio-blk.h */ void *virtio_blk_init(PCIBus *bus, uint16_t vendor, uint16_t device, diff --git a/qemu/hw/virtio-net.c b/qemu/hw/virtio-net.c index f6f1f28..b955a5e 100644 --- a/qemu/hw/virtio-net.c +++ b/qemu/hw/virtio-net.c @@ -60,8 +60,13 @@ typedef struct VirtIONet VirtQueue *tx_vq; VLANClientState *vc; int can_recei...
2008 Jan 08
1
[PATCH] QEMU KVM balloon support
..._balloon_init(pci_bus); + #define USE_HYPERCALL #ifdef USE_HYPERCALL pci_hypercall_init(pci_bus); Index: kvm-userspace/qemu/hw/pc.h =================================================================== --- kvm-userspace.orig/qemu/hw/pc.h +++ kvm-userspace/qemu/hw/pc.h @@ -155,4 +155,7 @@ void *virtio_blk_init(PCIBus *bus, uint1 void extboot_init(BlockDriverState *bs, int cmd); +/* virtio-balloon.c */ +void *virtio_balloon_init(PCIBus *bus); + #endif Index: kvm-userspace/qemu/hw/virtio-balloon.c =================================================================== --- /dev/null +++ kvm-userspace/qemu...
2008 Jan 08
1
[PATCH] QEMU KVM balloon support
..._balloon_init(pci_bus); + #define USE_HYPERCALL #ifdef USE_HYPERCALL pci_hypercall_init(pci_bus); Index: kvm-userspace/qemu/hw/pc.h =================================================================== --- kvm-userspace.orig/qemu/hw/pc.h +++ kvm-userspace/qemu/hw/pc.h @@ -155,4 +155,7 @@ void *virtio_blk_init(PCIBus *bus, uint1 void extboot_init(BlockDriverState *bs, int cmd); +/* virtio-balloon.c */ +void *virtio_balloon_init(PCIBus *bus); + #endif Index: kvm-userspace/qemu/hw/virtio-balloon.c =================================================================== --- /dev/null +++ kvm-userspace/qemu...
2008 Jan 09
4
[PATCH/RFC 0/2] CPU hotplug virtio driver
I'm sending a first draft of my proposed cpu hotplug driver for kvm/virtio The first patch is the kernel module, while the second, the userspace pci device. The host boots with the maximum cpus it should ever use, through the -smp parameter. Due to real machine constraints (which qemu copies), i386 does not allow for any addition of cpus after boot, so this is the most general way. I do
2008 Jan 09
4
[PATCH/RFC 0/2] CPU hotplug virtio driver
I'm sending a first draft of my proposed cpu hotplug driver for kvm/virtio The first patch is the kernel module, while the second, the userspace pci device. The host boots with the maximum cpus it should ever use, through the -smp parameter. Due to real machine constraints (which qemu copies), i386 does not allow for any addition of cpus after boot, so this is the most general way. I do
2009 May 11
0
[PATCH 1/2] qemu-kvm: add MSI-X support
...8, sizeof(VirtIOBalloon)); + 8, sizeof(VirtIOBalloon), 0); if (s == NULL) return NULL; diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index 51a8e22..7858a77 100644 --- a/hw/virtio-blk.c +++ b/hw/virtio-blk.c @@ -251,7 +251,8 @@ void *virtio_blk_init(PCIBus *bus, BlockDriverState *bs) PCI_VENDOR_ID_REDHAT_QUMRANET, VIRTIO_ID_BLOCK, PCI_CLASS_STORAGE_OTHER, 0x00, - sizeof(struct virtio_blk_...
2009 May 11
0
[PATCH 1/2] qemu-kvm: add MSI-X support
...8, sizeof(VirtIOBalloon)); + 8, sizeof(VirtIOBalloon), 0); if (s == NULL) return NULL; diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index 51a8e22..7858a77 100644 --- a/hw/virtio-blk.c +++ b/hw/virtio-blk.c @@ -251,7 +251,8 @@ void *virtio_blk_init(PCIBus *bus, BlockDriverState *bs) PCI_VENDOR_ID_REDHAT_QUMRANET, VIRTIO_ID_BLOCK, PCI_CLASS_STORAGE_OTHER, 0x00, - sizeof(struct virtio_blk_...
2009 May 20
0
[PATCHv2-RFC 1/2] qemu-kvm: add MSI-X support
...8, sizeof(VirtIOBalloon)); + 8, sizeof(VirtIOBalloon), 0); if (s == NULL) return NULL; diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index dad4ef0..4e48be4 100644 --- a/hw/virtio-blk.c +++ b/hw/virtio-blk.c @@ -360,7 +360,8 @@ void *virtio_blk_init(PCIBus *bus, BlockDriverState *bs) PCI_VENDOR_ID_REDHAT_QUMRANET, VIRTIO_ID_BLOCK, PCI_CLASS_STORAGE_OTHER, 0x00, - sizeof(struct virtio_blk_...
2009 May 20
0
[PATCHv2-RFC 1/2] qemu-kvm: add MSI-X support
...8, sizeof(VirtIOBalloon)); + 8, sizeof(VirtIOBalloon), 0); if (s == NULL) return NULL; diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index dad4ef0..4e48be4 100644 --- a/hw/virtio-blk.c +++ b/hw/virtio-blk.c @@ -360,7 +360,8 @@ void *virtio_blk_init(PCIBus *bus, BlockDriverState *bs) PCI_VENDOR_ID_REDHAT_QUMRANET, VIRTIO_ID_BLOCK, PCI_CLASS_STORAGE_OTHER, 0x00, - sizeof(struct virtio_blk_...