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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 565A7C7EE30 for ; Thu, 2 Mar 2023 09:18:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229927AbjCBJS3 (ORCPT ); Thu, 2 Mar 2023 04:18:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbjCBJSZ (ORCPT ); Thu, 2 Mar 2023 04:18:25 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DE01A279 for ; Thu, 2 Mar 2023 01:18:24 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id m25-20020a7bcb99000000b003e7842b75f2so1070355wmi.3 for ; Thu, 02 Mar 2023 01:18:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677748702; 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=+v85GLUDrQ2zVLBvlWtS8ia1HQWcVPpr7GzHsjdX2Jw=; b=MswMY0eyIVOvB1BGlIsjT7T7ZB+Coenk8J9ktojT2m4Q1VRDdt++rgRUovNUXlnJ8+ 0n9yemw+T01QZcvWjHA+IRLf1JeQT4kgvMDTRAYyxhxbxVWsHDg9iQgAYLNOQNwzA9OF sDZz74KhVDusvK5O1ZzeFkSdIarEHU0F40BXnkkl9lMTBvYQ5MhVKpY3D2OmLJcBkAEy KcO16Kf5TQjdh+qmv8d3ljlMfUjsN/SwOUJhPHytWIHGEv2W78sjXEO3RFhRyQIfEBHP PMv71bBDjxuLO7cV0gbppJac2jsSFYaYorLS8teQTqi/lzN5ml/LLJzfs4CWnvoIVFYD TWyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677748703; 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=+v85GLUDrQ2zVLBvlWtS8ia1HQWcVPpr7GzHsjdX2Jw=; b=bxCvrYUUs6IDdYpIEo2TaSZhtyMGYkWz3CT1SWfT2LnCwBfMKJjetjgfzJcgKYZP8L LvfMrPJGnXQwbrn5Q7k6Lv3rR9b1XxHs4y7PixJlOdQU2AJUwX+sFONoltjOoSv0ANwJ 8DJxCZAkVVvKK4fTgJSI91Ti0A2znbFcCtqHLyZdLjLa+PIpUF0aCFhGeag5mVby2k2F 56g0dqyeigTiCOxR0uw3alUcLAY2YAABKXYHwTgvlZkR6dB5MkgzT59TAOYZ5FYmY277 zWE/ngXk+bAqwa0xvo2qSVu8F1ZwA1OgC1OSF86P6LzMS+wg/1Aky9hSfv509AxAP7Fi dTwg== X-Gm-Message-State: AO0yUKW7VxcB0nUArX1ZMTb5kKYZgh0Vt0LXTTpZlQm2FD/0ZhetzOGB YAyXyG912h9Tj+WEdnddZH/95g== X-Google-Smtp-Source: AK7set+YPw1lyaEwaI48fxgT8GolHPnYxo9XVJyK/m4+bNoNPlN8Bml3v5HR6wybgri48X3tq2AU1w== X-Received: by 2002:a05:600c:3d8e:b0:3ea:bc08:b55e with SMTP id bi14-20020a05600c3d8e00b003eabc08b55emr6973744wmb.25.1677748702713; Thu, 02 Mar 2023 01:18:22 -0800 (PST) Received: from myrica (054592b0.skybroadband.com. [5.69.146.176]) by smtp.gmail.com with ESMTPSA id x14-20020adfec0e000000b002c54536c662sm14745006wrn.34.2023.03.02.01.18.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Mar 2023 01:18:22 -0800 (PST) Date: Thu, 2 Mar 2023 09:18:24 +0000 From: Jean-Philippe Brucker To: Itaru Kitayama Cc: Suzuki K Poulose , linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Alexandru Elisei , Andrew Jones , Catalin Marinas , Chao Peng , Christoffer Dall , Fuad Tabba , James Morse , Joey Gouly , Marc Zyngier , Mark Rutland , Oliver Upton , Paolo Bonzini , Quentin Perret , Sean Christopherson , Steven Price , Thomas Huth , Will Deacon , Zenghui Yu , kvmarm@lists.cs.columbia.edu Subject: Re: [RFC] Support for Arm CCA VMs on Linux Message-ID: References: <20230127112248.136810-1-suzuki.poulose@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 02, 2023 at 07:12:24AM +0900, Itaru Kitayama wrote: > On Wed, Mar 1, 2023 at 6:20 PM Jean-Philippe Brucker > wrote: > > > > Hi Itaru, > > > > On Wed, Mar 01, 2023 at 08:35:05AM +0900, Itaru Kitayama wrote: > > > Hi Jean, > > > I've tried your series in Real on CCA Host, but the KVM arch init > > > emits an Invalid argument error and terminates. > > > > Do you know which call returns this error? Normally the RMEGuest support > > should print more detailed errors. Are you able to launch normal guests > > (without the rme-guest object and confidential-guest-support machine > > parameter)? Could you give the complete QEMU command-line? > > No, I cant say which. Yes, the CCA-capable QEMU boots if I don't set > RME-related options. > > Here's mine (based upon your command-line): > qemu-system-aarch64 -cpu host -accel kvm -machine > virt,gic-version=3,confidential-guest-support=rme0 -smp 2 -m 256M > -nographic -object rme-guest,id=rme0,measurement-algo=sha512 -kernel > Image -initrd rootfs.ext2 -append 'console=ttyAMA0 earlycon' > -overcommit mem-lock=on Thank you, this works on my setup so I'm not sure what's wrong. Check that KVM initialized successfully, with this in the host kernel log: "[ 0.267019] kvm [1]: Using prototype RMM support (version 56.0)" Next step would be to find out where the EINVAL comes from, with printfs or GDB. This seems rather specific so I'll email you directly to avoid filling up everyone's inbox. Thanks, Jean