Message ID | 20211215161232.1480836-5-qperret@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B4B49C433F5 for <linux-arm-kernel@archiver.kernel.org>; Wed, 15 Dec 2021 16:26:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:References: Mime-Version:Message-Id:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=z59CpjRQNHMZuc8qiigUKmD17J5q2XwZr+0QpoehIZk=; b=NSUNCopuNo+v2X6x4dVzjxCKRU sQBeAbGcF/vaW+M7OE6Qjftm4SMi5GMo9HiByj+oUJPEm3xB/7OMcMcySVHo4aOEuQKTobRxD81J5 BD6Fhn+O+g//pBB47H9NAR75JvzGCuinEyVPSRb67qKcBSwlXQj0cvu+Jxh+8L3Cl6jNL+Dukh9hd MSw5GkHUstZ3rAV8Y2ffBVeV3AmrVnoqXEOok4/XaNt7sVD6RkPmdl18eFJ2HpfjBeh3N8uNQSu53 NUm5m8CS2Yo0olGStiwNWdOoOWJ84SzoxMIRr83LwFbPvwXuAe2iupozzgqyLzwR0qRe5GoAqlDzT EbipIeVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxX5a-001h83-VZ; Wed, 15 Dec 2021 16:25:12 +0000 Received: from mail-wm1-x349.google.com ([2a00:1450:4864:20::349]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxWtj-001c2v-Fv for linux-arm-kernel@lists.infradead.org; Wed, 15 Dec 2021 16:12:57 +0000 Received: by mail-wm1-x349.google.com with SMTP id n16-20020a05600c3b9000b003331973fdbbso9226725wms.0 for <linux-arm-kernel@lists.infradead.org>; Wed, 15 Dec 2021 08:12:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=MMV17RJGBqBIJSSqtbn1eP7i2KWhmG0Xg4IIILFGbk4=; b=TsX1J3w5V1i1HiSUsll+2W48tuChkMnwn+NtSsjIf5wMQ/88zmPZGculZ89WOyPr3y j7pfWDg3rD3EXldiIIgv8sTtXjmPWmn51rcw1Ws2CkNWVjJXW5VokmWSB1gwCxhyuMKM SUISMwNLFpghQZ4k/mzBK3Bq4d4t3/yH52+nPjJQ7j4y7zkpM0AnUwaMaAceawUvM6GI JOi+15VpsBSiAkh94aO7LxLWQaPi2fx8ajh9TuBtNOxv5QBBiWiQdfzxPYloLQh6qbQQ DRaNQ4HCuH9Ny/kX7+8XHgzmsXoKhF3r3Loka1NP2RKyZk8zSa4QplVyKQPCLZ64AhNE emhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=MMV17RJGBqBIJSSqtbn1eP7i2KWhmG0Xg4IIILFGbk4=; b=JwcUlmkhS+JUYZsHZqrzvET7wP7i8XF1klD0HEjNNyNrzNoK0PCe9RFayogD2EJ5fw LtTvsE4lrxSpj76uMtSkQWb9itFowCB1hBBPyiHc4KvQJc1s2g2BpX8T4NbaP8Fa0pTz TKpRiRAIpEpdhFlO0id3W5taoMQnjlmAoX16LLkpK3hM8fnwRoP+UyRW62gKFgS+CqWw SWdyuex3oTgLK8pSZsTVGxhan91RC/ReHL9b163OY6vAXTwPvXeBUfpF9ixRpJFvBSJX PqfiNgLEXIkHRk5rxqTk1d2PWODN10mGU+Dt1QIPz/WLpxYLlWLlXIZLOCPh3PPzLCBb phAw== X-Gm-Message-State: AOAM533+kf3mILHUAmZdxVXOV2wt380PpBB9K63kWMN4hUaNBL8qjbOC hoMylBpFZDjffokocpVlodxA/7J2vMei X-Google-Smtp-Source: ABdhPJyfCs0Hha3nCPUt4YLDazw5cpbIxT+GVyubvLUpddKOfvogqT7sUw4CAzf8KJFy2IBZwJrNH4Y6lhHT X-Received: from luke.lon.corp.google.com ([2a00:79e0:d:210:fc03:4f5b:4e9b:3ec1]) (user=qperret job=sendgmr) by 2002:a5d:650f:: with SMTP id x15mr5133650wru.201.1639584772363; Wed, 15 Dec 2021 08:12:52 -0800 (PST) Date: Wed, 15 Dec 2021 16:12:21 +0000 In-Reply-To: <20211215161232.1480836-1-qperret@google.com> Message-Id: <20211215161232.1480836-5-qperret@google.com> Mime-Version: 1.0 References: <20211215161232.1480836-1-qperret@google.com> X-Mailer: git-send-email 2.34.1.173.g76aa8bc2d0-goog Subject: [PATCH v4 04/14] KVM: arm64: Hook up ->page_count() for hypervisor stage-1 page-table From: Quentin Perret <qperret@google.com> To: Marc Zyngier <maz@kernel.org>, James Morse <james.morse@arm.com>, Alexandru Elisei <alexandru.elisei@arm.com>, Suzuki K Poulose <suzuki.poulose@arm.com>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org> Cc: qperret@google.com, qwandor@google.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, kernel-team@android.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211215_081255_587443_E9592A7E X-CRM114-Status: UNSURE ( 9.05 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
KVM: arm64: Introduce kvm_{un}share_hyp()
|
expand
|
diff --git a/arch/arm64/kvm/hyp/nvhe/setup.c b/arch/arm64/kvm/hyp/nvhe/setup.c index ab44e004e6d3..27af337f9fea 100644 --- a/arch/arm64/kvm/hyp/nvhe/setup.c +++ b/arch/arm64/kvm/hyp/nvhe/setup.c @@ -258,6 +258,7 @@ void __noreturn __pkvm_init_finalise(void) .virt_to_phys = hyp_virt_to_phys, .get_page = hpool_get_page, .put_page = hpool_put_page, + .page_count = hyp_page_count, }; pkvm_pgtable.mm_ops = &pkvm_pgtable_mm_ops;