]> Git Repo - linux.git/commitdiff
x86/mm: Update comment in detect_tme() regarding x86_phys_bits
authorKirill A. Shutemov <[email protected]>
Thu, 15 Mar 2018 13:49:06 +0000 (16:49 +0300)
committerThomas Gleixner <[email protected]>
Tue, 27 Mar 2018 09:49:58 +0000 (11:49 +0200)
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 <[email protected]>
Signed-off-by: Kirill A. Shutemov <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: Tom Lendacky <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
arch/x86/kernel/cpu/intel.c

index 3f8d7a3b644743ef03045acaa089ca83abddef94..6106d11ceb6bbba5961d3e27b62c16056261b652 100644 (file)
@@ -587,11 +587,8 @@ detect_keyid_bits:
        }
 
        /*
-        * 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;
 }
This page took 0.062122 seconds and 4 git commands to generate.