From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B9094C433ED for ; Wed, 12 May 2021 16:23:41 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 03D4461075 for ; Wed, 12 May 2021 16:23:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 03D4461075 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:Cc:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=nSC2tWkHRZy7TIpHd8X0EpZKzKv2lH6aJE3rQw+rHy0=; b=RGKwjDquRyo6x7JJDpaDOeZCb BRyoUDL6eiJgtzu3TRj7teJiK6n//GEoo653+hq4IrFKevEqfQ7uIADlwAXsW7fFPF8Am27q7do/7 bqkLupvplvHvQizdMRqWXwIEAlEQv6wQusm8GqoXHKsL7e0jRFUHhIgDWa/RdFJJeIJGtYqn1h+a5 3VwaN4R3PiuW/ghbk/VNfTn3TkchVUh2L7taE3JqA4E+adG0hhY2Zi0raplFRwSv0pXzRmDX9CvdA oHn9Un+1p0kiZGSb81LM4Ls1KbXpA9PnhDo2OtmpGkGh3sUgz9HMobp0ljFWvQEZzfvwgXsxeOmyX LZq4285Wg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgrch-003JRp-2u; Wed, 12 May 2021 16:22:11 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgrcf-003JRd-3F for linux-arm-kernel@desiato.infradead.org; Wed, 12 May 2021 16:22:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description; bh=s1rI1OzNKAGKFkKG98CZT7RXY+XZsGsKVSHMZf+IENE=; b=ibL54nw5AweYv1qPHot5Qdu2JO 4AzeBFxE5YuWenWHq47uJpN57MfFSURRfK9FmuGsYOQCCVaasj9IdpixxtsljH5nGpUwE6Vmb9PM+ kj2aqTsWodf0SdLifzkKZfO1fx9SPmb8zU4nmdmY/Du5qcuyMWMxSKHdKdW4GO25pVpTpwF0yzvgb mfSVo1jjuP34pR7eFK6HrKwRd3/wpxoPrC8epBzs0mIMwQlbXG2LAInNif3GVFF0kgOOqz3s136M6 mFdFhXSTf70hHv/hk+o23p3AoSI0d3FWIx/9EbXKVhUQW3U5krWOIWn1LHHiAr5MUPfdoA9GFfmW3 5RPxH7JA==; Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgrcc-00AaUC-BG for linux-arm-kernel@lists.infradead.org; Wed, 12 May 2021 16:22:07 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 256DA1FB; Wed, 12 May 2021 09:22:03 -0700 (PDT) Received: from [192.168.0.110] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 594EB3F719; Wed, 12 May 2021 09:22:01 -0700 (PDT) Subject: Re: [PATCH v3 0/9] KVM: arm64: Initial host support for the Apple M1 To: Marc Zyngier , linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu Cc: James Morse , Suzuki K Poulose , Eric Auger , Hector Martin , Mark Rutland , kernel-team@android.com References: <20210510134824.1910399-1-maz@kernel.org> From: Alexandru Elisei Message-ID: <3a21048a-a084-a884-7a3d-9b283f8b15ed@arm.com> Date: Wed, 12 May 2021 17:22:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210510134824.1910399-1-maz@kernel.org> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210512_092206_467777_6743EA25 X-CRM114-Status: GOOD ( 23.82 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Marc, On 5/10/21 2:48 PM, Marc Zyngier wrote: > This is a new version of the series previously posted at [2], reworking > the vGIC and timer code to cope with the M1 braindead^Wamusing nature. > > Hardly any change this time around, mostly rebased on top of upstream > now that the dependencies have made it in. > > Tested with multiple concurrent VMs running from an initramfs. > > * From v2: > - Rebased on 5.13-rc1 > - Fixed a couple of nits in the GIC registration code > > * From v1 [1]: > - Rebased on Hector's v4 posting[0] > - Dropped a couple of patches that have been merged in the above series > - Fixed irq_ack callback on the timer path > > [0] https://lore.kernel.org/r/20210402090542.131194-1-marcan@marcan.st > [1] https://lore.kernel.org/r/20210316174617.173033-1-maz@kernel.org > [2] https://lore.kernel.org/r/20210403112931.1043452-1-maz@kernel.org This looks interesting and I want to take a look. For now, I can only review the series, but maybe at some point I'll take the leap and try to run Linux on my Macbook Air. Can I find something resembling a specification for the Apple interrupt controller, or the only available documentation is in the Linux driver and patches on the mailing list? Thanks, Alex > > Marc Zyngier (9): > irqchip/gic: Split vGIC probing information from the GIC code > KVM: arm64: Handle physical FIQ as an IRQ while running a guest > KVM: arm64: vgic: Be tolerant to the lack of maintenance interrupt > KVM: arm64: vgic: Let an interrupt controller advertise lack of HW > deactivation > KVM: arm64: vgic: move irq->get_input_level into an ops structure > KVM: arm64: vgic: Implement SW-driven deactivation > KVM: arm64: timer: Refactor IRQ configuration > KVM: arm64: timer: Add support for SW-based deactivation > irqchip/apple-aic: Advertise some level of vGICv3 compatibility > > arch/arm64/kvm/arch_timer.c | 161 +++++++++++++++++++++---- > arch/arm64/kvm/hyp/hyp-entry.S | 6 +- > arch/arm64/kvm/vgic/vgic-init.c | 34 +++++- > arch/arm64/kvm/vgic/vgic-v2.c | 19 ++- > arch/arm64/kvm/vgic/vgic-v3.c | 19 ++- > arch/arm64/kvm/vgic/vgic.c | 14 +-- > drivers/irqchip/irq-apple-aic.c | 8 ++ > drivers/irqchip/irq-gic-common.c | 13 -- > drivers/irqchip/irq-gic-common.h | 2 - > drivers/irqchip/irq-gic-v3.c | 6 +- > drivers/irqchip/irq-gic.c | 6 +- > include/kvm/arm_vgic.h | 41 +++++-- > include/linux/irqchip/arm-gic-common.h | 25 +--- > include/linux/irqchip/arm-vgic-info.h | 43 +++++++ > 14 files changed, 291 insertions(+), 106 deletions(-) > create mode 100644 include/linux/irqchip/arm-vgic-info.h > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel