]> git.ipfire.org Git - thirdparty/qemu.git/commit
virtio-balloon: add hugetlb page allocation counts
authorJonathan Helman <jonathan.helman@oracle.com>
Mon, 19 Mar 2018 22:28:49 +0000 (15:28 -0700)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 23 May 2018 00:14:40 +0000 (03:14 +0300)
commitb7b126442977dcfa5641e38b084bd13a0b366cff
tree52b08e7d20235604254f9772f7c74159825a9c06
parent50a6fa8f939a3448967592e5136afcc063f9a25d
virtio-balloon: add hugetlb page allocation counts

qemu should read and report hugetlb page allocation
counts exported in the following kernel patch:

    commit 4c3ca37c4a4394978fd0f005625f6064ed2b9a64
    Author: Jonathan Helman <jonathan.helman@oracle.com>
    Date:   Mon Mar 19 11:00:35 2018 -0700

    virtio_balloon: export hugetlb page allocation counts

    Export the number of successful and failed hugetlb page
    allocations via the virtio balloon driver. These 2 counts
    come directly from the vm_events HTLB_BUDDY_PGALLOC and
    HTLB_BUDDY_PGALLOC_FAIL.

Signed-off-by: Jonathan Helman <jonathan.helman@oracle.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Jason Wang <jasowang@redhat.com>
docs/virtio-balloon-stats.txt
hw/virtio/virtio-balloon.c
include/standard-headers/linux/virtio_balloon.h