[patch] x86: Kill bogus MTRR warning when running under vmware - Kernel

This is a discussion on [patch] x86: Kill bogus MTRR warning when running under vmware - Kernel ; x86: Kill bogus MTRR warning when running under vmware The warning is suppressed when running under KVM, but VMware guests also have empty MTRRs. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=468845 Signed-off-by: Chuck Ebbert Index: linux-2.6.27.noarch/arch/x86/kernel/cpu/mtrr/main.c ================================================== ================= --- linux-2.6.27.noarch.orig/arch/x86/kernel/cpu/mtrr/main.c +++ linux-2.6.27.noarch/arch/x86/kernel/cpu/mtrr/main.c @@ -1495,11 +1495,8 ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: [patch] x86: Kill bogus MTRR warning when running under vmware

  1. [patch] x86: Kill bogus MTRR warning when running under vmware

    x86: Kill bogus MTRR warning when running under vmware

    The warning is suppressed when running under KVM, but VMware
    guests also have empty MTRRs.

    Fixes:
    https://bugzilla.redhat.com/show_bug.cgi?id=468845

    Signed-off-by: Chuck Ebbert

    Index: linux-2.6.27.noarch/arch/x86/kernel/cpu/mtrr/main.c
    ================================================== =================
    --- linux-2.6.27.noarch.orig/arch/x86/kernel/cpu/mtrr/main.c
    +++ linux-2.6.27.noarch/arch/x86/kernel/cpu/mtrr/main.c
    @@ -1495,11 +1495,8 @@ int __init mtrr_trim_uncached_memory(uns
    }

    /* kvm/qemu doesn't have mtrr set right, don't trim them all */
    - if (!highest_pfn) {
    - WARN(!kvm_para_available(), KERN_WARNING
    - "WARNING: strange, CPU MTRRs all blank?\n");
    + if (!highest_pfn)
    return 0;
    - }

    /* check entries number */
    memset(num, 0, sizeof(num));
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

  2. Re: [patch] x86: Kill bogus MTRR warning when running under vmware


    * Chuck Ebbert wrote:

    > x86: Kill bogus MTRR warning when running under vmware
    >
    > The warning is suppressed when running under KVM, but VMware
    > guests also have empty MTRRs.
    >
    > Fixes:
    > https://bugzilla.redhat.com/show_bug.cgi?id=468845


    we are working on proper "are we within vmware" detection support.
    Patches already exist and it is useful to know it for other reasons as
    wel.

    Ingo
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

+ Reply to Thread