From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) (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 86979A4C; Wed, 1 Mar 2023 22:12:36 +0000 (UTC) Received: by mail-pg1-f177.google.com with SMTP id d6so8673126pgu.2; 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=Oe0/F4yw/YlCue7tdCumn3rjM6VDQYcBUe0MqMFhZYxB3eRMuQVTZ+rvM8MiqMn+SN bblcExDVMnx/PI/k5CSszbgB97RBPOX09r8p5vBMHCXAAoUrTj7Dr6XvVK4rk07sKQJ9 oh4nu21QxO+AedKhCgI4l2pVE0J4EbFO/+1MBGbkecEULsYIhoqP1sWNlnFJGM2ouMmK 2f2MTw+Rnsle+RFcZ53MZnEIBqVfjtv+Gj1Lqw4Sh2Da7Z8KWpUfH9+g+/uKpYCBKZj+ 5kRoFSuMB2wmaUDwNO9tSzUblJIXEt+HQSZeibaGLKwBdVezL+OCHBsTen2oUxBOLUle TF7Q== X-Gm-Message-State: AO0yUKWsB9VaXXD7QrAwB+l6amrTI+cjdOa9QQf6becMkwgiVx8H28u7 3bPU9mgljrLcUtkF4xufOgRENVxkIyaJbuxklUz+LmgVQ/zN/IZM 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) Precedence: bulk X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: 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" 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 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 DCF89C678D4 for ; Wed, 1 Mar 2023 22:14:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=T8uIDuIk4dGG1hyzh5avmtbjYZ6ylkBNLASzrffwXzY=; b=Ep/SalI7Us+7C+ vmMbGe6xCfCOP/uGSeAX4NOy6RbvBpMff3nUOXMHYGHB73Pih1tf4Ig5+kMPNHLBPHfv8Jojdc6Hv 7Pq9hEYNRrXiE99rJpyPYv19wklAXAnrMX76TCNjEbcLbQIAIY0Kjg7XwJihhbHIiIn3vHxUGvYff /vMD1KX8KEjp431rNqNW7vlYegcmC9V8DpkIQ6l1lfYlBQMkMK8J4TOjhe/POtLltyKUam+eKwHBZ zMvz38WyanrbSGwgx9z8eT3yac+EQ3WnRWWIApu5/IPuWYTM9TSPfp+cXboimS/j+hh6Ui/TEn/rw 9Fd/KAa8sTC3jEts3Zbw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pXUgn-0009kh-D5; Wed, 01 Mar 2023 22:12:45 +0000 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pXUgj-0009jf-2t for linux-arm-kernel@lists.infradead.org; Wed, 01 Mar 2023 22:12:42 +0000 Received: by mail-pg1-x531.google.com with SMTP id 16so8642386pge.11 for ; 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=XNXphG+C3u45C8cnGh8cR3M5pfl2+tWQ5yA1z7JIt9NlvKvUUuojpCgQR/po+KE1eF APDtzYdHIqykUW2g7zx0GyM475CMGtDu+pI29DsatDW/bMGbtRmsz2QerlCASYwmljtY Ude4DoU4qVpVdaPP6ooPLz5vJC7f+eUen39G6xwor0njP0Z9gMhg4TzwsSFicsc6ArRQ IjcBKMriax7I/4lmiBcer8VCGhWTNgbIsA7fwyNiDjVc8kdPzF/dehcd6XU99S74g8jg kpDbxIIPIBKpS2eeNW8OTLAI3ADBpgsNmJuMC6qFv0CXn4UxeAPoLmjxesTm/Pj6qZ7d Ajcg== X-Gm-Message-State: AO0yUKVcclJ1KXydegxV7HG0/MLY6TgTOyCI2xjWi26GX+UT4GciESO+ 0KAqFm8chfjJR9WQdnZIbW1Mo6MegGI4mEnCNQQ= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230301_141241_171188_D5DB8D4E X-CRM114-Status: GOOD ( 15.41 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel