From patchwork Fri Mar 9 15:11:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 131145 Delivered-To: patch@linaro.org Received: by 10.80.194.209 with SMTP id u17csp1135490edf; Fri, 9 Mar 2018 07:14:04 -0800 (PST) X-Google-Smtp-Source: AG47ELtD9oX4r3TfVitouZP5wmfQFygUinZPuUIzjacZXxuaAYM+2DTMQ4rzaQ87KZH/Fw3GejUT X-Received: by 10.107.137.142 with SMTP id t14mr35131554ioi.230.1520608444344; Fri, 09 Mar 2018 07:14:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520608444; cv=none; d=google.com; s=arc-20160816; b=sot0o2wi94jxjOgCmcGBIMU+O5zV6s5Ig+fDs9DvzSuq2tyLLyC3mzYZ2yqZihmvyW 4R0HY4KnnlXtOX4H4e1j5iThvkbcKlYLzpiWRdSmXaiz18/ZxlSXFyhEoLGqk7SmmJ51 TRoX6zFt4gAvDplyiLb9G+bJEcC/vZ6N6mQ9FK/Dh1AmJm6p7het+1GWH8uoSyMgBrsM xGuvA0RSIy1IO80HlqgBAmChd5R8EO4eF0LQiEhDEv+Cb8XorRm6JJ+IzS6HMey/LB7P ekuYhHoCY7R7knyjCitxJljP6tlGlkiQZ9fLyMcIIgQwsJR2kc03WCtJ5ArSr/R6d3JM EpRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:cc:message-id:date:to:from:dkim-signature :arc-authentication-results; bh=7qldXjr2kWPziC/6Da01cJRjOL9+f9NgBZ9ndC3kNbs=; b=mMwLmXv72GFEwJwL/Pg6liUkKgGrfVQOqjov1JDm+gt/y/iSkeVz0d6AzH0hoHt5RS aWGBsAlSZ/YKkYTTpTuaJCrATfOZeGfQbZM/Mmk1et/4NCn3v2NBqZRSZ6ufBgZsWsnd 38Xbc+/k67t2WhEJ6GwmI2uqEXQYikKnNE/VXwTg0KIesDxY+NowwVbm67uFXy20lnde wLI5rq2lSVPmltae6Vi6ADvu80c3X0jW4Lf0MgCyTN3+A+hW6vzOPcOLf1yYH3ZxLfY9 QgKCijEAXSFaLj+NuCPC74ukJ2u+uL2unVOl505wzHgIUTFww74ZUKqaX97RRUv90MY9 lBbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=iARhdltD; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id p2si1043566iod.57.2018.03.09.07.14.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Mar 2018 07:14:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=iARhdltD; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1euJgQ-0005og-UR; Fri, 09 Mar 2018 15:11:46 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1euJgQ-0005oZ-3Z for xen-devel@lists.xenproject.org; Fri, 09 Mar 2018 15:11:46 +0000 X-Inumbo-ID: 02b9ef62-23ac-11e8-ba59-bc764e045a96 Received: from mail-wm0-x22a.google.com (unknown [2a00:1450:400c:c09::22a]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 02b9ef62-23ac-11e8-ba59-bc764e045a96; Fri, 09 Mar 2018 16:10:32 +0100 (CET) Received: by mail-wm0-x22a.google.com with SMTP id h21so4506928wmd.1 for ; Fri, 09 Mar 2018 07:11:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=RIoFo1aEts1W9nA3qs3fWjNxxVlHN4/6601MD31vhh0=; b=iARhdltDp6nX/VIn/a0xYRXzn9Bsr9drAwTBK5bB9Wg4Z00LprTtVv2vy6HqWz9MSU 21zEDiSfZoojNxzdZbNQeE2fDYZYtmW5BRFFiB7nqVVWgCybBSiErS+GnLA64XiZKqEH +rQqYXjR1tP3hXYlt4Uip6cAdctv3JtQHnnos= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=RIoFo1aEts1W9nA3qs3fWjNxxVlHN4/6601MD31vhh0=; b=mtPKV9N0CnG8MkhI1WbjP4lbAFQPqkSy6hnycymWS1kDgsczDdIv/cGaPQImSoZX3r J2Vwj/4R6pfZ27K8T+BTluaYrDzp8yZh7VWHYnt0aSXOFnQU50G1uBXjoxMYknXq5XTR 9fQJUlYOfUf/wbZrU9g/D3Gh2WL3+XRtlk+K+5Kc7JeeDOj+nBENaT3efCOTso4QHdIe hnzHTEfWCwjViU+2P8ZYqQTCuQZKnabwK3xa8QsAwF5UQiqqJwr23pjyyq2Zw3dA0+2m /2RXgYvDpmjmgHUbqB+HGtbhUmwG46kwcp/ExGYTjVbpGuLckysswb6bjU03ik566Uao 4zLQ== X-Gm-Message-State: AElRT7FW9sqJ50KCT8MCLypRxY3E5I+P9tbe/vwCgElsXaQ7BdclyBw7 N0m5VhR8SbDGhV2auRqlZsJXdg== X-Received: by 10.28.111.198 with SMTP id c67mr2283329wmi.83.1520608303607; Fri, 09 Mar 2018 07:11:43 -0800 (PST) Received: from e104803-lin.lan (mail.andrep.de. [217.160.17.100]) by smtp.gmail.com with ESMTPSA id 1sm1721198wmj.35.2018.03.09.07.11.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Mar 2018 07:11:42 -0800 (PST) From: Andre Przywara To: Stefano Stabellini , Julien Grall Date: Fri, 9 Mar 2018 15:11:16 +0000 Message-Id: <20180309151133.31371-1-andre.przywara@linaro.org> X-Mailer: git-send-email 2.14.1 Cc: xen-devel@lists.xenproject.org Subject: [Xen-devel] [PATCH 00/17] ARM: vGIC: prepare for splitting the vGIC code X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" To get away from that scary xx/57 number in the new vGIC series, these are the first few patches split off. They prepare the existing Xen code to better observe the split between the vGIC emulation and the physical GIC driver. This affects the first 20 patches from the new vGIC series. Most of them have already been ACKed. Exceptions are: - Patch 01/57 has been merged already. - Patch 04/57 has been dropped, the one #define left has been moved into patch 03/17 here. I dropped Julien's ACK because of that. - Patch 15/57 has been dropped, we don't need it anymore in the new vGIC. - Patches 07, 08, 09 and 14/17 were changed according to the review comments on patches 09, 10, 11 and 17/57, respectively. Every patch has been compile tested on arm and arm64, also the end result has been briefly tested with two guests on a Juno(arm64) and Midway(arm) platform. A branch with those patches is available at the new-vgic/prep branch at: git://linux-arm.org/xen-ap.git http://www.linux-arm.org/git?p=xen-ap.git;a=shortlog;h=refs/heads/vgic-new/prep Cheers, Andre Andre Przywara (17): ARM: vGICv3: clarify on GUEST_GICV3_RDIST_REGIONS symbol ARM: GICv3: use hardware GICv3 redistributor values for Dom0 ARM: vGICv3: always use architected redist stride ARM: vGICv3: remove rdist_stride from VGIC structure ARM: VGIC: rename gic_inject() and gic_clear_lrs() ARM: VGIC: Move gic_remove_from_lr_pending() prototype ARM: VGIC: Adjust domain_max_vcpus() to be VGIC specific ARM: VGIC: rename gic_event_needs_delivery() ARM: VGIC: change to level-IRQ compatible IRQ injection interface ARM: VGIC: carve out struct vgic_cpu and struct vgic_dist ARM: VGIC: reorder prototypes in vgic.h ARM: VGIC: Introduce gic_get_nr_lrs() ARM: GICv3: rename HYP interface definitions to use ICH_ prefix ARM: Implement vcpu_kick() ARM: GICv2: introduce gicv2_poke_irq() ARM: GICv3: poke_irq: make RWP optional ARM: GICv2: fix GICH_V2_LR definitions xen/arch/arm/domain.c | 24 +++---- xen/arch/arm/gic-v2.c | 20 +++--- xen/arch/arm/gic-v3-lpi.c | 2 +- xen/arch/arm/gic-v3.c | 82 ++++++++++----------- xen/arch/arm/gic-vgic.c | 30 +++++--- xen/arch/arm/irq.c | 2 +- xen/arch/arm/time.c | 2 +- xen/arch/arm/traps.c | 4 +- xen/arch/arm/vgic-v3.c | 40 +++++------ xen/arch/arm/vgic.c | 64 ++++++++++------- xen/arch/arm/vpl011.c | 2 +- xen/arch/arm/vtimer.c | 4 +- xen/include/asm-arm/domain.h | 93 +++--------------------- xen/include/asm-arm/event.h | 2 +- xen/include/asm-arm/gic.h | 14 ++-- xen/include/asm-arm/gic_v3_defs.h | 54 +++++++------- xen/include/asm-arm/vgic.h | 146 +++++++++++++++++++++++++++++++------- xen/include/public/arch-arm.h | 1 - 18 files changed, 315 insertions(+), 271 deletions(-)