Blob Blame History Raw
From 31194033bdc6f379edebe9fa818536d478a629f0 Mon Sep 17 00:00:00 2001
From: "plai@redhat.com" <plai@redhat.com>
Date: Thu, 16 May 2019 20:44:02 +0100
Subject: [PATCH 1/8] i386: Make arch_capabilities migratable

RH-Author: plai@redhat.com
Message-id: <1558039442-5246-1-git-send-email-plai@redhat.com>
Patchwork-id: 87976
O-Subject: [RHEL8.1 qemu-kvm PATCH v2] i386: Make arch_capabilities migratable
Bugzilla: 1709970
RH-Acked-by: Eduardo Habkost <ehabkost@redhat.com>
RH-Acked-by: Bandan Das <bsd@redhat.com>
RH-Acked-by: Igor Mammedov <imammedo@redhat.com>

From: Eduardo Habkost <ehabkost@redhat.com>

BZ https://bugzilla.redhat.com/show_bug.cgi?id=1709970
Brew: http://brewweb.devel.redhat.com/brew/taskinfo?taskID=21668672
Branch: rhel-8.1.0

In v1, we included CascadeLake Server cpu model.  That has been removed
in favor a separate submission.

---

Now that kvm_arch_get_supported_cpuid() will only return
arch_capabilities if QEMU is able to initialize the MSR properly,
we know that the feature is safely migratable.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20190125220606.4864-3-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
(cherry picked from commit 014018e19b3c54dd1bf5072bc912ceffea40abe8)
Signed-off-by: Paul Lai <plai@redhat.com>
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
---
 target/i386/cpu.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index e9025cd..4411012 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -1053,7 +1053,6 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
             .reg = R_EDX,
         },
         .tcg_features = TCG_7_0_EDX_FEATURES,
-        .unmigratable_flags = CPUID_7_0_EDX_ARCH_CAPABILITIES,
     },
     [FEAT_8000_0007_EDX] = {
         .type = CPUID_FEATURE_WORD,
-- 
1.8.3.1