aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/pci-host-common.c
diff options
context:
space:
mode:
authorVitaly Kuznetsov <[email protected]>2020-12-02 16:12:45 +0000
committerWei Liu <[email protected]>2020-12-13 15:06:10 +0000
commitd1df458cbfdb0c3384c03c7fbcb1689bc02a746c (patch)
treebeb19693f61322a53297b89b64210a17f142213e /drivers/pci/controller/pci-host-common.c
parenthv_balloon: simplify math in alloc_balloon_pages() (diff)
downloadkernel-d1df458cbfdb0c3384c03c7fbcb1689bc02a746c.tar.gz
kernel-d1df458cbfdb0c3384c03c7fbcb1689bc02a746c.zip
hv_balloon: do adjust_managed_page_count() when ballooning/un-ballooning
Unlike virtio_balloon/virtio_mem/xen balloon drivers, Hyper-V balloon driver does not adjust managed pages count when ballooning/un-ballooning and this leads to incorrect stats being reported, e.g. unexpected 'free' output. Note, the calculation in post_status() seems to remain correct: ballooned out pages are never 'available' and we manually add dm->num_pages_ballooned to 'commited'. Suggested-by: David Hildenbrand <[email protected]> Signed-off-by: Vitaly Kuznetsov <[email protected]> Reviewed-by: David Hildenbrand <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Wei Liu <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pci-host-common.c')
0 files changed, 0 insertions, 0 deletions