af37ac
From a74e5a0ea4e4a938bf9694b3d6194b68e5cffab1 Mon Sep 17 00:00:00 2001
af37ac
Message-Id: <a74e5a0ea4e4a938bf9694b3d6194b68e5cffab1@dist-git>
af37ac
From: Jiri Denemark <jdenemar@redhat.com>
af37ac
Date: Wed, 9 Jan 2019 15:39:49 +0100
af37ac
Subject: [PATCH] RHEL: cpu_map: Mark arch-facilities feature as non-migratable
af37ac
MIME-Version: 1.0
af37ac
Content-Type: text/plain; charset=UTF-8
af37ac
Content-Transfer-Encoding: 8bit
af37ac
af37ac
RHEL-only
af37ac
af37ac
The arch-facilities feature, which was added only in RHEL, is not
af37ac
migratable and thus it should not be included in host-model features.
af37ac
af37ac
The feature was introduced as arch-capabilities upstream in QEMU 3.1.0,
af37ac
which is later than QEMU 2.10, where we started probing what features
af37ac
cannot be migrated, so we don't need to add this cpu_map hack there.
af37ac
af37ac
https://bugzilla.redhat.com/show_bug.cgi?id=1658406
af37ac
https://bugzilla.redhat.com/show_bug.cgi?id=1664793
af37ac
af37ac
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
af37ac
Reviewed-by: Ján Tomko <jtomko@redhat.com>
af37ac
---
af37ac
 src/cpu/cpu_map.xml | 2 +-
af37ac
 1 file changed, 1 insertion(+), 1 deletion(-)
af37ac
af37ac
diff --git a/src/cpu/cpu_map.xml b/src/cpu/cpu_map.xml
af37ac
index f1f8048c14..9d53d4b43a 100644
af37ac
--- a/src/cpu/cpu_map.xml
af37ac
+++ b/src/cpu/cpu_map.xml
af37ac
@@ -301,7 +301,7 @@
af37ac
     <feature name='stibp'>
af37ac
       <cpuid eax_in='0x07' ecx_in='0x00' edx='0x08000000'/>
af37ac
     </feature>
af37ac
-    <feature name='arch-facilities'>
af37ac
+    <feature name='arch-facilities' migratable='no'>
af37ac
       <cpuid eax_in='0x07' ecx_in='0x00' edx='0x20000000'/>
af37ac
     </feature>
af37ac
     <feature name='ssbd'>
af37ac
-- 
af37ac
2.20.1
af37ac