Commit 9c7e263
x86/cpu: Don't write CSTAR MSR on Intel CPUs
Intel CPUs do not support SYSCALL in 32-bit mode, but the kernel
initializes MSR_CSTAR unconditionally. That MSR write is normally
ignored by the CPU, but in a TDX guest it raises a #VE trap.
Exclude Intel CPUs from the MSR_CSTAR initialization.
[ tglx: Fixed the subject line and removed the redundant comment. ]
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/r/20211119035803.4012145-1-sathyanarayanan.kuppuswamy@linux.intel.com1 parent 1360572 commit 9c7e263
1 file changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1787 | 1787 | | |
1788 | 1788 | | |
1789 | 1789 | | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
1790 | 1801 | | |
1791 | 1802 | | |
1792 | 1803 | | |
1793 | 1804 | | |
1794 | 1805 | | |
1795 | 1806 | | |
1796 | 1807 | | |
1797 | | - | |
| 1808 | + | |
1798 | 1809 | | |
1799 | 1810 | | |
1800 | 1811 | | |
| |||
1806 | 1817 | | |
1807 | 1818 | | |
1808 | 1819 | | |
1809 | | - | |
| 1820 | + | |
1810 | 1821 | | |
1811 | 1822 | | |
1812 | 1823 | | |
| |||
0 commit comments