Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 547edaca authored by Kirill A. Shutemov's avatar Kirill A. Shutemov Committed by Thomas Gleixner
Browse files

x86/mm: Update comment in detect_tme() regarding x86_phys_bits



As Kai pointed out, the primary reason for adjusting x86_phys_bits is to
reflect that the the address space is reduced and not the ability to
communicate the available physical address space to virtual machines.

Suggested-by: default avatarKai Huang <kai.huang@linux.intel.com>
Signed-off-by: default avatarKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: linux-mm@kvack.org
Link: https://lkml.kernel.org/r/20180315134907.9311-2-kirill.shutemov@linux.intel.com
parent fc5d1073
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -587,11 +587,8 @@ static void detect_tme(struct cpuinfo_x86 *c)
	}

	/*
	 * Exclude KeyID bits from physical address bits.
	 *
	 * We have to do this even if we are not going to use KeyID bits
	 * ourself. VM guests still have to know that these bits are not usable
	 * for physical address.
	 * KeyID bits effectively lower the number of physical address
	 * bits.  Update cpuinfo_x86::x86_phys_bits accordingly.
	 */
	c->x86_phys_bits -= keyid_bits;
}