From patchwork Fri Jan 20 14:11:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phil Dennis-Jordan X-Patchwork-Id: 9528561 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 61E4260434 for ; Fri, 20 Jan 2017 14:12:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5209228684 for ; Fri, 20 Jan 2017 14:12:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3CEF428687; Fri, 20 Jan 2017 14:12:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 20BB028686 for ; Fri, 20 Jan 2017 14:12:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752384AbdATOM0 (ORCPT ); Fri, 20 Jan 2017 09:12:26 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:33177 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752340AbdATOMW (ORCPT ); Fri, 20 Jan 2017 09:12:22 -0500 Received: by mail-wm0-f66.google.com with SMTP id r144so7036351wme.0 for ; Fri, 20 Jan 2017 06:12:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philjordan-eu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=oPU+B25aScjM815JZBLHBb4E3K78OiBWdnvDNsl8kSc=; b=0+ibB2Kx0GI2UEbSuL11Fo0rSiEr2H88DyutnbuqGPMZ1+GfWi7uRtj0nYPKT6ghR+ rpOcWdbMgYD26vTZlCWkAUbamouAAnAR5eWdjxFc+dj3fCNCq7STHi/OgPBwG4xLO9MZ ez67NuC+forXUMsnVV0ElEPNv5HXluftNTYSORxYvLPqyinNAbE5iwnNCkx6OBdnOf60 lhJY3ZNeWIaUM4licVj0q3FPRmjtbhjUHuR30A+rJiUuYxa5UXtEIbaFNcUk5MGcDBqO HI+NwntFSmlXIvl10QR8ZD53yAW5nTvXPthU1SSL/x1bz9C8Ku7BMxQRAnJttCF//1Tc WKFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=oPU+B25aScjM815JZBLHBb4E3K78OiBWdnvDNsl8kSc=; b=FBh13NWfo9PsmaS2JakWjE9IQuAr5yTjTT2X5Gbxds9tbLBUR51pdAdrEZztEwQzuF 3IwEIgimdRn2KqDnAmQgj/W+Mtb1sipRv+wkq7nfrOdTv245/Wi3/8JygBYHHEnIZikV dEByNAFx42PQ3PDJRrmABbwDFhooCbd4A3iGXZwwHbH9rsk+fiiLrzJeVyf4GirKNLrY i2Lfr+pP+NQGQMgekFobne4u1vE38DAMp8+BPB5KhjOeZArXODxDh4MAhmJh+gIUA/fp kq34A7iri55e8Sly7aSs5dnEpvm2nzkljl5wwOQy443/uFVXhhayIFCPpcW8O+MlVPKQ sqYA== X-Gm-Message-State: AIkVDXIrPZlOFIPMRDChoaXQ3f91fKuYKQR4f1r+1pUAPUDc1zmC50QOTITrvkfdPAfRqg== X-Received: by 10.223.177.195 with SMTP id r3mr12455785wra.147.1484921540884; Fri, 20 Jan 2017 06:12:20 -0800 (PST) Received: from Phils-MacBook-Pro-57025.local.eu (37-186-10-86.ip.as39912.net. [37.186.10.86]) by smtp.gmail.com with ESMTPSA id 191sm6339827wmo.21.2017.01.20.06.12.19 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 20 Jan 2017 06:12:20 -0800 (PST) From: Phil Dennis-Jordan To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Richard Henderson , Eduardo Habkost , Marcelo Tosatti , "Michael S. Tsirkin" , kvm@vger.kernel.org, Phil Dennis-Jordan Subject: [PATCH v2 3/3] pc: Enable vmware-cpuid-freq CPU option for 2.9+ machine types Date: Fri, 20 Jan 2017 15:11:36 +0100 Message-Id: <1484921496-11257-4-git-send-email-phil@philjordan.eu> X-Mailer: git-send-email 2.3.2 (Apple Git-55) In-Reply-To: <1484921496-11257-1-git-send-email-phil@philjordan.eu> References: <1484921496-11257-1-git-send-email-phil@philjordan.eu> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Phil Dennis-Jordan --- include/hw/i386/pc.h | 5 +++++ target/i386/cpu.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h index 853edf8..e0ad244 100644 --- a/include/hw/i386/pc.h +++ b/include/hw/i386/pc.h @@ -376,6 +376,11 @@ bool e820_get_entry(int, uint32_t, uint64_t *, uint64_t *); #define PC_COMPAT_2_8 \ HW_COMPAT_2_8 \ + {\ + .driver = TYPE_X86_CPU,\ + .property = "vmware-cpuid-freq",\ + .value = "off",\ + }, #define PC_COMPAT_2_7 \ HW_COMPAT_2_7 \ diff --git a/target/i386/cpu.c b/target/i386/cpu.c index dabad37..feded98 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -3677,7 +3677,7 @@ static Property x86_cpu_properties[] = { DEFINE_PROP_BOOL("cpuid-0xb", X86CPU, enable_cpuid_0xb, true), DEFINE_PROP_BOOL("lmce", X86CPU, enable_lmce, false), DEFINE_PROP_BOOL("l3-cache", X86CPU, enable_l3_cache, true), - DEFINE_PROP_BOOL("vmware-cpuid-freq", X86CPU, vmware_cpuid_freq, false), + DEFINE_PROP_BOOL("vmware-cpuid-freq", X86CPU, vmware_cpuid_freq, true), DEFINE_PROP_END_OF_LIST() };