File 0164-target-i386-Add-pschange-mc-no-feat.patch of Package qemu-testsuite.20749

From: Bruce Rogers <brogers@suse.com>
Date: Mon, 4 Nov 2019 11:25:46 -0700
Subject: target/i386: Add pschange-mc-no feature

Add cpu feature bit for machine check error avoidance on page size
change (aka IFU issue).
This is required to disable ITLB multihit mitigations in nested
hypervisors.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
[BR: BSC#1155812 CVE-2018-12207]
Signed-off-by: Bruce Rogers <brogers@suse.com>
---
 target/i386/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index 80cd357c89b10386b1a8b3cc45a4..a511b3b3ebe9bd9b4933cd8fffa4 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -623,7 +623,7 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
         .type = MSR_FEATURE_WORD,
         .feat_names = {
             "rdctl-no", "ibrs-all", "rsba", "skip-l1dfl-vmentry",
-            "ssb-no", "mds-no", NULL, NULL,
+            "ssb-no", "mds-no", "pschange-mc-no", NULL,
             "taa-no", NULL, NULL, NULL,
             NULL, NULL, NULL, NULL,
             NULL, NULL, NULL, NULL,
openSUSE Build Service is sponsored by