Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp991515rdd; Wed, 10 Jan 2024 05:45:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IGhCoWv/kKrB/SdYtyUgY9HNmxT3T5uCGZzKkN1Z2V8I6pybFkDQBHMb1XRFsUvuFVJ7R7R X-Received: by 2002:a17:907:d9e:b0:a27:9fa9:4d9d with SMTP id go30-20020a1709070d9e00b00a279fa94d9dmr826210ejc.104.1704894306860; Wed, 10 Jan 2024 05:45:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704894306; cv=none; d=google.com; s=arc-20160816; b=rQtrMyUm74C+s1tPMcZwhgsc6fNR93WefKdehKN9N5hAh+//7tKdtXNLQCZJ6n1rPo 8YNtS1xeOyhneBTiSCMeuOdoFP0olKG9L84VWJdiO189vRXO1s2nMFI8xooEhIdn2Gob 65etHhf8uV2XsIA7WoypzewiRwJQ/StEz4gqGhL34Y8bJ3t09Phm67zjc/HscT4NMTac dkKofIIXPYSlg3ZC+4GtbI4vbS7vaqJS4V9iUtk8S4MmiOQ0k/P2LXFTOD1XAtZnnj+a TSLcjpq4RC8f3mcAzUAqYqRSbXiAWBSyCo8mKHZIcWgN11c1/KRyiVnZCW8u32KopOgc N9aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=+MC93T1zdaMkdi6s/dexofMNTEs87QJ5GP+X2xf5BiI=; fh=0PS9KxATYW6A6625O6kn8f+PwKsNPXXRilUmPbk6dSA=; b=zm/Q6QvJX502DRLPPO8lN1zJFHILwEfIatX5e4hD5XGWu7uydKmkXZbu3GaE/J0zT8 TJr0vRjxmJkyfbUaZLM2iRlYk5REyoIh2IP7/p44ukuCS+V6ykEv6YLDn092bSzvVMKN Xf2jwXTlLo6ADV3HJmgXV3qnZKct2a/Ai62XMjorq9e6mGTsKiP0mao/R2kOQF/BtJxc 4KCGRz1eed/mro0t3yyw6dWbwWttxaGoRWFtnll+7guLYbJb8y96wvXaZtlORP3NgIg1 6YMfb44PwERImAlqLWidu48gQZnNhkuHz6a8g0eJYzFddBcbXG08dWFFSmPKqb7i5fc0 DODw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-22263-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22263-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z18-20020a1709060ad200b00a2bfaf22c43si287746ejf.869.2024.01.10.05.45.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 05:45:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22263-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-22263-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22263-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 60EDB1F24748 for ; Wed, 10 Jan 2024 13:45:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D6C7448CEE; Wed, 10 Jan 2024 13:44:54 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1DADD48CC1; Wed, 10 Jan 2024 13:44:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 083E62F4; Wed, 10 Jan 2024 05:45:37 -0800 (PST) Received: from [10.57.46.83] (unknown [10.57.46.83]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 438EE3F64C; Wed, 10 Jan 2024 05:44:47 -0800 (PST) Message-ID: Date: Wed, 10 Jan 2024 13:44:45 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC] Support for Arm CCA VMs on Linux Content-Language: en-GB From: Suzuki K Poulose To: Itaru Kitayama Cc: linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, kvmarm@lists.linux.dev, catalin.marinas@arm.com, will@kernel.org, maz@kernel.org, steven.price@arm.com, alexandru.elisei@arm.com, joey.gouly@arm.com, james.morse@arm.com, Jonathan.Cameron@huawei.com, dgilbert@redhat.com, jpb@kernel.org, oliver.upton@linux.dev, zhi.wang.linux@gmail.com, yuzenghui@huawei.com, salil.mehta@huawei.com, Andrew Jones , Chao Peng , Christoffer Dall , Fuad Tabba , Jean-Philippe Brucker , Mark Rutland , Paolo Bonzini , Quentin Perret , Sean Christopherson , Thomas Huth , Ryan Roberts , Sami Mujawar References: <20230127112248.136810-1-suzuki.poulose@arm.com> <20231002124311.204614-1-suzuki.poulose@arm.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 10/01/2024 11:41, Suzuki K Poulose wrote: > Hi Itaru, > > On 10/01/2024 05:40, Itaru Kitayama wrote: >> On Mon, Oct 02, 2023 at 01:43:11PM +0100, Suzuki K Poulose wrote: >>> Hi, >>> >>> .. >> >> Suzuki, >> Any update to the Arm CCA series (v3?) since last October? > > Yes, we now have a version that supports the final RMM-v1.0 > specification (RMM-v1.0-EAC5). We also have the UEFI EDK2 firmware > support for Guests in Realm world. > > We are planning to post the changes for review in the v6.8-rc cycle. We > are trying to integrate the guest_mem support (available in v6.8-rc1) as > well as reusing some of the arm64 kvm generic interface for configuring > the Realm parameters (e.g., PMU, SVE_VL etc). > > Here is a version that is missing the items mentioned above, based > on v6.7-rc4, if anyone would like to try. > > Also, the easiest way to get the components built and model kick started > is using the shrinkwrap [6] tool, using the cca-3world configuration. > The tool pulls all the required software components, builds (including > the buildroot for rootfs) and can run a model using these built > components. Also, please see 'arm/run-realm-tests.sh' in the kvm-unit-tests-cca repository for sample command lines to invoke kvmtool to create Realm VMs. > > > > [0] Linux Repo: >       Where: git@git.gitlab.arm.com:linux-arm/linux-cca.git >       KVM Support branch: cca-host/rmm-v1.0-eac5 >       Linux Guest branch: cca-guest/rmm-v1.0-eac5 >       Full stack branch:  cca-full/rmm-v1.0-eac5 > > [1] kvmtool Repo: >       Where: git@git.gitlab.arm.com:linux-arm/kvmtool-cca.git >       Branch: cca/rmm-v1.0-eac5 > > [2] kvm-unit-tests Repo: >       Where: git@git.gitlab.arm.com:linux-arm/kvm-unit-tests-cca.git >       Branch: cca/rmm-v1.0-eac5 > > [3] UEFI Guest firmware: >       edk2:     https://git.gitlab.arm.com/linux-arm/edk2-cca.git >       revision: 2802_arm_cca_rmm-v1.0-eac5 > >       edk2-platforms: > https://git.gitlab.arm.com/linux-arm/edk2-platforms-cca.git >       revision:       2802_arm_cca_rmm-v1.0-eac5 > > > [4] RMM Repo: >       Where: https://git.trustedfirmware.org/TF-RMM/tf-rmm.git >       tag : tf-rmm-v0.4.0 > > [5] TF-A repo: >       Where: https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git >       Tag: v2.10 > > > [6] https://shrinkwrap.docs.arm.com/en/latest/ >     config: cca-3world.yaml > Suzuki