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 641CCC7EE30 for ; Wed, 1 Mar 2023 22:12:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229731AbjCAWMj (ORCPT ); Wed, 1 Mar 2023 17:12:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbjCAWMh (ORCPT ); Wed, 1 Mar 2023 17:12:37 -0500 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CB1F4DBC1; Wed, 1 Mar 2023 14:12:36 -0800 (PST) Received: by mail-pg1-x52e.google.com with SMTP id y19so8669277pgk.5; Wed, 01 Mar 2023 14:12:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=pfazAaB1krD03qoiIwUHuiCesj2DfTyBcU1GYneJYWY=; b=eg3rRwZ9NRqc4NZ7mn+d958skdQTsR4DJymp6pXMjdMC+F8Cv5+HJ4h1h31TbHYrsf xkQidejdXlTtUsLE4NorgMScT8UMYVTDEOrbXNiHh//bvLbt1DdI9scp0WftBOUfaOL9 X3GOlkZy4ukLdzwwqP9uaskWDAJ+K6nyala8LjPvtDQbDW0vF6DJYfBp5vnWdk5UTjtB SYy9aeG2Xa1fiux0memPdeXSo97rZ3zxByZxeAp3fQHQzLEPsxndaS1s3qjMYWKZQVyw cc0fjA/1jbDMsCuxijqVJMRK0tdroOTJmXWbGddzEM5Icc0EoyaRUq6iu+JtTAAY76bv E+IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pfazAaB1krD03qoiIwUHuiCesj2DfTyBcU1GYneJYWY=; b=Xu2no8CRQmr4smKbF1XctW7nC/bxugqxjAWqjk7euC8Z+H9+qRmP5MyJGC1vxdM+nW 8D7qmvzVjd4z/GL7zZ929Opw8gy6pq8/OsTAD1/3vccowjJ93j3X4KGc4RR30vBSx6VI l+/EXV61ZiCMb8s4AN3HZ83CcxDP4efkabOa3GfJU8tsnRhwbAFLJFzQXYR+GAi+YTME riC5V0DfJy5pxc5xZOMBA35D/zhOM5JJU0UeGNSbe8SZs0r5pf8jap+SS7nCK9BIDgdO m1DwStjVMv8OPFFm+CavszUya2JQS4YxXC9Y68EKO/dRWvZSPcIq1fey/obCApdaAghH cykw== X-Gm-Message-State: AO0yUKUyCO/Pbjj9Zx0bW5BiGIfKsAWxbU/b8nb80I7YZoY2zWjd5t9/ yHaAsSK3fc1Uci8zjVkKEK3mW515XQ+LLh2Ggtk= X-Google-Smtp-Source: AK7set/xZsX7wuPd5hcssb22bozalTDdT87153QVXXZsO8821SKx1dgPeG8UYV84t8ORVw6spES6bxVcdlLRGQt0+8c= X-Received: by 2002:a63:7d57:0:b0:4fc:2369:811 with SMTP id m23-20020a637d57000000b004fc23690811mr2685207pgn.6.1677708755473; Wed, 01 Mar 2023 14:12:35 -0800 (PST) MIME-Version: 1.0 References: <20230127112248.136810-1-suzuki.poulose@arm.com> In-Reply-To: From: Itaru Kitayama Date: Thu, 2 Mar 2023 07:12:24 +0900 Message-ID: Subject: Re: [RFC] Support for Arm CCA VMs on Linux To: Jean-Philippe Brucker 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Itaru. > > > I configure it with the aarch64-softmmu target only and built, any > > other steps I should worry? > > No, that should be enough > > Thanks, > Jean