Received: by 10.192.165.156 with SMTP id m28csp479629imm; Fri, 13 Apr 2018 02:31:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx49U1GrNGBaHka4SJwRNRRKrzx8r6e+B4Ep72D1qTd48kMTU9FCiCPDTL88xX9FYG6MW13Ba X-Received: by 10.99.147.20 with SMTP id b20mr3409841pge.309.1523611901155; Fri, 13 Apr 2018 02:31:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523611901; cv=none; d=google.com; s=arc-20160816; b=Mi1TyipwR0poBc7cz9lqfoGJcoSfZJY9IlX+MzmTB+lz+WYox1B/9bZUU1sIImTae0 HmXCEyZ8OMbIQn8V8YqVCIu7nC0Dlk/GseYkisYgBPcDoe4zkguJOxKyApTov2Rvn8Vu YYgq/DuIvcVJPmh/y3v2PEQLaQBlIo8ZHJ1pZfATsafUMgJfUl6e6mp30nJdjLbxLX09 c2buxgZsIkopzg2k5hTvpgf9KBOYteNWXBrFDvjxeoNxqomROGcYJApCyAP3bt7CGOuw g42u7TKOg2wq7I7U/XthVEccK6f50PQMOrJHp1gFjPPH6lz9lxBRdC1mjV1wjCKFNLx1 ci+A== 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=rziofu/RyRpoSI8kO+h1UJdNwCK6QqUaGRBkkvAV+Q8=; b=Em+5rzn0VKc9fBIah45UPUKzGQ5t3Sgg/0PpLHFCWW2i13JwdyA7czKix+S8hP/mJi U7gyZq+4Qm+KCIfcjYoTJZVNHiOzGe02wY1esvknvCAShtK12M+gruDus8KXB2xl8Xcw dgE0Mi5Wh5hnv4ZgrE9yFM6orpzFs2OpkhDAcNXcMxSstHUNpu9/mGe4Mp7F0N0gZ0r7 Tx13OlT1Zy7SfeRqyUlzKhq0zsMh7Pi8iMMCHj+RQId4b9ng0x/aEE9SEmmdPCpTHHZH MZ2E5LdG+MxIqTLQK7rxjNFkQmOyhQEzppufdW1OzvzZh12kNrMDcoUcpfG0SfJTSTnX jiRA== 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 64-v6si4964668ply.528.2018.04.13.02.31.26; Fri, 13 Apr 2018 02:31:41 -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 S1753941AbeDMIVh (ORCPT + 99 others); Fri, 13 Apr 2018 04:21:37 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:54086 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753306AbeDMIV1 (ORCPT ); Fri, 13 Apr 2018 04:21:27 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AA9DDEB703; Fri, 13 Apr 2018 08:21:26 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-116-192.ams2.redhat.com [10.36.116.192]) by smtp.corp.redhat.com (Postfix) with ESMTP id AB956215CDC8; Fri, 13 Apr 2018 08:21:24 +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 v3 10/12] KVM: arm/arm64: Add KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION Date: Fri, 13 Apr 2018 10:20:56 +0200 Message-Id: <1523607658-9166-11-git-send-email-eric.auger@redhat.com> In-Reply-To: <1523607658-9166-1-git-send-email-eric.auger@redhat.com> References: <1523607658-9166-1-git-send-email-eric.auger@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Fri, 13 Apr 2018 08:21:26 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Fri, 13 Apr 2018 08:21:26 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.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 --- 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 +#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