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: 9528585 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 08C506045F for ; Fri, 20 Jan 2017 14:24:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF38028686 for ; Fri, 20 Jan 2017 14:24:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E3C752868B; Fri, 20 Jan 2017 14:24:54 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6606B2868B for ; Fri, 20 Jan 2017 14:24:54 +0000 (UTC) Received: from localhost ([::1]:55116 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUa7Z-0005yu-0o for patchwork-qemu-devel@patchwork.kernel.org; Fri, 20 Jan 2017 09:24:53 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUZvW-0004Ru-PQ for qemu-devel@nongnu.org; Fri, 20 Jan 2017 09:12:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cUZvS-0003CZ-2j for qemu-devel@nongnu.org; Fri, 20 Jan 2017 09:12:26 -0500 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:34252) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cUZvR-0003CC-Sn for qemu-devel@nongnu.org; Fri, 20 Jan 2017 09:12:22 -0500 Received: by mail-wm0-x243.google.com with SMTP id c85so6982944wmi.1 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=Ah4Vgum+RSQ5Y8FOpr+tt6y8e9IENkCVop+8XXY5Aj7Tx4lFcIJPgA2LByaax0VpHu x5PrQF3Ice6fnLsjrzepOTOwH717Qojz5B8xLc9doJsJs2ulZYWlpqUy3oLqV6t1jyhq G3wzUxQUWuZR8MYnuZRtBsQRk8JUC63UvXa99mZjxQeTaGYzVG6u23JJEQJJpmVg1pyb B3gMyK2lsm8LsO1eZc+EZ2c9xGYpyOtmr1fJ6fiOmVmfiJkFgYzTOzD/XylgKhZk2CJQ bphJcVAVT8zbvB2uSSeIEOvENIniO5Vj6PNVjddVvqMKmySX6NsxNdaQWfDAK+Zu7Ch5 j2Rw== X-Gm-Message-State: AIkVDXLNCnrWCJji12xY8b/0MiBE+mpgIO9q51dGoslEmbLhZMNA3+REDTzfbZw5kYxvRA== 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 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> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::243 Subject: [Qemu-devel] [PATCH v2 3/3] pc: Enable vmware-cpuid-freq CPU option for 2.9+ machine types X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Phil Dennis-Jordan , Eduardo Habkost , kvm@vger.kernel.org, "Michael S. Tsirkin" , Marcelo Tosatti , Paolo Bonzini , Richard Henderson Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" 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() };