Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5095829yba; Wed, 8 May 2019 07:50:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxhR5ylbaZRMt17y8jqSRk5SkN+GXW4njeUdUrF+58LmLeKUPmeC+Bl5sFQ8RlWs1BoAGXY X-Received: by 2002:a62:470e:: with SMTP id u14mr49449603pfa.31.1557327035016; Wed, 08 May 2019 07:50:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557327035; cv=none; d=google.com; s=arc-20160816; b=ynYK2ddwR+fXBGZPTSVlfQTCnhKJ2w1LMYaPWNYz4uaobR56B9aWuth2nEROLSsYkC uH165hHVv3MqndXJ5K2E2pcMdSltOZhiwQ3deiheuAfQRUGjj7GCyTPuV0YPe+GP6xyd V7ykSLnFPB+HWLHJJTmX1ErjyOsfCji2dPxgSL30Bz7dHSFF1Z2vsVLJbFerokOXa49O FXn4JTaqMnv0M8jU2VzbmgVPl/kzNeQ9KRj1OuTOHKfyX5eWC+XsMZYrDMmNB9gA8v8y QB9Gu+NBnadFDSTsFDFJkS+CvJWSzMdCja9lJEUsFMyiO0MKXef7mtKpqjJZ/ZGf/Y7j 6ozg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=BHo/eOy6j5v3nHf6Oc55nLYyTszWbv+NzSETY59La88=; b=AwiN7DNYxl0fWbwdzIBNyBCY/UAKA3/BSXJQcbag1aTbkI6517c3NTFlpHZUyYJaaJ xJnGFgYXynVIk5M4yKhzNMQoix698qFw+d/MDA1bLMIsXiEPoBGeSq4Uc6LsNTEbz/IL CuqYG+Q6xnn+Wcajo54p+Bp6WPJH0L7mCWH/7JdbNPUTqsgimXBfkiKcEA9GacCPD2pm /xV+itUdSrovgbKundGg91s1CmRRHpYA5VYRo7Y+i/ek7qDOu+vEBlZtsy+mkx1+9p0e Zt9VE4Vw/C4ce8pGp2P9R+nWtt2wDC4tqEK0h7c1SO87eTd1oOnd0jAJyPXaByOSU/rZ QtAw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w19si21580758plq.55.2019.05.08.07.50.18; Wed, 08 May 2019 07:50:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728792AbfEHOr5 (ORCPT + 99 others); Wed, 8 May 2019 10:47:57 -0400 Received: from mga05.intel.com ([192.55.52.43]:24016 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728430AbfEHOov (ORCPT ); Wed, 8 May 2019 10:44:51 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 May 2019 07:44:50 -0700 X-ExtLoop1: 1 Received: from black.fi.intel.com ([10.237.72.28]) by orsmga001.jf.intel.com with ESMTP; 08 May 2019 07:44:45 -0700 Received: by black.fi.intel.com (Postfix, from userid 1000) id 311E210A5; Wed, 8 May 2019 17:44:31 +0300 (EEST) From: "Kirill A. Shutemov" To: Andrew Morton , x86@kernel.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Borislav Petkov , Peter Zijlstra , Andy Lutomirski , David Howells Cc: Kees Cook , Dave Hansen , Kai Huang , Jacob Pan , Alison Schofield , linux-mm@kvack.org, kvm@vger.kernel.org, keyrings@vger.kernel.org, linux-kernel@vger.kernel.org, "Kirill A . Shutemov" Subject: [PATCH, RFC 49/62] mm, x86: export several MKTME variables Date: Wed, 8 May 2019 17:44:09 +0300 Message-Id: <20190508144422.13171-50-kirill.shutemov@linux.intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190508144422.13171-1-kirill.shutemov@linux.intel.com> References: <20190508144422.13171-1-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kai Huang KVM needs those variables to get/set memory encryption mask. Signed-off-by: Kai Huang Signed-off-by: Kirill A. Shutemov --- arch/x86/mm/mktme.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/mm/mktme.c b/arch/x86/mm/mktme.c index df70651816a1..12f4266cf7ea 100644 --- a/arch/x86/mm/mktme.c +++ b/arch/x86/mm/mktme.c @@ -7,13 +7,16 @@ /* Mask to extract KeyID from physical address. */ phys_addr_t mktme_keyid_mask; +EXPORT_SYMBOL_GPL(mktme_keyid_mask); /* * Number of KeyIDs available for MKTME. * Excludes KeyID-0 which used by TME. MKTME KeyIDs start from 1. */ int mktme_nr_keyids; +EXPORT_SYMBOL_GPL(mktme_nr_keyids); /* Shift of KeyID within physical address. */ int mktme_keyid_shift; +EXPORT_SYMBOL_GPL(mktme_keyid_shift); DEFINE_STATIC_KEY_FALSE(mktme_enabled_key); EXPORT_SYMBOL_GPL(mktme_enabled_key); -- 2.20.1