Received: by 10.213.65.68 with SMTP id h4csp694503imn; Tue, 27 Mar 2018 07:08:00 -0700 (PDT) X-Google-Smtp-Source: AG47ELs3qys6r0W4WwtrlDCTFc/gyntHsEfpAn7AytFHoDPH7gAOo/XxprX1DgJHgBqJHRt/SYbs X-Received: by 10.99.104.9 with SMTP id d9mr19867471pgc.304.1522159680644; Tue, 27 Mar 2018 07:08:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522159680; cv=none; d=google.com; s=arc-20160816; b=qMeWwKchIzBgOefqvQU/RlRFK2WhRUxdHE0UBpZCfNWmBJR9KZMyuFR3pHfj/Yc1/G rLwM5DAIoo2s8/ETjEIvFO9DM8EtTVzRrkNS5X0O1aHnCZ3AcTuWtRJ7i2SQLnv/qn0q clrxEAZ80QxqLTFYGVyydU+cSOkfej2Ei51RowjrS5hfCJNUW6asyBB/xsXKAIOzbB/q kpcBnZHK8jlDb/9QPtoqR9Yte5XaZXnXjCXYlh33JTy7ZRZCy0Hz4IV+GZF/g4M4FNvO QI+ijydDPY9KDePL5zKsO1knMSoSggFPWDee3kjP0WGHnwFBqmpabaxXAK4tXZ49Ao/O TYWw== 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=londcc7g0KcrjoYesUqN8FnsfUSbFe86Lhwed8jI2og=; b=ufdcf/jUy+gZHfYEWesCV0yoYHQ4265WObfKVZisstf5yxHBWRgg0HWOjqGaEvYPzJ mPjy6D6Iq3FJxAvjSZLEAMOe4mQ/JLma/gq1+z2F8NZ5rzxV1SWFOLsDPfujkMkP3mP2 najW/9nSqL3W0tegvnvzbS9TCQVmG0BbLVWSOVPInpD5vpyUqb2naoe9q1Uw0VOGIGkU wJmx0aq3zCe632feTIHbCr4+2JSrlKTqGYGnLaG9Xso2LzrajIKTObOl5edaxgdmy/bH +sEVk/e/8jVw66DgRThoM5DuU//dX+qAJiraPB+D3oSFx7OAMzxL4apOCsvUcoRsniIC vHpw== 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 91-v6si1424494pld.396.2018.03.27.07.07.45; Tue, 27 Mar 2018 07:08:00 -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 S1752740AbeC0OFq (ORCPT + 99 others); Tue, 27 Mar 2018 10:05:46 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:44494 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752995AbeC0OEr (ORCPT ); Tue, 27 Mar 2018 10:04:47 -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 D0C9E76FB9; Tue, 27 Mar 2018 14:04:46 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-116-135.ams2.redhat.com [10.36.116.135]) by smtp.corp.redhat.com (Postfix) with ESMTP id D0A32215CDB5; Tue, 27 Mar 2018 14:04:44 +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: [RFC v2 10/12] KVM: arm/arm64: Add KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION Date: Tue, 27 Mar 2018 16:04:14 +0200 Message-Id: <1522159456-10419-11-git-send-email-eric.auger@redhat.com> In-Reply-To: <1522159456-10419-1-git-send-email-eric.auger@redhat.com> References: <1522159456-10419-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]); Tue, 27 Mar 2018 14:04:46 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Tue, 27 Mar 2018 14:04:46 +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 6edd177..ce67f1d 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