From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkDcR-0003XF-HF for qemu-devel@nongnu.org; Wed, 05 Jun 2013 09:19:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkDcQ-0001J3-Dj for qemu-devel@nongnu.org; Wed, 05 Jun 2013 09:19:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47990) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkDcQ-0001Ij-4X for qemu-devel@nongnu.org; Wed, 05 Jun 2013 09:19:14 -0400 From: Igor Mammedov Date: Wed, 5 Jun 2013 15:18:43 +0200 Message-Id: <1370438326-27054-13-git-send-email-imammedo@redhat.com> In-Reply-To: <1370438326-27054-1-git-send-email-imammedo@redhat.com> References: <1370438326-27054-1-git-send-email-imammedo@redhat.com> Subject: [Qemu-devel] [PATCH 12/15] target-i386: convert 'hv_vapic' to static property List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: ehabkost@redhat.com, afaerber@suse.de Signed-off-by: Igor Mammedov --- target-i386/cpu.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 95ffb2e..bf56677 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1562,6 +1562,7 @@ static Property cpu_x86_properties[] = { DEFINE_PROP_TSC_FREQ("tsc-frequency"), DEFINE_PROP_HV_SPINLOCKS("hv-spinlocks", HYPERV_SPINLOCK_NEVER_RETRY), DEFINE_PROP_BOOL("hv-relaxed", X86CPU, env.hyperv_relaxed_timing, false), + DEFINE_PROP_BOOL("hv-vapic", X86CPU, env.hyperv_vapic, false), DEFINE_PROP_END_OF_LIST(), }; @@ -1703,7 +1704,7 @@ static void cpu_x86_parse_featurestr(X86CPU *cpu, char *features, Error **errp) } else if (!strcmp(featurestr, "hv_relaxed")) { object_property_parse(OBJECT(cpu), "on", "hv-relaxed", errp); } else if (!strcmp(featurestr, "hv_vapic")) { - env->hyperv_vapic = true; + object_property_parse(OBJECT(cpu), "on", "hv-vapic", errp); } else { error_setg(errp, "feature string `%s' not in format (+feature|" "-feature|feature=xyz)", featurestr); -- 1.7.1