Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D06681FC10C for ; Mon, 2 Dec 2024 10:26:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733135172; cv=none; b=o+C9NAjXmZJP7so743CBG/pe7g71kUbBQJgPT5UhoxZfABzevvC0QiN5RNCAleJEASihVwKAg3dBoWcQJSYq+nyV5YWNQiME2Lrpmhe20OBuv1GGNCz+kUPtqugxHgY9+TmF+PBiYa1qiTMx8DmxUjtRs4Lp7ata8NxMg4FSqk4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733135172; c=relaxed/simple; bh=GTRL3tOv9yI/uR8jT7fLuQFXPP2jKrEetAktEreE0S8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VSTrnHjJzdivlIVtKfOilKaorKB1MYzEtv319ucAm2QqeKbFmqlfFEgvUZXjNEIEmlukoYVd7isN4ILeVLKJ0WwMnIxtZvxCLaBJXwdPC+P/RX0ZzM1MucVBbPqcOZzM/IcmuONDL7hKUm+ObhzYKk/hjnNGUPi3Qxrol/DbZFY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=BoyaMxJj; arc=none smtp.client-ip=209.85.128.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="BoyaMxJj" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-4349fd77b33so32426295e9.2 for ; Mon, 02 Dec 2024 02:26:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733135169; x=1733739969; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=l5aWGXl+Mmlx1+Ly+ZtHQ3BQuMifP5arQ43M6MMtklc=; b=BoyaMxJjUGKXtL5HZQXXhjSRxRW8/SnHFagx7+A2Si2jB4t248SHS6/owsKGsd+Fd0 50Qfgvtki7U4w+jyFrya7rvhUUHN+R5E2kROSL9sWtwYYKpmjYkTrn3z6SmJCzcdY3dD wUGV1K1SoZ6pVCNMoUWaxMO0uSyNaHThzWzkCYwt/gk55yAN88L+NxjUTb1BvbSf87a+ stWs5ro35/nrAWd13iLSkzWA+1/kZXzjk85dKD3urdwJuybrvOz6NHQ5ApGeOSxK39Wp 2UI5OF0UeQG5fnNktZwiKlMrIYGTu2UkMomxaAtFLNumSq9PeqWST0pZTn3dKb93TgCq Lzuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733135169; x=1733739969; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=l5aWGXl+Mmlx1+Ly+ZtHQ3BQuMifP5arQ43M6MMtklc=; b=YkGH/DkIU38E71ZJ9aszs1iEMbLdloNcQKnaD3CKdSgbADbjEFNVbQ5F7cYUx4/ldi 0ch6K2qEa8+RWjrIdH4MEGQ7Z4rCIy+vhzY3UgmufNEl9lLUpA6nvPJgZ3gXCwBWvHhM foXtxXlSIUaecGkw7zM/Z19vztD+Tv30H+EWv/HuktJSY65boG6O3wV0PFRbyv/FcvBJ q2pyqbr6wuL5n5bnRBoz/tBuzDbwIIXYg2t2d4gtCyhmSKZqUnXDIrHS5+gQWoR8L6k+ 89AgNNIhaIw6gSY9esdxlLBwL9fiISBPX9Idm6rRflC3NH5aJgn5LWvjF5Fto57o5qU4 xABg== X-Forwarded-Encrypted: i=1; AJvYcCVJaF9doT1dfCCJyUcIrDIN9T8g7HarQEkecnEi2Z+3gG3KuhGq58A5CT9PlJ6qIDOgl8g=@vger.kernel.org X-Gm-Message-State: AOJu0Yza+9APAX7Yd0S8idFjKc1HvXKeTidj+EUUSJ/aeaVl5T9MmGNF F0s3qOTB8+Yd0md69HUupP+hQGeTorSm5V2UrJCWp23i8Go2gICt1quCcXnTPFE= X-Gm-Gg: ASbGncv4bLcGWEwEpRVYrHaoiLRK7WG/xAYGqML83/rkjON0PFqLjmiNeHkA1LdiEU4 WS8G2dlmNUNCnb/b9KOa2jMVa6Fg/Cwjd6sGkTb7YOzjE1jVC1+i/c9p6flHqvcGXRFlurk8hbc 9KAdmfzAL1j4qWh2dbXwhHRzkj69I3uIBh50Uq1T9PMVmUTAIzfffTWoOJVFP+yPw4fOnBdem7h xYrYxgi5QPCQn1TKS6LBZVsoSCYKjKHDQkkmfJQ/oRQnbP+ X-Google-Smtp-Source: AGHT+IG8bGb9k6ogXkDyTn1lVDUam0rrds2nfPCjABZzTJXZMxXF7ulluPar4hnOqOBRYveY9u3LOQ== X-Received: by 2002:a05:600c:1d18:b0:426:8884:2c58 with SMTP id 5b1f17b1804b1-434a9dbbcc7mr211036535e9.4.1733135169207; Mon, 02 Dec 2024 02:26:09 -0800 (PST) Received: from myrica ([2.221.137.100]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-385e4a54b71sm6444957f8f.79.2024.12.02.02.26.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Dec 2024 02:26:08 -0800 (PST) Date: Mon, 2 Dec 2024 10:26:32 +0000 From: Jean-Philippe Brucker To: Steven Price Cc: Itaru Kitayama , 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" Subject: Re: [PATCH v5 00/43] arm64: Support for Arm CCA in KVM Message-ID: <20241202102632.GB1704077@myrica> References: <20241004152804.72508-1-steven.price@arm.com> <01205247-ffcd-439f-b00f-d8e70720d049@arm.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01205247-ffcd-439f-b00f-d8e70720d049@arm.com> On Mon, Dec 02, 2024 at 08:54:11AM +0000, Steven Price wrote: > 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 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). Thanks, Jean > > 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 >