• Nadav Amit's avatar
    vmw_balloon: Split refused pages · ae29783d
    Nadav Amit authored
    The hypervisor might refuse to inflate pages. While the balloon driver
    handles this scenario correctly, a refusal to inflate a 2MB pages might
    cause the same page to be allocated again later just for its inflation
    to be refused again. This wastes energy and time.
    
    To avoid this situation, split the 2MB page to 4KB pages, and then try
    to inflate each one individually. Most of the 4KB pages out of the 2MB
    should be inflated successfully, and the balloon is likely to prevent
    the scenario of repeated refused inflation.
    Reviewed-by: default avatarXavier Deguillard <xdeguillard@vmware.com>
    Signed-off-by: default avatarNadav Amit <namit@vmware.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    ae29783d
vmw_balloon.c 54.9 KB