Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp606887rdb; Mon, 15 Jan 2024 07:41:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IFhCB1gNDMC8DJiZMoMz0+UAM2DOgL4SbqC6D5YvcpGFKAdF1X0Zyx+ye5DSz64kISe/Qc/ X-Received: by 2002:a17:907:1249:b0:a2c:2323:34bf with SMTP id wc9-20020a170907124900b00a2c232334bfmr2105747ejb.0.1705333302056; Mon, 15 Jan 2024 07:41:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705333302; cv=none; d=google.com; s=arc-20160816; b=EWL+19xBNyTLVMKTHABQ6AB/dFe72OfLDeG3mLie3XkoW7jMguFWnFAAjQYT7K8hRi 5xQYtPIFjb8r9VWDkVhSPJVANZfa2gvkUsKwgtNlcJ9EXXkzQcxEGAVjCdXno9fGwu77 V4o3NiOmIIrS6i6CsJ4eDwqDr0Xj0OTFFf5Se3G8RcmoP5FXvk68GAQF76+Jk39TEtyh 4ydTEqVH3RaXMR/L4aSzyli5s3LoTbWp/I8/q37OyHurePgg8MZAuaS9DZVCRt4O1ipD xug/8wrPe+du07wx4arNYtW870K2mAc3ey2dxJ9Ozvkx3Sg9NDjWU0BqLgU+wIiKbRWd w5Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=HlNB6mfBhuOkYDOMIlb5FsjRSMpn/oKooeekeL6PaCc=; fh=o6arb0Oc7YD+PvuJ4vL1hcJ9BbY4qApGHA0NMp2kZgY=; b=xXTy45yL2eFES8FoPAtjTDKBGy2e9fFMIMA53Jp4Up4HmkuxpgYnNVEJDiz/97nEGu vy/4kXCUKIH0i3O5W/fSLAE0YRiHWrOaOOEEQ3pML85EumLQwhwKmFoLuIdfrLOA5q6x ZS3/8tD6EBAPF5R1uWRbXqSKPW4pqVZ3NeL3RO85Jux3OcGzVHuC2EOXmnpX9QpwtfUu S3+DyMUVGBpkVyAjyWeCrCik0dNe3OOKIv4vJHYTL2JdXUUweF5xPJmzB9DA7KgNtwY6 a4gr1aOIBy8JuktaD7/gJAppy6p3NRtHzHrn4D2OV9Iybq82i+232mCX4RHlyBvvR4ae gIIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=cnxNsymE; spf=pass (google.com: domain of linux-kernel+bounces-26186-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26186-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id gh24-20020a170906e09800b00a28ee95a00fsi3860607ejb.22.2024.01.15.07.41.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 07:41:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26186-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=cnxNsymE; spf=pass (google.com: domain of linux-kernel+bounces-26186-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26186-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 99D211F22574 for ; Mon, 15 Jan 2024 15:41:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F2B54179AF; Mon, 15 Jan 2024 15:41:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="cnxNsymE" Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (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 B4D3217980 for ; Mon, 15 Jan 2024 15:41:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a28fb463a28so949230966b.3 for ; Mon, 15 Jan 2024 07:41:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1705333270; x=1705938070; 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=HlNB6mfBhuOkYDOMIlb5FsjRSMpn/oKooeekeL6PaCc=; b=cnxNsymEqSFSbfBwC2dPSBbKzkEcqz7C6OKczQe6hJNpiNeDyjEX2vWVJJ3+Vjt/z7 fYIqL4VJ6aobNq2R0NDlNrkxTnC4ASYGI1plAlDA4/2opSzs6a9F1BWK7PJ0DItoPVqX caXzRjZL2eg7zm5HpKhXvyLrcrat60IkG4B+bN0NXPfDq6uZWmpEeRuq8+9oHJoCezOD 1uBCxwhSztUBOnECZW/tzDTlLp8z0Q/CcdGSpLhp/j6wS1+K5DUBkxUfqd7R3DF6CE8c A1B2ALTVl2gWJUnOCXJp1KFhAWmcVZzqv9imldTpCyBk5ClDjGEAYmoeqnqB/DqPNbk/ NAtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705333270; x=1705938070; 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=HlNB6mfBhuOkYDOMIlb5FsjRSMpn/oKooeekeL6PaCc=; b=TSBR7BnPog6q8FkdKCnA8zWXm448AhTP7bqLybuODkMmmKSTFVIf3BFu3KkawG3GrX U2XNnmiAnQbMeMBkXpFVQmX9vZLrET2LetVqIDjNm1NFg+SPa6/s7Qhg5HesNSK1wqxU lm5rv73LFavBn+s0VrmKCcu9cgtJ53umhrN1DVdIGR2H253bxUeNez6NV+Ux4Ba9c2xY iaFcdj7T25BEknZDdYJQ/9PgG+Qxouh8zqIXB6dMf2+zW59P3lJXDgZHuRd8mD84wEwR tf6FQfc7AveE3yxJ96Ko8S9PFI/Zj9SVhn6DM+AfnAVbvOzL4GalKgfGJJFKZFXzHvpI Prkw== X-Gm-Message-State: AOJu0YzgPkUr+e3U1Q6EQpF/9PRvffrb+kpJyvInaMsXZZH568F3zspo lTbY3xQCNb35HdKzKzezsYQOjUNvQ55ZPw== X-Received: by 2002:a17:906:6713:b0:a28:ce97:353d with SMTP id a19-20020a170906671300b00a28ce97353dmr2505542ejp.59.1705333269910; Mon, 15 Jan 2024 07:41:09 -0800 (PST) Received: from localhost (2001-1ae9-1c2-4c00-20f-c6b4-1e57-7965.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:20f:c6b4:1e57:7965]) by smtp.gmail.com with ESMTPSA id wk18-20020a170907055200b00a2808ee8ab1sm5405411ejb.150.2024.01.15.07.41.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 07:41:09 -0800 (PST) Date: Mon, 15 Jan 2024 16:41:08 +0100 From: Andrew Jones To: Anup Patel Cc: Paolo Bonzini , Atish Patra , Palmer Dabbelt , Paul Walmsley , Shuah Khan , Anup Patel , devicetree@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH 06/15] RISC-V: KVM: Allow vector crypto extensions for Guest/VM Message-ID: <20240115-99866622cb962823aa8a4d47@orel> References: <20231128145357.413321-1-apatel@ventanamicro.com> <20231128145357.413321-7-apatel@ventanamicro.com> Precedence: bulk X-Mailing-List: linux-kernel@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: <20231128145357.413321-7-apatel@ventanamicro.com> On Tue, Nov 28, 2023 at 08:23:48PM +0530, Anup Patel wrote: > We extend the KVM ISA extension ONE_REG interface to allow KVM > user space to detect and enable vector crypto extensions for > Guest/VM. This includes extensions Zvbb, Zvbc, Zvkb, Zvkg, > Zvkned, Zvknha, Zvknhb, Zvksed, Zvksh, and Zvkt. > > Signed-off-by: Anup Patel > --- > arch/riscv/include/uapi/asm/kvm.h | 10 ++++++++++ > arch/riscv/kvm/vcpu_onereg.c | 20 ++++++++++++++++++++ > 2 files changed, 30 insertions(+) > Reviewed-by: Andrew Jones