From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC3251F9AB9; Mon, 2 Dec 2024 08:54:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733129661; cv=none; b=jV6j3NfDI3miQj+Zcart0ioaRdoXH3GJ7EUvfpFOEeSbSmdLwBVhFqjm9WI/CtBPW7GyrnkrRw/qAPft7e5zRxn2DpV8PZQfU9uq6hOgRtTKljYAaqL+gTUQePrjpN7ICkIsMlcYPkn8qSu1poKS/snSVRpEAk2qaD8ubgGsDpc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733129661; c=relaxed/simple; bh=R6Fv08YSF9tjEaXOB/g1hNUtf8CGUiQoNMyz9uhE03s=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=UE/Q/MQmGOUfWV43U3wyIeHwWmV/ho+6s2KhYyHUwvlPbAVNfDLcAhUc5glvjH2lz6MYolV//8tkZMk4Sjj+2JodqdjWyhp/VM51sjewuKKHV9Yy9EUwoiIqPPVMww4d4rw7nRl67VZP+ltLaePHwoF3aM4nlAJS8VCxjoDcnwg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 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 ABE041063; Mon, 2 Dec 2024 00:54:46 -0800 (PST) Received: from [10.57.90.186] (unknown [10.57.90.186]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6A3BA3F71E; Mon, 2 Dec 2024 00:54:13 -0800 (PST) Message-ID: <01205247-ffcd-439f-b00f-d8e70720d049@arm.com> Date: Mon, 2 Dec 2024 08:54:11 +0000 Precedence: bulk X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 00/43] arm64: Support for Arm CCA in KVM To: Itaru Kitayama 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" , Jean-Philippe Brucker References: <20241004152804.72508-1-steven.price@arm.com> From: Steven Price Content-Language: en-GB In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Itaru, 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). ... > > On FVP, the v5+v7 kernel is unable to execute virt-manager: > > 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. 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: kvm [1]: RMI ABI version 1.0 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. > Below is my virt-manager options: > > virt-install --machine=virt --arch=aarch64 --name=test9 --memory=2048 --vcpu=1 --nographic --check all=off --features acpi=off --virt-type kvm --boot kernel=Image-cca,initrd=rootfs.cpio,kernel_args='earlycon console=ttyAMA0 rdinit=/sbin/init rw root=/dev/vda acpi=off' --qemu-commandline='-M virt,confidential-guest-support=rme0,gic-version=3 -cpu host -object rme-guest,id=rme0 -nodefaults' --disk size=4 --import --osinfo detect=on,require=off > > Userland is Ubuntu 24.10, the VMM is Linaro's cca/2024-11-20: > > https://git.codelinaro.org/linaro/dcap/qemu/-/tree/cca/2024-11-20?ref_type=heads I don't think this is the latest QEMU tree, Jean-Philippe posted an update last week: https://lore.kernel.org/qemu-devel/20241125195626.856992-2-jean-philippe@linaro.org/ I'm not sure if there were any important updates there, but there are detailed instructions that might help. Regards, Steve