yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
69f3e1
From c521a837f3490e8f61d129ab1940f8fd76a87b8a Mon Sep 17 00:00:00 2001
69f3e1
From: "plai@redhat.com" <plai@redhat.com>
69f3e1
Date: Tue, 20 Aug 2019 00:24:39 +0100
69f3e1
Subject: [PATCH 8/9] i386: Make arch_capabilities migratable
69f3e1
69f3e1
RH-Author: plai@redhat.com
69f3e1
Message-id: <1566260680-20995-9-git-send-email-plai@redhat.com>
69f3e1
Patchwork-id: 90067
69f3e1
O-Subject: [RHEL8.0 qemu-kvm PATCH v3 8/9] i386: Make arch_capabilities migratable
69f3e1
Bugzilla: 1718235
69f3e1
RH-Acked-by: Eduardo Habkost <ehabkost@redhat.com>
69f3e1
RH-Acked-by: John Snow <jsnow@redhat.com>
69f3e1
RH-Acked-by: Igor Mammedov <imammedo@redhat.com>
69f3e1
69f3e1
From: Eduardo Habkost <ehabkost@redhat.com>
69f3e1
69f3e1
Now that kvm_arch_get_supported_cpuid() will only return
69f3e1
arch_capabilities if QEMU is able to initialize the MSR properly,
69f3e1
we know that the feature is safely migratable.
69f3e1
69f3e1
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
69f3e1
Message-Id: <20190125220606.4864-3-ehabkost@redhat.com>
69f3e1
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
69f3e1
(cherry picked from commit 014018e19b3c54dd1bf5072bc912ceffea40abe8)
69f3e1
Signed-off-by: Paul Lai <plai@redhat.com>
69f3e1
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
69f3e1
---
69f3e1
 target/i386/cpu.c | 1 -
69f3e1
 1 file changed, 1 deletion(-)
69f3e1
69f3e1
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
69f3e1
index fbcf124..365c92c 100644
69f3e1
--- a/target/i386/cpu.c
69f3e1
+++ b/target/i386/cpu.c
69f3e1
@@ -1053,7 +1053,6 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
69f3e1
             .reg = R_EDX,
69f3e1
         },
69f3e1
         .tcg_features = TCG_7_0_EDX_FEATURES,
69f3e1
-        .unmigratable_flags = CPUID_7_0_EDX_ARCH_CAPABILITIES,
69f3e1
     },
69f3e1
     [FEAT_8000_0007_EDX] = {
69f3e1
         .type = CPUID_FEATURE_WORD,
69f3e1
-- 
69f3e1
1.8.3.1
69f3e1