c9e3853c04
24448-x86-pt-irq-leak.patch - Upstream patches from Jan 24261-x86-cpuidle-Westmere-EX.patch 24417-amd-erratum-573.patch 24429-mceinj-tool.patch 24447-x86-TXT-INIT-SIPI-delay.patch ioemu-9868-MSI-X.patch - bnc#732884 - remove private runlevel 4 from init scripts xen.no-default-runlevel-4.patch - bnc#727515 - Fragmented packets hang network boot of HVM guest ipxe-gcc45-warnings.patch ipxe-ipv4-fragment.patch ipxe-enable-nics.patch - fate#310510 - fix xenpaging update xenpaging.autostart.patch, make changes with mem-swap-target permanent update xenpaging.doc.patch, mention issues with live migration - fate#310510 - fix xenpaging add xenpaging.evict_mmap_readonly.patch update xenpaging.error-handling.patch, reduce debug output - bnc#736824 - Microcode patches for AMD's 15h processors panic the system 24189-x86-p2m-pod-locking.patch 24412-x86-AMD-errata-model-shift.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=164
50 lines
2.2 KiB
Diff
50 lines
2.2 KiB
Diff
# HG changeset patch
|
|
# User Liu, Jinsong <jinsong.liu@intel.com>
|
|
# Date 1322738563 -3600
|
|
# Node ID d9cb04ed55398ea4043c85573460afaf023aa1e9
|
|
# Parent 1f6b58c8e1ba8d27dfb97f0da96d18d3ad163317
|
|
X86: Disable PCID/INVPCID for dom0
|
|
|
|
PCID (Process-context identifier) is a facility by which a logical
|
|
processor may cache information for multiple linear-address spaces.
|
|
INVPCID is an new instruction to invalidate TLB. Refer latest Intel SDM
|
|
http://www.intel.com/content/www/us/en/processors/architectures-software-developer-manuals.html
|
|
|
|
We disable PCID/INVPCID for dom0 and pv. Exposing them into dom0 and pv
|
|
may result in performance regression, and it would trigger GP or UD
|
|
depending on whether platform suppport INVPCID or not.
|
|
|
|
This patch disables PCID/INVPCID for dom0.
|
|
|
|
Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
|
|
Committed-by: Jan Beulich <jbeulich@suse.com>
|
|
|
|
--- a/xen/arch/x86/traps.c
|
|
+++ b/xen/arch/x86/traps.c
|
|
@@ -836,6 +836,7 @@ static void pv_cpuid(struct cpu_user_reg
|
|
__clear_bit(X86_FEATURE_CX16 % 32, &c);
|
|
__clear_bit(X86_FEATURE_XTPR % 32, &c);
|
|
__clear_bit(X86_FEATURE_PDCM % 32, &c);
|
|
+ __clear_bit(X86_FEATURE_PCID % 32, &c);
|
|
__clear_bit(X86_FEATURE_DCA % 32, &c);
|
|
if ( !xsave_enabled(current) )
|
|
{
|
|
--- a/xen/include/asm-x86/cpufeature.h
|
|
+++ b/xen/include/asm-x86/cpufeature.h
|
|
@@ -97,6 +97,7 @@
|
|
#define X86_FEATURE_CX16 (4*32+13) /* CMPXCHG16B */
|
|
#define X86_FEATURE_XTPR (4*32+14) /* Send Task Priority Messages */
|
|
#define X86_FEATURE_PDCM (4*32+15) /* Perf/Debug Capability MSR */
|
|
+#define X86_FEATURE_PCID (4*32+17) /* Process Context ID */
|
|
#define X86_FEATURE_DCA (4*32+18) /* Direct Cache Access */
|
|
#define X86_FEATURE_SSE4_1 (4*32+19) /* Streaming SIMD Extensions 4.1 */
|
|
#define X86_FEATURE_SSE4_2 (4*32+20) /* Streaming SIMD Extensions 4.2 */
|
|
@@ -151,6 +152,7 @@
|
|
#define X86_FEATURE_SMEP (7*32+ 7) /* Supervisor Mode Execution Protection */
|
|
#define X86_FEATURE_BMI2 (7*32+ 8) /* 2nd bit manipulation extensions */
|
|
#define X86_FEATURE_ERMS (7*32+ 9) /* Enhanced REP MOVSB/STOSB */
|
|
+#define X86_FEATURE_INVPCID (7*32+10) /* Invalidate Process Context ID */
|
|
|
|
#define cpu_has(c, bit) test_bit(bit, (c)->x86_capability)
|
|
#define boot_cpu_has(bit) test_bit(bit, boot_cpu_data.x86_capability)
|