From patchwork Wed Dec 8 15:22:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Perret X-Patchwork-Id: 12695375 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 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 67341C433F5 for ; Wed, 8 Dec 2021 15:31:17 +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:Mime-Version: Message-Id:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=ibV3EmGjMVzc4ysOZnluf8yGjFCj5bW1F/DQEV7echg=; b=sE5 JQ/wuoTVpV1U/pYQNI2ATcPOKzgpWzugL9QoE8GcqVRfjk4jxaYzTSitJAys90skfGcIyNifIIXIE ZVIdu6W6JhGMsQ7JZDp8nOMfR9lZCe2qrOI+a+Edq6GPCs+V4KUVblJznRiV3FtwYFEhq2HuA97t/ MtODwUwM6547PTJ/AYvVsYCt2T0nC5rWN6ryJl6JeK/BBt6PWeoawxQudUWZXRJmGwZ+C8TzF/VIE P9g2/5QvK5irJdvgxlXO6JavNAnnn7f6Tj1W96RLGzlkf8OaZDG5qdDzVIFq+0kgJtSxEP0DiTWOF xGfvwWu/pWjEEiKBTVdqDh2RJC0DRnw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1muysp-00DFgx-F0; Wed, 08 Dec 2021 15:29:27 +0000 Received: from mail-wr1-x449.google.com ([2a00:1450:4864:20::449]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1muyme-00DCeO-UY for linux-arm-kernel@lists.infradead.org; Wed, 08 Dec 2021 15:23:06 +0000 Received: by mail-wr1-x449.google.com with SMTP id u4-20020a5d4684000000b0017c8c1de97dso476842wrq.16 for ; Wed, 08 Dec 2021 07:23:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:message-id:mime-version:subject:from:to:cc; bh=NpInubJayz+E5mMCFoPp/JkXWEPD0KY636+dH77jYzY=; b=sWT6qvXqOmH7K7TXoOYGiA18Nh0gUdABfkX0uCHIJnxMTOg1e7wyB7JBMjFKfulgoN j0hlSiM2TirUjxIKZ2sFR26qfAb4TcBGFwIi1EkJFbo7D/AiMhZq1uR4Uzyvs+83bCvz J4uKu5WJyFesIQZuevk7j0nX//st7s0ZsVzTjeXzpQ7XBCw3x02W+TQ/NuutfRLmJKe9 lAlUGHspE6Gof3g6LS239KTXVUKSHq5AhtF0VbLmSaVTU9nyAydFCmE8Ujs9+SkQ/0dT Rm1/flPLSH03muMPVkRTsHLJ/u8sHWXd0uDICLfyrgrmGwsORDrow2R1fwL/eeRBy+Ve d6rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=NpInubJayz+E5mMCFoPp/JkXWEPD0KY636+dH77jYzY=; b=552+F5Wi6SwWhiKmkPlL0f2lqR8lSVXaeJNF5rcTclQSVbHDyqLHbWClf6dV1bfULi Y7vwWb5LPAaFltHI/K9Iu/EpU/tZ/dOuY4LLeSNLSZYyJrG/apJdl3DbUHWHRy6UJZsN sKPjdW0amq1HL946bhm6az59RTLziRdfCZ+O36woiRS3cSmz1DxcWSFn0uNCS//C0PB0 NQex+4aduCyl1XdV7Zde47BreYyWcN4qRsyWU+WSck4KAgAVCfz5/8kENNcS+xItZQeL oJtQ1IXU6w3BEUt2Q+83efjIvuoREbMU3XqA+mKq9pAPvz20Y59Bg6jbCLl1A0K/c8G8 3LDA== X-Gm-Message-State: AOAM530DHLSefq5Zy8c1ttvSHBvcmlQIUf/Dvkhg6x65wWDi1mlBlYJZ MCvuWhNIoQZB2Y9X+PIzhGl7/3D/zITU X-Google-Smtp-Source: ABdhPJw2Q7y7Jx3kkG65Al++LQjZ/5cO1Syp+7Mi+yj+MVYxM7EetMdMtJVWeVSbFWR53AYbWIsx0Mc0l9C0 X-Received: from luke.lon.corp.google.com ([2a00:79e0:d:210:c718:14b8:982a:57d5]) (user=qperret job=sendgmr) by 2002:a05:6000:23a:: with SMTP id l26mr59842390wrz.215.1638976982501; Wed, 08 Dec 2021 07:23:02 -0800 (PST) Date: Wed, 8 Dec 2021 15:22:53 +0000 Message-Id: <20211208152300.2478542-1-qperret@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.34.1.400.ga245620fadb-goog Subject: [PATCH 0/6] KVM: arm64: Miscellaneous pkvm fixes From: Quentin Perret To: Marc Zyngier , James Morse , Alexandru Elisei , Suzuki K Poulose , Catalin Marinas , Will Deacon Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, kernel-team@android.com, qperret@google.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211208_072305_049063_7EC97521 X-CRM114-Status: GOOD ( 11.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi all, This series is a collection of various fixes and cleanups for KVM/arm64 when running in nVHE protected mode. The first two patches are real fixes/improvements, the following two are minor cleanups, and the last two help satisfy my paranoia so they're certainly optional. Cheers! Quentin Quentin Perret (6): KVM: arm64: pkvm: Fix hyp_pool max order KVM: arm64: pkvm: Disable GICv2 support KVM: arm64: Make the hyp memory pool static KVM: arm64: Make __io_map_base static KVM: arm64: pkvm: Stub io map functions KVM: arm64: pkvm: Make kvm_host_owns_hyp_mappings() robust to VHE arch/arm64/kvm/hyp/include/nvhe/mm.h | 2 -- arch/arm64/kvm/hyp/nvhe/mm.c | 3 ++- arch/arm64/kvm/hyp/nvhe/page_alloc.c | 2 +- arch/arm64/kvm/hyp/nvhe/setup.c | 2 +- arch/arm64/kvm/mmu.c | 9 +++++++++ arch/arm64/kvm/vgic/vgic-v2.c | 5 +++++ arch/arm64/kvm/vgic/vgic-v3.c | 2 +- 7 files changed, 19 insertions(+), 6 deletions(-)