From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F359B2C11FA for ; Tue, 7 Jul 2026 08:02:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783411337; cv=none; b=qtrEPG+2eJ1zUB6qa/utZIlg3j8Wl1NgynfmU4eZDeAnfal8X1Uoh4ghT1D5emX2leSBN28ne2KHBmq6zV0Sq8u+o37W4jBHpjuyyxQOw/I8g2jS1uJhJoWM/chu2GzE8ksliIeuNMH2uxUIHSYkBYi86sfujt8a/IocUoXdq68= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783411337; c=relaxed/simple; bh=VD3HnzdqSGGVCdmfrmO81MWJA4OQKCcVtKiG+XKYeTk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=kbvWFlnpabW1EEVtjA7Ol1Hggi79cBlGA74n/rShoQX++zBwrC4GtjDHcDMxoPHoC9cQLO4yyP9jxld45nk3vQ+aO8dLLeG68y1UmQqEQ2dMM+WUDmMho9qsEYIdyNQBqgzHazd3tYlKhofCeVfR+mDA7r13PtmKJ2hQaUoxZ9A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nQjJNRhl; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nQjJNRhl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AEA861F00ACA; Tue, 7 Jul 2026 08:02:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783411335; bh=kTSJ4xsyzoONcIdLlgIGjWbwlYSnLT61TvHaP7mdIgw=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=nQjJNRhl+r/W/u9qXzDqVMPh4zwmtWaBltEzFh15EEIllFyM0jg+AX/7SWbOFs2t8 qM16nLQWUV26X8wkpnzQ5K5yadCQ6UxGc8gjFSOzOpW8n80Daw0UKxWvVSN+8qv4gT bQZXZGXKISj+LgU61s+owZflJXNViLDl7MCWLSVYnGSDC82R4+UlRSF9Jr8CbAkDzc nUu22CLjPUey9/QNdSw1uTrcC6DhefR0Zwo39g8GmeamTO+PjBpkajv212figU/igP Chb+GpJshN1pNs7mtgJa22VY0lCi8+m2sSJdhAKkVul30/KrT33tmF5BovLMaRLw/P V843Xc8O7txXw== X-Mailer: emacs 30.2 (via feedmail 11-beta-1 I) From: Aneesh Kumar K.V To: Mostafa Saleh , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: akpm@linux-foundation.org, catalin.marinas@arm.com, will@kernel.org, rppt@kernel.org, maz@kernel.org, Mostafa Saleh Subject: Re: [PATCH 0/3] arm64/coco: Convert pKVM to a CC platform In-Reply-To: <20260603110522.3331819-1-smostafa@google.com> References: <20260603110522.3331819-1-smostafa@google.com> Date: Tue, 07 Jul 2026 13:32:09 +0530 Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Mostafa Saleh writes: > The goal of series is to convert pKVM as a CC platform similar to > ARM CCA, that makes CC guests consistently discovered which avoid > breaking it by the ongoing DMA rework [1] > > The first patch is a minor clean up I noticed while reading the code. > > And the second patch is a bug fix found by Sashiko. > > The third patch is the main one. > > [1]https://lore.kernel.org/all/20260522042815.370873-1-aneesh.kumar@kernel.org/ > > Mostafa Saleh (3): > arm64/mm: Simplify SWIOTLB setup in arch_mm_preinit() > drivers/virt: pkvm: Fix end calculation in mmio_guard_ioremap_hook() > arm64/coco: Add pKVM as a CC platform > > arch/arm64/include/asm/hypervisor.h | 13 ++++++++++ > arch/arm64/include/asm/mem_encrypt.h | 3 ++- > arch/arm64/kernel/rsi.c | 12 --------- > arch/arm64/mm/init.c | 26 +++++++++++++------ > drivers/virt/coco/pkvm-guest/arm-pkvm-guest.c | 5 +++- > 5 files changed, 37 insertions(+), 22 deletions(-) > > -- > 2.54.0.1032.g2f8565e1d1-goog A rebased dma-rework tree on top of the pKVM changes can be found at: https://gitlab.arm.com/linux-arm/linux-cca/-/tree/scratch/pkvm/testing?ref_type=heads I was able to successfully boot a protected VM using the latest version of kvmtool. Tested-by: Aneesh Kumar K.V (Arm) -aneesh