From nobody Fri Apr 26 10:26:45 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1593504356; cv=none; d=zohomail.com; s=zohoarc; b=CFBTHDRmfsUo++Dh9zySReINdH5NWZS6Wf+Bi6b7pZ3HyT1CKu9VCCSrbZQOoJTZbLYIVS6ghctltZ501ofS3Qz/QGh1V2gGcgKbkbHqbt3Z37RavEcJj3Wzvzlok0eiXiKAqif+HJh0uZWZsOxWwo+3+DWEkH49/6NYcI1jFOo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1593504356; h=Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:Sender:Subject:To; bh=5dT9soJietG8zL7KOq70NrdvqEUmJC1Cpar2IUiqZ8Y=; b=O9cargSq8ud4NdtYDNLK7u/ZsgKHgfy04VfPLWQMKcnuaQBjXf5Hl5Fz5hxPwbZXe9FsClDAwPoJNyFnAGUqdL7d8zKndt+nMRj0J3hJX/971fansawd3aTdVV+gz1+B9u99BwAEn8mR3hHDBBcLXHZXkr8jk7QCKOzz0uZGxWo= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1593504356935249.02536257049292; Tue, 30 Jun 2020 01:05:56 -0700 (PDT) Received: from localhost ([::1]:42814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jqBH9-00069n-72 for importer@patchew.org; Tue, 30 Jun 2020 04:05:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53066) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqBGX-0005fX-4i for qemu-devel@nongnu.org; Tue, 30 Jun 2020 04:05:17 -0400 Received: from mga18.intel.com ([134.134.136.126]:27272) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqBGU-0001jO-3B for qemu-devel@nongnu.org; Tue, 30 Jun 2020 04:05:16 -0400 Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jun 2020 01:05:08 -0700 Received: from icx-2s.bj.intel.com ([10.240.192.138]) by orsmga005.jf.intel.com with ESMTP; 30 Jun 2020 01:05:07 -0700 IronPort-SDR: ed8oQUS+Vzu8AOG1+n4ASqDRZh1O9xQUjtNqWBS8G2ytwAKDqw6lKpr/pU6MDjgSK1I1IGjZfb DhtKOPxjOKuw== X-IronPort-AV: E=McAfee;i="6000,8403,9666"; a="133622474" X-IronPort-AV: E=Sophos;i="5.75,296,1589266800"; d="scan'208";a="133622474" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False IronPort-SDR: gKJ37AnQCx1UWP+jTFVnoHaEFXph2P2PnD2oaXyAtHK+Bd7xOkmYvYXZzzBQA0Rr8+PM7QTkaO VtBiPbxeT+VQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,296,1589266800"; d="scan'208";a="454515633" From: Luwei Kang To: qemu-devel@nongnu.org Subject: [PATCH] target/i386: Correct the warning message of Intel PT Date: Tue, 30 Jun 2020 14:38:33 +0800 Message-Id: <1593499113-4768-1-git-send-email-luwei.kang@intel.com> X-Mailer: git-send-email 1.8.3.1 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=134.134.136.126; envelope-from=luwei.kang@intel.com; helo=mga18.intel.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/30 04:05:09 X-ACL-Warn: Detected OS = FreeBSD 9.x or newer [fuzzy] X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: pbonzini@redhat.com, Luwei Kang , ehabkost@redhat.com, rth@twiddle.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" The CPUID level need to be set to 0x14 manually on old machine-type if Intel PT is enabled in guest. E.g. the CPUID[0].EAX(level)=3D7 and CPUID[7].EBX[25](intel-pt)=3D1 when the Qemu with "-machine pc-i440fx-3.1 -cpu qemu64,+intel-pt" parameter. This patch corrects the warning message of the previous submission(ddc2fc9). Signed-off-by: Luwei Kang --- target/i386/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 90ffc5f..a0e39d1 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -6375,7 +6375,7 @@ static void x86_cpu_expand_features(X86CPU *cpu, Erro= r **errp) } else if (cpu->env.cpuid_min_level < 0x14) { mark_unavailable_features(cpu, FEAT_7_0_EBX, CPUID_7_0_EBX_INTEL_PT, - "Intel PT need CPUID leaf 0x14, please set by \"-cpu .= ..,+intel-pt,level=3D0x14\""); + "Intel PT need CPUID leaf 0x14, please set by \"-cpu .= ..,+intel-pt,min-level=3D0x14\""); } } =20 --=20 1.8.3.1