thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone

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

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