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 X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3DC87C4360F for ; Thu, 4 Apr 2019 21:11:44 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id E83B420663 for ; Thu, 4 Apr 2019 21:11:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="f4usPtXA" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E83B420663 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject: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=nS9l+Z1Z2LBzzZHTLkWDDtBngkrE2RgHUyYk/x0NMvA=; b=f4usPtXAsDIdAo jTEvyjm69AcgmrLaZqEFuwXpg+ZbvoJKG8JaiRWHWaG+IvbtUsGZlqjWAmRK3vpFQ4BQ7silElB2L B6aArL8iEtGiZ12871zS5Ors7ox9pp45xByNGUiXE3tyQaRMsROpAmSEXEMe5/9upS9ztTttqi7Cp rYyD7SVUb/RUu0jM5vtAIkEBFKgaeQhuiLTnDIRViIh+U6Ynim7pupLv15dpLMSBD+09RCuMpg+j/ b0MqZyIqzA3zgKpNPQFqBwHwZBJIKPAcZQSmm6U4QUkRavCCAnt16MXjzj40Nhytqv4xGUZh/R/jp 402g4PChtt1Ku8G0vjig==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hC9e8-00053y-3l; Thu, 04 Apr 2019 21:11:40 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hC9e5-000525-Aa for linux-arm-kernel@lists.infradead.org; Thu, 04 Apr 2019 21:11:38 +0000 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9C16C307B967; Thu, 4 Apr 2019 21:11:36 +0000 (UTC) Received: from kamzik.brq.redhat.com (unknown [10.43.2.160]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 627921001E84; Thu, 4 Apr 2019 21:11:34 +0000 (UTC) Date: Thu, 4 Apr 2019 23:11:31 +0200 From: Andrew Jones To: Dave Martin Subject: Re: [PATCH v7 14/27] KVM: Allow 2048-bit register access via ioctl interface Message-ID: <20190404211131.53ch4ohwon7ubrog@kamzik.brq.redhat.com> References: <1553864452-15080-1-git-send-email-Dave.Martin@arm.com> <1553864452-15080-15-git-send-email-Dave.Martin@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1553864452-15080-15-git-send-email-Dave.Martin@arm.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Thu, 04 Apr 2019 21:11:36 +0000 (UTC) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190404_141137_386965_AE22E785 X-CRM114-Status: GOOD ( 20.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Okamoto Takayuki , Christoffer Dall , Ard Biesheuvel , Marc Zyngier , Catalin Marinas , Will Deacon , Zhang Lei , Julien Grall , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Mar 29, 2019 at 01:00:39PM +0000, Dave Martin wrote: > The Arm SVE architecture defines registers that are up to 2048 bits > in size (with some possibility of further future expansion). > = > In order to avoid the need for an excessively large number of > ioctls when saving and restoring a vcpu's registers, this patch > adds a #define to make support for individual 2048-bit registers > through the KVM_{GET,SET}_ONE_REG ioctl interface official. This > will allow each SVE register to be accessed in a single call. > = > There are sufficient spare bits in the register id size field for > this change, so there is no ABI impact, providing that > KVM_GET_REG_LIST does not enumerate any 2048-bit register unless > userspace explicitly opts in to the relevant architecture-specific > features. > = > Signed-off-by: Dave Martin > Reviewed-by: Alex Benn=E9e > Tested-by: zhang.lei > --- > include/uapi/linux/kvm.h | 1 + > 1 file changed, 1 insertion(+) > = > diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h > index 6d4ea4b..dc77a5a 100644 > --- a/include/uapi/linux/kvm.h > +++ b/include/uapi/linux/kvm.h > @@ -1145,6 +1145,7 @@ struct kvm_dirty_tlb { > #define KVM_REG_SIZE_U256 0x0050000000000000ULL > #define KVM_REG_SIZE_U512 0x0060000000000000ULL > #define KVM_REG_SIZE_U1024 0x0070000000000000ULL > +#define KVM_REG_SIZE_U2048 0x0080000000000000ULL > = > struct kvm_reg_list { > __u64 n; /* number of regs */ > -- = > 2.1.4 > Reviewed-by: Andrew Jones _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel