cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-target-i386-Convert-hv_relaxed-to-static-property.patch

0a122b
From 69161658b1c504064ce50f7f89662b44c39d8839 Mon Sep 17 00:00:00 2001
0a122b
From: Vadim Rozenfeld <vrozenfe@redhat.com>
0a122b
Date: Mon, 3 Mar 2014 12:09:19 +0100
0a122b
Subject: [PATCH 07/12] target-i386: Convert 'hv_relaxed' to static property
0a122b
MIME-Version: 1.0
0a122b
Content-Type: text/plain; charset=UTF-8
0a122b
Content-Transfer-Encoding: 8bit
0a122b
0a122b
RH-Author: Vadim Rozenfeld <vrozenfe@redhat.com>
0a122b
Message-id: <1393848564-10511-8-git-send-email-vrozenfe@redhat.com>
0a122b
Patchwork-id: 57963
0a122b
O-Subject: [RHEL-7.0 qemu-kvm v4 PATCH 07/12] target-i386: Convert 'hv_relaxed' to static property
0a122b
Bugzilla: 1057173
0a122b
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
0a122b
RH-Acked-by: Igor Mammedov <imammedo@redhat.com>
0a122b
RH-Acked-by: Eduardo Habkost <ehabkost@redhat.com>
0a122b
RH-Acked-by: Juan Quintela <quintela@redhat.com>
0a122b
0a122b
From: Igor Mammedov <imammedo@redhat.com>
0a122b
0a122b
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
0a122b
Signed-off-by: Andreas Färber <afaerber@suse.de>
0a122b
(cherry picked from commit 89314504197b305173e3f2d23ce541898ef2691c)
0a122b
0a122b
Conflicts:
0a122b
	target-i386/cpu.c
0a122b
---
0a122b
 target-i386/cpu.c | 3 ++-
0a122b
 1 file changed, 2 insertions(+), 1 deletion(-)
0a122b
0a122b
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
0a122b
---
0a122b
 target-i386/cpu.c |    3 ++-
0a122b
 1 files changed, 2 insertions(+), 1 deletions(-)
0a122b
0a122b
diff --git a/target-i386/cpu.c b/target-i386/cpu.c
0a122b
index 826d8d6..7c8efaf 100644
0a122b
--- a/target-i386/cpu.c
0a122b
+++ b/target-i386/cpu.c
0a122b
@@ -1649,7 +1649,7 @@ static void cpu_x86_parse_featurestr(X86CPU *cpu, char *features, Error **errp)
0a122b
         } else if (!strcmp(featurestr, "enforce")) {
0a122b
             check_cpuid = enforce_cpuid = 1;
0a122b
         } else if (!strcmp(featurestr, "hv_relaxed")) {
0a122b
-            cpu->hyperv_relaxed_timing = true;
0a122b
+            object_property_parse(OBJECT(cpu), "on", "hv-relaxed", errp);
0a122b
         } else if (!strcmp(featurestr, "hv_vapic")) {
0a122b
             cpu->hyperv_vapic = true;
0a122b
         } else {
0a122b
@@ -2588,6 +2588,7 @@ static int64_t x86_cpu_get_arch_id(CPUState *cs)
0a122b
 
0a122b
 static Property x86_cpu_properties[] = {
0a122b
     DEFINE_PROP_BOOL("pmu", X86CPU, enable_pmu, false),
0a122b
+    DEFINE_PROP_BOOL("hv-relaxed", X86CPU, hyperv_relaxed_timing, false),
0a122b
     DEFINE_PROP_END_OF_LIST()
0a122b
 };
0a122b
 
0a122b
-- 
0a122b
1.7.1
0a122b