search for: out_alloc_pages

Displaying 6 results from an estimated 6 matches for "out_alloc_pages".

2007 Nov 10
1
[PATCH] virtio_pci updates
...info->pages == NULL) { - err = -ENOMEM; - goto out_info; - } - - /* FIXME: is this sufficient for info->n_pages > 1? */ - info->queue = kmap(info->pages); + info->queue = kmalloc(vring_size(num), GFP_KERNEL | __GFP_ZERO); if (info->queue == NULL) { err = -ENOMEM; - goto out_alloc_pages; + goto out_info; } /* activate the queue */ - iowrite32(page_to_pfn(info->pages), + iowrite32(virt_to_phys(info->queue) >> PAGE_SHIFT, vp_dev->ioaddr + VIRTIO_PCI_QUEUE_PFN); /* create the vring */ @@ -297,9 +310,7 @@ static struct virtqueue *vp_find_vq(struct vi...
2007 Nov 10
1
[PATCH] virtio_pci updates
...info->pages == NULL) { - err = -ENOMEM; - goto out_info; - } - - /* FIXME: is this sufficient for info->n_pages > 1? */ - info->queue = kmap(info->pages); + info->queue = kmalloc(vring_size(num), GFP_KERNEL | __GFP_ZERO); if (info->queue == NULL) { err = -ENOMEM; - goto out_alloc_pages; + goto out_info; } /* activate the queue */ - iowrite32(page_to_pfn(info->pages), + iowrite32(virt_to_phys(info->queue) >> PAGE_SHIFT, vp_dev->ioaddr + VIRTIO_PCI_QUEUE_PFN); /* create the vring */ @@ -297,9 +310,7 @@ static struct virtqueue *vp_find_vq(struct vi...
2011 Dec 08
14
[PATCH 0/11] RFC: PCI using capabilitities
Here's the patch series I ended up with. I haven't coded up the QEMU side yet, so no idea if the new driver works. Questions: (1) Do we win from separating ISR, NOTIFY and COMMON? (2) I used a "u8 bar"; should I use a bir and pack it instead? BIR seems a little obscure (noone else in the kernel source seems to refer to it). Cheers, Rusty.
2011 Dec 08
14
[PATCH 0/11] RFC: PCI using capabilitities
Here's the patch series I ended up with. I haven't coded up the QEMU side yet, so no idea if the new driver works. Questions: (1) Do we win from separating ISR, NOTIFY and COMMON? (2) I used a "u8 bar"; should I use a bir and pack it instead? BIR seems a little obscure (noone else in the kernel source seems to refer to it). Cheers, Rusty.
2013 Mar 21
24
[PATCH 00/22] New virtio PCI layout
I've renewed this again, with some comments from HPA. I've tried to keep the new patches separate, so you can see the changes since we last discussed this (and so it's easy to back it out if we decide it's insane). I haven't even looked at the QEMU side so this is completely untested. Comments gratefully received! Rusty. Michael S Tsirkin (1): pci: add pci_iomap_range
2013 Mar 21
24
[PATCH 00/22] New virtio PCI layout
I've renewed this again, with some comments from HPA. I've tried to keep the new patches separate, so you can see the changes since we last discussed this (and so it's easy to back it out if we decide it's insane). I haven't even looked at the QEMU side so this is completely untested. Comments gratefully received! Rusty. Michael S Tsirkin (1): pci: add pci_iomap_range