lkml.org 
[lkml]   [2019]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[RFC PATCH QEMU] i386/kvm: Enable paravirtual unused page hint mechanism
    From
    Date
    From: Alexander Duyck <alexander.h.duyck@linux.intel.com>

    This patch adds the flag named kvm-pv-unused-page-hint. This functionality
    is enabled by kvm for x86 and provides a mechanism by which the guest can
    indicate to the host which pages it is no longer using. By providing these
    hints the guest can help to reduce the memory pressure on the host as
    dirtied pages will be cleared and not written out to swap if they are
    marked as being unused.

    Signed-off-by: Alexander Duyck <alexander.h.duyck@linux.intel.com>
    ---
    target/i386/cpu.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/target/i386/cpu.c b/target/i386/cpu.c
    index 2f5412592d30..0d19a9dc64f1 100644
    --- a/target/i386/cpu.c
    +++ b/target/i386/cpu.c
    @@ -900,7 +900,7 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
    "kvmclock", "kvm-nopiodelay", "kvm-mmu", "kvmclock",
    "kvm-asyncpf", "kvm-steal-time", "kvm-pv-eoi", "kvm-pv-unhalt",
    NULL, "kvm-pv-tlb-flush", NULL, "kvm-pv-ipi",
    - NULL, NULL, NULL, NULL,
    + "kvm-pv-unused-page-hint", NULL, NULL, NULL,
    NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL,
    "kvmclock-stable-bit", NULL, NULL, NULL,
    \
     
     \ /
      Last update: 2019-02-04 19:21    [W:4.172 / U:0.080 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site