From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 228AD538C; Fri, 3 Mar 2023 11:39:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B587C433D2; Fri, 3 Mar 2023 11:39:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677843550; bh=kU/Ch3/h5WcXNFnEIJI+X3pPxVuYNKbYP9iG0kOs07M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MHkKMOpSsP/RYBqZ9Fn4cYK/Fwxrm1sEttxqN+9L35DKC0l44kt49MFCy92c+JGNI YbtDqlsq+YY4UyglC7hPlYfBMnPTfBQOTbAKSO+Vq7KgvUM4ZkrGDiFAi7OLEnyT8H Tutc+D7uCjbiDzpzrKEm2ZcVuzTRzXLUa/WYAma+jJ23YdgTPbFi56C5VnyEt5PT7d ZPgcD/IfThxtcNMEwAUM/NKjy4Vxh0cxoPtya0TGeCp+dtl/S3J6RNzTonW4VYhm3A UdSuakGNZ8RfETRkwiWzz2s7+VQQ8gNU/T2Od7TSwkOlvWYbl8QUNd7bcm/K9mAK// 2HotVVtQW0q1g== Date: Fri, 3 Mar 2023 11:39:05 +0000 From: Jean-Philippe Brucker To: Suzuki K Poulose Cc: Jean-Philippe Brucker , Itaru Kitayama , 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: <20230303113905.GD361458@myrica> References: <20230127112248.136810-1-suzuki.poulose@arm.com> <20230303094618.GC361458@myrica> <1c91b777-982e-e71a-4829-51744e9555c5@arm.com> Precedence: bulk X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1c91b777-982e-e71a-4829-51744e9555c5@arm.com> On Fri, Mar 03, 2023 at 09:54:47AM +0000, Suzuki K Poulose wrote: > On 03/03/2023 09:46, Jean-Philippe Brucker wrote: > > On Thu, Mar 02, 2023 at 07:12:24AM +0900, Itaru Kitayama wrote: > > > > > I've tried your series in Real on CCA Host, but the KVM arch init > > > > > emits an Invalid argument error and terminates. > > > > This was the KVM_SET_ONE_REG for the SVE vector size. During my tests I > > didn't enable SVE in the host but shrinkwrap enables more options. > > Does the Qemu check for SVE capability on /dev/kvm ? For kvmtool, we > changed to using the VM instance and that would prevent using SVE, > until the RMM supports it. Yes, QEMU does check the SVE cap on /dev/kvm. I can propose changing it or complementing it with a VM check in my next version, it seems to work (though I need to double-check the VM fd lifetime). Same goes for KVM_CAP_STEAL_TIME, which I need to disable explicitly at the moment. Thanks, Jean > > Suzuki > > > > > Until we figure out support for SVE, disable it on the QEMU command-line > > (similarly to '--disable-sve' needed for kvmtool boot): > > > > -cpu host,sve=off > > > > 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 8BC78C678D4 for ; Fri, 3 Mar 2023 11:40:10 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5tGa5/mZxdMQyeC3gKBISZ9/ZpOID6vjzJjkCIY/k3M=; b=EI5THy5V5n1ZcR i/aXTG+iYkMv5wVb22xuRxF3e1/B8mgvfJHUkkKSKVWfYeN6eRAtI9fE2/y9iv21Ma++2NVDVr8gH DhLd+fiobn6olqbudVZA6wXA5GDa+vXCwCLjUSJLD1UzfcyUin41m+DI2IembJOJ1JyD1oNsW/EwK CHPu/uZjoHTZxNH5Bo8l5NrLSlqtyDCmpt178BCtG731f4Yk2wL5u4D1UVx/3XCgPJMNn1/008zA8 01ICB13HHq/X4cU2Urg9SWUNB9NbXaoMlfRyCARwy8xihis8D1RfqvOvNOTIU3tg/r2UfYpVS+a9R 9kAgZU3WXkrx8+G9T85w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pY3kr-006CE1-EV; Fri, 03 Mar 2023 11:39:17 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pY3ko-006CCV-Er for linux-arm-kernel@lists.infradead.org; Fri, 03 Mar 2023 11:39:15 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 06F56B818A1; Fri, 3 Mar 2023 11:39:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B587C433D2; Fri, 3 Mar 2023 11:39:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677843550; bh=kU/Ch3/h5WcXNFnEIJI+X3pPxVuYNKbYP9iG0kOs07M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MHkKMOpSsP/RYBqZ9Fn4cYK/Fwxrm1sEttxqN+9L35DKC0l44kt49MFCy92c+JGNI YbtDqlsq+YY4UyglC7hPlYfBMnPTfBQOTbAKSO+Vq7KgvUM4ZkrGDiFAi7OLEnyT8H Tutc+D7uCjbiDzpzrKEm2ZcVuzTRzXLUa/WYAma+jJ23YdgTPbFi56C5VnyEt5PT7d ZPgcD/IfThxtcNMEwAUM/NKjy4Vxh0cxoPtya0TGeCp+dtl/S3J6RNzTonW4VYhm3A UdSuakGNZ8RfETRkwiWzz2s7+VQQ8gNU/T2Od7TSwkOlvWYbl8QUNd7bcm/K9mAK// 2HotVVtQW0q1g== Date: Fri, 3 Mar 2023 11:39:05 +0000 From: Jean-Philippe Brucker To: Suzuki K Poulose Cc: Jean-Philippe Brucker , Itaru Kitayama , 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: <20230303113905.GD361458@myrica> References: <20230127112248.136810-1-suzuki.poulose@arm.com> <20230303094618.GC361458@myrica> <1c91b777-982e-e71a-4829-51744e9555c5@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1c91b777-982e-e71a-4829-51744e9555c5@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230303_033914_692231_D2C78257 X-CRM114-Status: GOOD ( 19.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 Fri, Mar 03, 2023 at 09:54:47AM +0000, Suzuki K Poulose wrote: > On 03/03/2023 09:46, Jean-Philippe Brucker wrote: > > On Thu, Mar 02, 2023 at 07:12:24AM +0900, Itaru Kitayama wrote: > > > > > I've tried your series in Real on CCA Host, but the KVM arch init > > > > > emits an Invalid argument error and terminates. > > > > This was the KVM_SET_ONE_REG for the SVE vector size. During my tests I > > didn't enable SVE in the host but shrinkwrap enables more options. > > Does the Qemu check for SVE capability on /dev/kvm ? For kvmtool, we > changed to using the VM instance and that would prevent using SVE, > until the RMM supports it. Yes, QEMU does check the SVE cap on /dev/kvm. I can propose changing it or complementing it with a VM check in my next version, it seems to work (though I need to double-check the VM fd lifetime). Same goes for KVM_CAP_STEAL_TIME, which I need to disable explicitly at the moment. Thanks, Jean > > Suzuki > > > > > Until we figure out support for SVE, disable it on the QEMU command-line > > (similarly to '--disable-sve' needed for kvmtool boot): > > > > -cpu host,sve=off > > > > Thanks, > > Jean > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel