Received: by 10.192.165.148 with SMTP id m20csp3553215imm; Mon, 30 Apr 2018 02:10:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpxP3yLmPYHbm1aPzzdgFnFb8tMyGiw5eW67KLnohgcWn4Pp51/vq/DkRzGlNZTfFhGslY6 X-Received: by 10.98.133.154 with SMTP id m26mr11199059pfk.247.1525079437492; Mon, 30 Apr 2018 02:10:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525079437; cv=none; d=google.com; s=arc-20160816; b=ufbeLsmyBuWl/CtmbstJl334P4+J6RB8twubHExXhpz8pq7ZQHvlPllZZqZ/e3DXOB nLVhOtsrfE1u1FPO5zbt/MwoTImSSsM76YRWe6QimGCSX7d7XCs/ZfcsB+/NozQZVO24 nwsAITGsZjZrIGtyuZ8FQQyqnMzVtBp3qYm8ceViWG0BFT4Oqo+p5ww8j8Sxo5fhVORd 0TI9jkvuxEy8Qj0i+oz481x2TbjZ9Yv30uB1mbw64Qh8LOTgPwkggGAEMYUfY+ZUiJFW wVdgyHE81EetfeWOQYyW18jYNtdyc1t24WraF/gquCQmCUvGgURU8b+yXVidOd//M9nf lv/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=DDnWjQxuZy2MKUCw24P/uyWIPnLHcuKLyFZVGnV2zlE=; b=u+e2LqitwTneuuARBNQ3m0z968JESdfN5KJoVZTRBrqaIbGnwR7trrgwcgixDs3hRW VfDQa+7SMo7XK/KHovaRnP29RO52EZ+LrRQnD5KE5ZYVPSkY1qd6TujjYcFbKh6ksi9j 4AThymxcPFyilhb5/P0jXhDVHngER6R3yVSeb5eWuYV7DESpdJ0TP1mpbps77QZYe7s/ SdytW6cQWBJgwNZY0DvsBo5OKW6Z8d55POz+DUx9PqUxpfZp5f0FZjLhmXLlg9rHa+aS ZeZoUiKUDi/qFndmKJuU045io5BiG/QrJu3DgQWoC6It7HrZHGfQOdb58gYxoNpftxps iEAA== 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 f88si7159897pfk.107.2018.04.30.02.10.23; Mon, 30 Apr 2018 02:10:37 -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 S1753185AbeD3JIK (ORCPT + 99 others); Mon, 30 Apr 2018 05:08:10 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:43334 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752830AbeD3JIJ (ORCPT ); Mon, 30 Apr 2018 05:08:09 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 79672FB67F; Mon, 30 Apr 2018 09:08:08 +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 CA4742024CA1; Mon, 30 Apr 2018 09:08:06 +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 v5 10/12] KVM: arm/arm64: Add KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION Date: Mon, 30 Apr 2018 11:07:42 +0200 Message-Id: <1525079264-25533-11-git-send-email-eric.auger@redhat.com> In-Reply-To: <1525079264-25533-1-git-send-email-eric.auger@redhat.com> References: <1525079264-25533-1-git-send-email-eric.auger@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Mon, 30 Apr 2018 09:08:08 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Mon, 30 Apr 2018 09:08:08 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.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 caae484..16e006f 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 04b3256..4e76630 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