Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 237A8C433EF for ; Mon, 20 Dec 2021 19:59:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233756AbhLTT7u (ORCPT ); Mon, 20 Dec 2021 14:59:50 -0500 Received: from smtp-fw-6001.amazon.com ([52.95.48.154]:51530 "EHLO smtp-fw-6001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233488AbhLTT72 (ORCPT ); Mon, 20 Dec 2021 14:59:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1640030368; x=1671566368; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=jOhjVqFcYvwPQ1CwHgjiiXzwUoexfw663y2/AqkXMd4=; b=IaB+ru2d9Uehdnd1Fg+K9ZoSFzL/dBC32XD9JLjpq/zhQ8Nq5kgMR7hE vl3ArWIsmSzXcX6IJFsPPCtaM0vx4kTSMYd01mjy6aNISzHgnK9XxZGQ9 nhe2ZW82/br9lB/oz0VdwecQ1kecTgxiFYnbCuYmI/4ATI1fZBPuAfKRh w=; X-IronPort-AV: E=Sophos;i="5.88,221,1635206400"; d="scan'208";a="164824533" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-iad-1d-10222bbc.us-east-1.amazon.com) ([10.43.8.6]) by smtp-border-fw-6001.iad6.amazon.com with ESMTP; 20 Dec 2021 19:59:16 +0000 Received: from EX13D16EUB003.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan3.iad.amazon.com [10.40.163.38]) by email-inbound-relay-iad-1d-10222bbc.us-east-1.amazon.com (Postfix) with ESMTPS id B64651A010A; Mon, 20 Dec 2021 19:59:13 +0000 (UTC) Received: from dev-dsk-andraprs-1c-9ffe7195.eu-west-1.amazon.com (10.43.162.159) by EX13D16EUB003.ant.amazon.com (10.43.166.99) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Mon, 20 Dec 2021 19:59:08 +0000 From: Andra Paraschiv To: linux-kernel CC: Alexandru Ciobotaru , Greg KH , Alexandru Vasile , "Marcelo Cerri" , Paolo Bonzini , Stefano Garzarella , Stefan Hajnoczi , Tim Gardner , "Vitaly Kuznetsov" , kvm , ne-devel-upstream , stable , "Andra Paraschiv" Subject: =?UTF-8?q?=5BPATCH=20v2=C2=A0=5D=20nitro=5Fenclaves=3A=20Use=20get=5Fuser=5Fpages=5Funlocked=28=29=20call=20to=20handle=20mmap=20assert?= Date: Mon, 20 Dec 2021 19:58:56 +0000 Message-ID: <20211220195856.6549-1-andraprs@amazon.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Originating-IP: [10.43.162.159] X-ClientProxiedBy: EX13D40UWC002.ant.amazon.com (10.43.162.191) To EX13D16EUB003.ant.amazon.com (10.43.166.99) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org QWZ0ZXIgY29tbWl0IDViNzhlZDI0ZThlYyAoIm1tL3BhZ2VtYXA6IGFkZCBtbWFwX2Fzc2VydF9s b2NrZWQoKQphbm5vdGF0aW9ucyB0byBmaW5kX3ZtYSooKSIpLCB0aGUgY2FsbCB0byBnZXRfdXNl cl9wYWdlcygpIHdpbGwgdHJpZ2dlcgp0aGUgbW1hcCBhc3NlcnQuCgpzdGF0aWMgaW5saW5lIHZv aWQgbW1hcF9hc3NlcnRfbG9ja2VkKHN0cnVjdCBtbV9zdHJ1Y3QgKm1tKQp7Cglsb2NrZGVwX2Fz c2VydF9oZWxkKCZtbS0+bW1hcF9sb2NrKTsKCVZNX0JVR19PTl9NTSghcndzZW1faXNfbG9ja2Vk KCZtbS0+bW1hcF9sb2NrKSwgbW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