• Alexander Duyck's avatar
    virtio-balloon: add support for providing free page reports to host · b0c504f1
    Alexander Duyck authored
    Add support for the page reporting feature provided by virtio-balloon.
    Reporting differs from the regular balloon functionality in that is is
    much less durable than a standard memory balloon.  Instead of creating a
    list of pages that cannot be accessed the pages are only inaccessible
    while they are being indicated to the virtio interface.  Once the
    interface has acknowledged them they are placed back into their respective
    free lists and are once again accessible by the guest system.
    
    Unlike a standard balloon we don't inflate and deflate the pages.  Instead
    we perform the reporting, and once the reporting is completed it is
    assumed that the page has been dropped from the guest and will be faulted
    back in the next time the page is accessed.
    Signed-off-by: default avatarAlexander Duyck <alexander.h.duyck@linux.intel.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
    Acked-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    Cc: Andrea Arcangeli <aarcange@redhat.com>
    Cc: Dan Williams <dan.j.williams@intel.com>
    Cc: Dave Hansen <dave.hansen@intel.com>
    Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
    Cc: Luiz Capitulino <lcapitulino@redhat.com>
    Cc: Matthew Wilcox <willy@infradead.org>
    Cc: Mel Gorman <mgorman@techsingularity.net>
    Cc: Michal Hocko <mhocko@kernel.org>
    Cc: Nitesh Narayan Lal <nitesh@redhat.com>
    Cc: Oscar Salvador <osalvador@suse.de>
    Cc: Pankaj Gupta <pagupta@redhat.com>
    Cc: Paolo Bonzini <pbonzini@redhat.com>
    Cc: Rik van Riel <riel@surriel.com>
    Cc: Vlastimil Babka <vbabka@suse.cz>
    Cc: Wei Wang <wei.w.wang@intel.com>
    Cc: Yang Zhang <yang.zhang.wz@gmail.com>
    Cc: wei qi <weiqi4@huawei.com>
    Link: http://lkml.kernel.org/r/20200211224657.29318.68624.stgit@localhost.localdomainSigned-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    b0c504f1
Kconfig 2.81 KB