From mboxrd@z Thu Jan 1 00:00:00 1970 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 A8355D78307 for ; Mon, 2 Dec 2024 10:44:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:To:References:Message-Id: Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version: Content-Type:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=3XDTr/NR5SD4RF/6LFpn9c+Bv/YVG8nMFpd1E2zXJR4=; b=PGjUMZgsaAr8EHO7md8ipXwae8 AtU5ujV1QKhYr0W6oJ1AU7LOn6nOIf/E8wmt73Ob4ckFQRXAyt93cdKvDiMZbaRjNIlthzHcA3C9x ISkrqAJrmyZ8J+u+7t9A8o5FuFMbTZvq2w0UNUoGC3AspqCAuO+Dl0rWAr1pREAK1gNh0+i1WTeVK TO0Vi7ikLD09A7RulS0uDLNAiJ5qCheHZZ4NIZDEjjvIPlmnogQVEhcIEd9SL0mhGfugsrQW4Udyv TCB0ShJaTzvbycJFa2obM/G98FtltlZtAtOjjukRuYGmK87wMqhlud2tEluKx/syouK2jipSWVIJr zQwuUlTw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tI3uO-00000005lHA-3gW5; Mon, 02 Dec 2024 10:44:04 +0000 Received: from out-173.mta0.migadu.com ([91.218.175.173]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tI3tP-00000005l8J-08m6 for linux-arm-kernel@lists.infradead.org; Mon, 02 Dec 2024 10:43:04 +0000 Content-Type: text/plain; charset=utf-8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1733136179; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3XDTr/NR5SD4RF/6LFpn9c+Bv/YVG8nMFpd1E2zXJR4=; b=vhuZPDWqgm76+q6ewLyMPCFh8xtFQfXZpnLlBP0GtCbRbGS5yT0vzIKcSESow+4tTUjouB g08a9i5/NwhtOCRQkg+Av6KW+WHzXN8pNNRJsbcJ+Q0GCe/WY+fj+dLLEkg2Ci3n4L8xgO IUyrOUDIcHYs9nOTbaUGL5ln6UQ2oNQ= Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.200.121\)) Subject: Re: [PATCH v5 00/43] arm64: Support for Arm CCA in KVM X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Itaru Kitayama In-Reply-To: <20241202102632.GB1704077@myrica> Date: Mon, 2 Dec 2024 19:42:35 +0900 Cc: kvm@vger.kernel.org, kvmarm@lists.linux.dev, Catalin Marinas , Marc Zyngier , Will Deacon , James Morse , Oliver Upton , Suzuki K Poulose , Zenghui Yu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Joey Gouly , Alexandru Elisei , Christoffer Dall , Fuad Tabba , linux-coco@lists.linux.dev, Ganapatrao Kulkarni , Gavin Shan , Shanker Donthineni , Alper Gun , "Aneesh Kumar K . V" Content-Transfer-Encoding: quoted-printable Message-Id: <4313C668-D48C-4443-917E-67A112BE1C37@linux.dev> References: <20241004152804.72508-1-steven.price@arm.com> <01205247-ffcd-439f-b00f-d8e70720d049@arm.com> <20241202102632.GB1704077@myrica> To: Jean-Philippe Brucker , Steven Price X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241202_024303_365478_76D9ED54 X-CRM114-Status: GOOD ( 19.35 ) 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 Jean, Steven, > On Dec 2, 2024, at 19:26, Jean-Philippe Brucker = wrote: >=20 > On Mon, Dec 02, 2024 at 08:54:11AM +0000, Steven Price wrote: >> Hi Itaru, >>=20 >> On 02/12/2024 05:10, Itaru Kitayama wrote: >>> On Fri, Oct 04, 2024 at 04:27:21PM +0100, Steven Price wrote: >>>> This series adds support for running protected VMs using KVM under = the >>>> Arm Confidential Compute Architecture (CCA). >> ... >>>=20 >>> On FVP, the v5+v7 kernel is unable to execute virt-manager: >>>=20 >>> Starting install... >>> Allocating 'test9.qcow2' | 0 B = 00:00 ... >>> Removing disk 'test9.qcow2' | 0 B = 00:00 >>> ERROR internal error: process exited while connecting to monitor: = 2024-12-04T18:56:11.646168Z qemu-system-aarch64: -accel kvm: = ioctl(KVM_CREATE_VM) failed: Invalid argument >>> 2024-12-04T18:56:11.646520Z qemu-system-aarch64: -accel kvm: failed = to initialize kvm: Invalid argument >>> Domain installation does not appear to have been successful. >>=20 >> Can you check that the kernel has detected the RMM being available, = you >> should have a message like below when the host kernel is booting: >>=20 >> kvm [1]: RMI ABI version 1.0 >>=20 >> My guess is that you've got mismatched versions of the RMM and TF-A. = The >> interface between those two components isn't stable and there were >> breaking changes fairly recently. And obviously if the RMM hasn't >> initialised successfully then confidential VMs won't be available. >>=20 >>> Below is my virt-manager options: >>>=20 >>> virt-install --machine=3Dvirt --arch=3Daarch64 --name=3Dtest9 = --memory=3D2048 --vcpu=3D1 --nographic --check all=3Doff --features = acpi=3Doff --virt-type kvm --boot = kernel=3DImage-cca,initrd=3Drootfs.cpio,kernel_args=3D'earlycon = console=3DttyAMA0 rdinit=3D/sbin/init rw root=3D/dev/vda acpi=3Doff' = --qemu-commandline=3D'-M = virt,confidential-guest-support=3Drme0,gic-version=3D3 -cpu host -object = rme-guest,id=3Drme0 -nodefaults' --disk size=3D4 --import --osinfo = detect=3Don,require=3Doff >>>=20 >>> Userland is Ubuntu 24.10, the VMM is Linaro's cca/2024-11-20: >>>=20 >>> = https://git.codelinaro.org/linaro/dcap/qemu/-/tree/cca/2024-11-20?ref_type= =3Dheads >=20 > Indeed, QEMU branch 2024-11-20 has to be used with an older version of = the > KVM patch and older RMM. For KVM v5+v7 you need the most recent QEMU > branch, confusingly called cca/v3 (because it's the third patch = series). >=20 > Thanks, > Jean I wasn=E2=80=99t applying with the updated Shrinkwrap=E2=80=99s overlay = file when building TF-RMM. With the correct VMM as you guys mentioned (cca/v3) I was able to start = the installation via the virt-install interacting with the Ubuntu 24.10=E2=80=99s monolitihc = libvirtd. Thanks, Itaru. >=20 >>=20 >> I don't think this is the latest QEMU tree, Jean-Philippe posted an >> update last week: >>=20 >> = https://lore.kernel.org/qemu-devel/20241125195626.856992-2-jean-philippe@l= inaro.org/ >>=20 >> I'm not sure if there were any important updates there, but there are >> detailed instructions that might help. >>=20 >> Regards, >> Steve