Received: by 10.192.165.148 with SMTP id m20csp5121513imm; Tue, 24 Apr 2018 14:10:10 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/EyD0ZFuZv9mYknjYOK8HMJvkPAwJ6wz7g2lnKqZL4jRb0XolCUqj1q5jayeMGj6D8tMYM X-Received: by 10.99.176.8 with SMTP id h8mr21449412pgf.448.1524604210843; Tue, 24 Apr 2018 14:10:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524604210; cv=none; d=google.com; s=arc-20160816; b=yWWtBT+fh7pyXLg8kdFELsSI409/QSbxtKgCvMPUBlrVjN+E/nw4in50/tPWpJId6S SXmTwteNgGACjL2QH6l1G3rzHFeUxuk/w56789hSMtY/y5/4WU3xR5TKuVd43A9SD8hB HCk6Z56V7svCbPlWlJpAIZlTdbhyTAfVJtGwK+KF7Gt2ItKGWWUfd69SwpBdzKCvL1eL XNXNPgWBx6sRe/NK/ysmNSFaftOdGI8MUfbATs8H5kEvRPI37kqwlXeQNAAGBP+qZWbt BeHNXIGigWoWCg7o74pU0oC+kjpT5iS1DCmlyF3oG33Xq5+yth0OWmC3Uj454koBAslu 3ZbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=IZNgdlsQEP5xbraGbdWfsD7nXivfygWrpF/PNGq230w=; b=nsjdzs53GFR1ZEJEMsR3DLWDS+lFSskfDSDUtRRwI0vE/HQQbZH4l/e4M3ygTm24Zr 19/mG/OofSReWaj4hSB2P666dxgvSSWUDJuKZhg1TX4b5C0Ub8KVAfIHWbW2ZyCe9orr jfKhJA6nHKbIyG8TUXECOOjQmF6U6R/yliR0tirzavlYJ8riqEhzsJ5NMxLXGfKNpiQl DDGsArs1zOIpfKtF7w++WcpqWfUofPgf3LOELq/F4OplHojmzGXa/9mr1yYnWuKjTUWF sfCANa9JxmwxajXRExb0Vlt4lWjOGvitGv8WjdBs4jXmQ+9G6QGCt9goNRxSr9N11zPk osaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 9-v6si14754359plf.283.2018.04.24.14.09.57; Tue, 24 Apr 2018 14:10:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752413AbeDXVI0 (ORCPT + 99 others); Tue, 24 Apr 2018 17:08:26 -0400 Received: from foss.arm.com ([217.140.101.70]:60010 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752193AbeDXVIY (ORCPT ); Tue, 24 Apr 2018 17:08:24 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8BD3F80D; Tue, 24 Apr 2018 14:08:24 -0700 (PDT) Received: from localhost (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DF6153F25D; Tue, 24 Apr 2018 14:08:23 -0700 (PDT) Date: Tue, 24 Apr 2018 23:08:21 +0200 From: Christoffer Dall To: Eric Auger Cc: eric.auger.pro@gmail.com, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, marc.zyngier@arm.com, cdall@kernel.org, peter.maydell@linaro.org, andre.przywara@arm.com, drjones@redhat.com, wei@redhat.com Subject: Re: [PATCH v3 10/12] KVM: arm/arm64: Add KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION Message-ID: <20180424210821.GK4533@C02W217FHV2R.local> References: <1523607658-9166-1-git-send-email-eric.auger@redhat.com> <1523607658-9166-11-git-send-email-eric.auger@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1523607658-9166-11-git-send-email-eric.auger@redhat.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 13, 2018 at 10:20:56AM +0200, Eric Auger wrote: > This new attribute allows the userspace to set the base address > of a reditributor region, relaxing the constraint of having all > consecutive redistibutor frames contiguous. > > Signed-off-by: Eric Auger > --- > arch/arm/include/uapi/asm/kvm.h | 7 ++++--- > arch/arm64/include/uapi/asm/kvm.h | 7 ++++--- > 2 files changed, 8 insertions(+), 6 deletions(-) > > diff --git a/arch/arm/include/uapi/asm/kvm.h b/arch/arm/include/uapi/asm/kvm.h > index 2ba95d6..11725bb 100644 > --- a/arch/arm/include/uapi/asm/kvm.h > +++ b/arch/arm/include/uapi/asm/kvm.h > @@ -88,9 +88,10 @@ struct kvm_regs { > #define KVM_VGIC_V2_CPU_SIZE 0x2000 > > /* Supported VGICv3 address types */ > -#define KVM_VGIC_V3_ADDR_TYPE_DIST 2 > -#define KVM_VGIC_V3_ADDR_TYPE_REDIST 3 > -#define KVM_VGIC_ITS_ADDR_TYPE 4 > +#define KVM_VGIC_V3_ADDR_TYPE_DIST 2 > +#define KVM_VGIC_V3_ADDR_TYPE_REDIST 3 > +#define KVM_VGIC_ITS_ADDR_TYPE 4 I think I'd prefer that we just leave these lines above as it's only and indentation thing, and this is an exported header so will propagate into userspace updates, but I don't have a strong feeling about it, nor do I know if there's a general policy. > +#define KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION 5 > > #define KVM_VGIC_V3_DIST_SIZE SZ_64K > #define KVM_VGIC_V3_REDIST_SIZE (2 * SZ_64K) > diff --git a/arch/arm64/include/uapi/asm/kvm.h b/arch/arm64/include/uapi/asm/kvm.h > index 9abbf30..ef8ad3b 100644 > --- a/arch/arm64/include/uapi/asm/kvm.h > +++ b/arch/arm64/include/uapi/asm/kvm.h > @@ -88,9 +88,10 @@ struct kvm_regs { > #define KVM_VGIC_V2_CPU_SIZE 0x2000 > > /* Supported VGICv3 address types */ > -#define KVM_VGIC_V3_ADDR_TYPE_DIST 2 > -#define KVM_VGIC_V3_ADDR_TYPE_REDIST 3 > -#define KVM_VGIC_ITS_ADDR_TYPE 4 > +#define KVM_VGIC_V3_ADDR_TYPE_DIST 2 > +#define KVM_VGIC_V3_ADDR_TYPE_REDIST 3 > +#define KVM_VGIC_ITS_ADDR_TYPE 4 > +#define KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION 5 > > #define KVM_VGIC_V3_DIST_SIZE SZ_64K > #define KVM_VGIC_V3_REDIST_SIZE (2 * SZ_64K) > -- > 2.5.5 > Otherwise: Acked-by: Christoffer Dall