• Dan Williams's avatar
    x86/mm/pat: Prepare {reserve, free}_memtype() for "decoy" addresses · 510ee090
    Dan Williams authored
    In preparation for using set_memory_uc() instead set_memory_np() for
    isolating poison from speculation, teach the memtype code to sanitize
    physical addresses vs __PHYSICAL_MASK.
    
    The motivation for using set_memory_uc() for this case is to allow
    ongoing access to persistent memory pages via the pmem-driver +
    memcpy_mcsafe() until the poison is repaired.
    
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: "H. Peter Anvin" <hpa@zytor.com>
    Cc: Tony Luck <tony.luck@intel.com>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: <linux-edac@vger.kernel.org>
    Cc: <x86@kernel.org>
    Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
    Acked-by: default avatarIngo Molnar <mingo@redhat.com>
    Signed-off-by: default avatarDave Jiang <dave.jiang@intel.com>
    510ee090
pat.c 29.1 KB