diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2018-03-15 09:49:06 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2018-03-27 05:49:58 -0400 |
commit | 547edaca247abf910e32f0cd883ba83b8fc6d0ed (patch) | |
tree | fb804f3d82c12a579c416245f04ed427d30d170a /arch/x86/kernel/cpu/intel.c | |
parent | fc5d1073cae299de4517755a910df4f12a6a438f (diff) |
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: Kai Huang <kai.huang@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Thomas 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
Diffstat (limited to 'arch/x86/kernel/cpu/intel.c')
-rw-r--r-- | arch/x86/kernel/cpu/intel.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c index 3f8d7a3b6447..6106d11ceb6b 100644 --- a/arch/x86/kernel/cpu/intel.c +++ b/arch/x86/kernel/cpu/intel.c | |||
@@ -587,11 +587,8 @@ detect_keyid_bits: | |||
587 | } | 587 | } |
588 | 588 | ||
589 | /* | 589 | /* |
590 | * Exclude KeyID bits from physical address bits. | 590 | * KeyID bits effectively lower the number of physical address |
591 | * | 591 | * bits. Update cpuinfo_x86::x86_phys_bits accordingly. |
592 | * We have to do this even if we are not going to use KeyID bits | ||
593 | * ourself. VM guests still have to know that these bits are not usable | ||
594 | * for physical address. | ||
595 | */ | 592 | */ |
596 | c->x86_phys_bits -= keyid_bits; | 593 | c->x86_phys_bits -= keyid_bits; |
597 | } | 594 | } |