search for: report_free_page_completion

Displaying 5 results from an estimated 5 matches for "report_free_page_completion".

2017 Aug 03
0
[PATCH v13 5/5] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_VQ
...d_free_pages(void *opaque, unsigned long pfn, + unsigned long nr_pages) +{ + struct virtio_balloon *vb = (struct virtio_balloon *)opaque; + void *addr = pfn_to_kaddr(pfn); + uint32_t len = nr_pages << PAGE_SHIFT; + + send_one_sg(vb, vb->free_page_vq, addr, len, 1); +} + +static void report_free_page_completion(struct virtio_balloon *vb) +{ + struct virtqueue *vq = vb->free_page_vq; + struct scatterlist sg; + unsigned int len; + + sg_init_one(&sg, &vb->report_free_page_signal, sizeof(__virtio32)); + while (unlikely(virtqueue_add_outbuf(vq, &sg, 1, vb, GFP_KERNEL) + == -ENOSPC)) { + vi...
2017 Aug 03
2
[PATCH v13 5/5] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_VQ
...ages) > +{ > + struct virtio_balloon *vb = (struct virtio_balloon *)opaque; > + void *addr = pfn_to_kaddr(pfn); > + uint32_t len = nr_pages << PAGE_SHIFT; > + > + send_one_sg(vb, vb->free_page_vq, addr, len, 1); > +} > + > +static void report_free_page_completion(struct virtio_balloon *vb) > +{ > + struct virtqueue *vq = vb->free_page_vq; > + struct scatterlist sg; > + unsigned int len; > + > + sg_init_one(&sg, &vb->report_free_page_signal, sizeof(__virtio32)); > + while (unlikely(virtque...
2017 Aug 03
2
[PATCH v13 5/5] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_VQ
...ages) > +{ > + struct virtio_balloon *vb = (struct virtio_balloon *)opaque; > + void *addr = pfn_to_kaddr(pfn); > + uint32_t len = nr_pages << PAGE_SHIFT; > + > + send_one_sg(vb, vb->free_page_vq, addr, len, 1); > +} > + > +static void report_free_page_completion(struct virtio_balloon *vb) > +{ > + struct virtqueue *vq = vb->free_page_vq; > + struct scatterlist sg; > + unsigned int len; > + > + sg_init_one(&sg, &vb->report_free_page_signal, sizeof(__virtio32)); > + while (unlikely(virtque...
2017 Aug 03
12
[PATCH v13 0/5] Virtio-balloon Enhancement
This patch series enhances the existing virtio-balloon with the following new features: 1) fast ballooning: transfer ballooned pages between the guest and host in chunks using sgs, instead of one by one; and 2) free_page_vq: a new virtqueue to report guest free pages to the host. The second feature can be used to accelerate live migration of VMs. Here are some details: Live migration needs to
2017 Aug 03
12
[PATCH v13 0/5] Virtio-balloon Enhancement
This patch series enhances the existing virtio-balloon with the following new features: 1) fast ballooning: transfer ballooned pages between the guest and host in chunks using sgs, instead of one by one; and 2) free_page_vq: a new virtqueue to report guest free pages to the host. The second feature can be used to accelerate live migration of VMs. Here are some details: Live migration needs to