Received: by 10.192.165.148 with SMTP id m20csp772322imm; Fri, 27 Apr 2018 07:17:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpHKjcbv8vQKEiJnJa9E7Bh4MD6TLEF3EuELRtajtuwAqN1145jUstGruvPh9n9vG2synyQ X-Received: by 2002:a65:62ca:: with SMTP id m10-v6mr2346530pgv.348.1524838660824; Fri, 27 Apr 2018 07:17:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524838660; cv=none; d=google.com; s=arc-20160816; b=corWLttLurnaoogFg+NAslhbMm01ssXCbRD9sGcAkMiGfCxdgDDR/2/6+Yg2D8Wijv eF/eXCjmO3Q3VwjO2i1df6NVHSFcLDXCyr7moTbXjQdGKqJbGE3oiEIqAyf8KJBCXtlL kNgG52npkcqD5mpho0Qw6nGhqH+/BKbsmZ6nV6FNHNwbOBl+V7bSqu1Fts+bdndb5R05 /ziYj+BEaxG+T0Mlpcv1Ho60V2rqjE80KqrLiuEx0hobVFA6GoeM6ILV6q4OmeN0jTKK O7L+EZzk8YoZbyIJYgccnTA6dbV4ZY2gPXDhc0D/D+3c/R3XjIlTqw0kFUj+jBoshvmW 8ObQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=hV7LExqGyNnatvjIA8WlS3gcT1SjpzLF+JUVfpUZ3c8=; b=iYMo4gdzyibKGEO9iiY9KtejZ+m0jL7jUTcR8jSH85eKLD82n2b0cO+carT4whTRQy brSvS7UzKzfQaMgL9ZB+10XSAUOw8tGBFRnAaQ9rupItcnKYYfYru5vwKgfgaHuy2Jlg crsiNrdgx3110u8Tguhs8XNVloRo25Gh2Q1wXrhhfmN2CbdB1oqXPIFCfIjB57bS7Pz4 kH7f26QzG2LpsRah5R1kNGljDW3DDrXVVIQo73sh+Jz3AKurKM21LkDBJypQKPI+zsKB wyTu6qwADA5kjVFZqoKV3CMFXW8lV7ZPihMmsMYhxO7hRjTX9UVAiWjF04/xnmbdwlH9 C13g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s1-v6si1319717plr.458.2018.04.27.07.17.26; Fri, 27 Apr 2018 07:17:40 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935496AbeD0OPo (ORCPT + 99 others); Fri, 27 Apr 2018 10:15:44 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:36420 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935301AbeD0OPi (ORCPT ); Fri, 27 Apr 2018 10:15:38 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 514E87D83F; Fri, 27 Apr 2018 14:15:38 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-116-57.ams2.redhat.com [10.36.116.57]) by smtp.corp.redhat.com (Postfix) with ESMTP id A0A92AB581; Fri, 27 Apr 2018 14:15:36 +0000 (UTC) From: Eric Auger To: eric.auger.pro@gmail.com, eric.auger@redhat.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 Cc: andre.przywara@arm.com, drjones@redhat.com, wei@redhat.com Subject: [PATCH v4 10/12] KVM: arm/arm64: Add KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION Date: Fri, 27 Apr 2018 16:15:03 +0200 Message-Id: <1524838505-3823-11-git-send-email-eric.auger@redhat.com> In-Reply-To: <1524838505-3823-1-git-send-email-eric.auger@redhat.com> References: <1524838505-3823-1-git-send-email-eric.auger@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 27 Apr 2018 14:15:38 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 27 Apr 2018 14:15:38 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'eric.auger@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Acked-by: Christoffer Dall --- v3 -> v4: - keep previous indentation for existing attributes - added Christoffer's A-b --- arch/arm/include/uapi/asm/kvm.h | 1 + arch/arm64/include/uapi/asm/kvm.h | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/include/uapi/asm/kvm.h b/arch/arm/include/uapi/asm/kvm.h index 2ba95d6..e4f243f 100644 --- a/arch/arm/include/uapi/asm/kvm.h +++ b/arch/arm/include/uapi/asm/kvm.h @@ -91,6 +91,7 @@ struct kvm_regs { #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) diff --git a/arch/arm64/include/uapi/asm/kvm.h b/arch/arm64/include/uapi/asm/kvm.h index 9abbf30..df0f47c 100644 --- a/arch/arm64/include/uapi/asm/kvm.h +++ b/arch/arm64/include/uapi/asm/kvm.h @@ -91,6 +91,7 @@ struct kvm_regs { #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