From patchwork Tue Apr 4 07:29:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kai Huang X-Patchwork-Id: 9660909 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 81F416032D for ; Tue, 4 Apr 2017 07:30:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6BD1728285 for ; Tue, 4 Apr 2017 07:30:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 60C202849D; Tue, 4 Apr 2017 07:30:04 +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=-1.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3048928285 for ; Tue, 4 Apr 2017 07:30:04 +0000 (UTC) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 313FC2193930D; Tue, 4 Apr 2017 00:30:04 -0700 (PDT) X-Original-To: intel-sgx-kernel-dev@lists.01.org Delivered-To: intel-sgx-kernel-dev@lists.01.org Received: from mail-pg0-x243.google.com (mail-pg0-x243.google.com [IPv6:2607:f8b0:400e:c05::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id B369020D77859 for ; Tue, 4 Apr 2017 00:30:03 -0700 (PDT) Received: by mail-pg0-x243.google.com with SMTP id 81so35402616pgh.3 for ; Tue, 04 Apr 2017 00:30:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=9Ao/KjCYMH1DZkIN907TYP7aPwI21zCy3TLX8k34V/U=; b=Q6wiuUshyWXy9ARny/7DTBm3u676HyZSkiLMDMyKIIJc5PZE9NV2R2eAx7DOUCynNJ hwxIHcWwe/lPhi57rfIplMr7coLqe0zw+STBmYkVqkG7RRJVwDI5Mpvv4sv1m2Ibp++H F+C7AYkUMj9+Xhl9XOoWaWJb6mZspq4VtNA6VmoFIr9kegXAXjfSam5CG4wS+4Co0zAd eE4a8j+AmUnTMjn3YiFapbWOlFjzD814Az5GWn3WG99DM7qIifVh91OFANs7avNHKRKP 1EZbXQVCZ0j8Ln+r0tIc0UNwq0dyc4HPLOO7dxqMEVOXQmdU6fwDs4huLj8+ligHZ8VC 2Jtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=9Ao/KjCYMH1DZkIN907TYP7aPwI21zCy3TLX8k34V/U=; b=ju9fhWoruWdAFIra4CoKRbEGD9zWFVnC6QShACSlHZsEHdkyQoQ6r824RaY2O6Ga+G dY4QBW5/9FG3d1v2ZKrhnMFFmnzMSL6VY9axlNqixJedrWmfm4FP1dsSq/7GmqUN13on g/6VHaC1GM4S6KPDr0beY6ts9zMPB273N6eHyE4pog/Xlw5Z/NLMRdLclIMW+KHIEJji 5kiQyyQq//B6elGLS2JxQepj6LfU2ZQVwQxqiJLCEe2lEpEr0GfeU0Xc3+VYuc1bSUKv eBcM+D6JJo/qNV9qpNhHNuLYu3EfnKmbNFo+aTl5ulRgJ1TfXnmj3GopWVJT0yLl8GCa 9eow== X-Gm-Message-State: AFeK/H2bny29/+10AE++vhKy35sUYatHe07UkCN1DDvSNHcrpTsJdm91mPm8IX700Kceog== X-Received: by 10.98.105.134 with SMTP id e128mr21108207pfc.19.1491291003475; Tue, 04 Apr 2017 00:30:03 -0700 (PDT) Received: from localhost.localdomain (118-92-235-112.dsl.dyn.ihug.co.nz. [118.92.235.112]) by smtp.gmail.com with ESMTPSA id y7sm29724831pfk.93.2017.04.04.00.30.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Apr 2017 00:30:03 -0700 (PDT) From: Kai Huang X-Google-Original-From: Kai Huang To: intel-sgx-kernel-dev@lists.01.org, jarkko.sakkinen@linux.intel.com Date: Tue, 4 Apr 2017 19:29:38 +1200 Message-Id: <20170404072938.4800-8-kai.huang@linux.intel.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170404072938.4800-1-kai.huang@linux.intel.com> References: <20170404072938.4800-1-kai.huang@linux.intel.com> Subject: [intel-sgx-kernel-dev] [PATCH 7/7] intel_sgx: add TRIM EPC page type definition. X-BeenThere: intel-sgx-kernel-dev@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Project: Intel® Software Guard Extensions for Linux*: https://01.org/intel-software-guard-extensions" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-sgx-kernel-dev-bounces@lists.01.org Sender: "intel-sgx-kernel-dev" X-Virus-Scanned: ClamAV using ClamSMTP SGX2 adds a new 'TRIM' EPC page type. Signed-off-by: Kai Huang --- arch/x86/include/asm/sgx.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/sgx.h b/arch/x86/include/asm/sgx.h index 4ad580f..c40dc52 100644 --- a/arch/x86/include/asm/sgx.h +++ b/arch/x86/include/asm/sgx.h @@ -71,6 +71,7 @@ enum sgx_page_type { SGX_PAGE_TYPE_TCS = 0x01, SGX_PAGE_TYPE_REG = 0x02, SGX_PAGE_TYPE_VA = 0x03, + SGX_PAGE_TYPE_TRIM = 0x04, }; enum sgx_secinfo_flags {