search for: num_hint

Displaying 3 results from an estimated 3 matches for "num_hint".

Did you mean: num_hints
2018 Jun 15
0
[PATCH v33 2/4] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT
...uct virtqueue *vq; + struct virtio_balloon_free_page_hints *hints; + struct scatterlist sg; + uint32_t hdr_size, avail_entries, added_entries; + + vb = container_of(work, struct virtio_balloon, report_free_page_work); + vq = vb->free_page_vq; + hints = vb->hints; + hdr_size = sizeof(hints->num_hints) + sizeof(hints->size); + avail_entries = (FREE_PAGE_HINT_MEM_SIZE - hdr_size) / sizeof(__le64); + + added_entries = get_from_free_page_list(MAX_ORDER - 1, hints->buf, + avail_entries); + hints->num_hints = cpu_to_le32(added_entries); + hints->size = cpu_to_le32((1 << (MAX_O...
2018 Jun 15
10
[PATCH v33 0/4] Virtio-balloon: support free page reporting
This patch series is separated from the previous "Virtio-balloon Enhancement" series. The new feature, VIRTIO_BALLOON_F_FREE_PAGE_HINT, implemented by this series enables the virtio-balloon driver to report hints of guest free pages to the host. It can be used to accelerate live migration of VMs. Here is an introduction of this usage: Live migration needs to transfer the VM's
2018 Jun 15
10
[PATCH v33 0/4] Virtio-balloon: support free page reporting
This patch series is separated from the previous "Virtio-balloon Enhancement" series. The new feature, VIRTIO_BALLOON_F_FREE_PAGE_HINT, implemented by this series enables the virtio-balloon driver to report hints of guest free pages to the host. It can be used to accelerate live migration of VMs. Here is an introduction of this usage: Live migration needs to transfer the VM's