From nobody Mon May 6 02:29:22 2024 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@intel.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linux.intel.com ARC-Seal: i=1; a=rsa-sha256; t=1677506256; cv=none; d=zohomail.com; s=zohoarc; b=IgLvz+CrDUxfAtAHfVlnah2jEgz3XlDskePV5GVhiGWFPosGNJimgGN3kG58qhhA42z1XYWwOaBOkDo9JU0lraL/QSr+jLUuVVRZjBkzinsKmuZRa7l2vYPUM/Haj6e1MSCz4ADwRC/zi7G5S1u2NFehfZbd/BgI7UwCZRumGRU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677506256; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=oD+NTlUFlDmxdpMhSRB5XTu2vRhOPdWSma+d5cy65gg=; b=KD4fhaP4M+0yg8foq0mZVz8B/C2Z7ek7wkx89EP7lBJxQeDJr1sw1M0ciInInfkJDOa0qlAIaF6ui9bpgyGExVUWhzyKBNWxrWjhiSBCugJ20+5XVQYTXKfGX975X8s7zgwXF7OPRrfoCBePDfX94b1jrAwT8/xNs0xWuytbMPg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=@intel.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1677506256069983.036647096037; Mon, 27 Feb 2023 05:57:36 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWdvt-00072C-Au; Mon, 27 Feb 2023 08:52:49 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pWdvf-0006ea-PD for qemu-devel@nongnu.org; Mon, 27 Feb 2023 08:52:37 -0500 Received: from mga07.intel.com ([134.134.136.100]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pWdvd-0005kN-EF for qemu-devel@nongnu.org; Mon, 27 Feb 2023 08:52:35 -0500 Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Feb 2023 05:52:24 -0800 Received: from sqa-gate.sh.intel.com (HELO robert-clx2.tsp.org) ([10.239.48.212]) by orsmga008.jf.intel.com with ESMTP; 27 Feb 2023 05:52:22 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677505953; x=1709041953; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=w0So7/21r+uPvS6CR2YXCu/bG0nNU2wE+uVIPn7nsUE=; b=BvaDmSsLS/u/GQAk5Y2feAKrzscUww9dDCNuUyhsqXyu7PLwm69TjVaV ABPuY8Q5NmxYtI2AvMwvXFexzYHErItrW2mqr7V8WYRi++yjnSrokrLHT 0mgl+fXw7fHhqoJspT0uIHXYZWINCxF6y8QOsVqkwrrtkYmioEbGO4yBa 5QAcE6mTeIRFL5XdSgzczUc3R/CUhEIMSB+AjKpwd1iMsKXtrV72Vx1fr dXmVTNVXTdOCwSi2ep8geCogY0ctHCKPnzc5/OWNwj/clWRanZBMpJgWw SJR1taJYbpdbpa5U6IyFWm7Vv5FlFbOzsIRx/hW0nxL7iVZwBZZ8w9QgV Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10634"; a="398633085" X-IronPort-AV: E=Sophos;i="5.98,332,1673942400"; d="scan'208";a="398633085" X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10634"; a="704044414" X-IronPort-AV: E=Sophos;i="5.98,332,1673942400"; d="scan'208";a="704044414" From: Robert Hoo To: pbonzini@redhat.com, chao.gao@intel.com, binbin.wu@linux.intel.com Cc: seanjc@google.com, qemu-devel@nongnu.org, yang.zhong@linux.intel.com, Robert Hoo Subject: [PATCH] i386: QEMU support LAM (Linear Address Masking) Date: Mon, 27 Feb 2023 21:52:03 +0800 Message-Id: <20230227135203.418404-1-robert.hu@linux.intel.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=134.134.136.100; envelope-from=robert.hu@linux.intel.com; helo=mga07.intel.com X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer2=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @intel.com) X-ZM-MESSAGEID: 1677506258079100003 Content-Type: text/plain; charset="utf-8" Define feature word "lam", so that QEMU can support this new feature. LAM is enumerated by CPUID(7,1).EAX[26], it allows to use upper bits of linear address for meta data storage. Analogous to ARM MTE, but more flexible. More info can be found ISE Chap10 https://cdrdv2.intel.com/v1/dl/getContent/671368 Signed-off-by: Robert Hoo --- 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 4d2b8d0444..d6d573ca38 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -876,7 +876,7 @@ FeatureWordInfo feature_word_info[FEATURE_WORDS] =3D { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL, + NULL, NULL, "lam", NULL, NULL, NULL, NULL, NULL, }, .cpuid =3D { --=20 2.31.1