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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1A29AC001DC for ; Thu, 20 Jul 2023 17:19:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230183AbjGTRTk (ORCPT ); Thu, 20 Jul 2023 13:19:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbjGTRTi (ORCPT ); Thu, 20 Jul 2023 13:19:38 -0400 Received: from out-35.mta1.migadu.com (out-35.mta1.migadu.com [95.215.58.35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E047C6 for ; Thu, 20 Jul 2023 10:19:37 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1689873575; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iYivxBWQ3YZQD179gp3mRMOft6cNkrnqZJhnecUb8kk=; b=lo7+AI8HOdXJoMbn030Hs420eLQ10ibM8nACrZO2FcXoUKxenC+5mGyAIA9D3g37Ei8b0N 9TsVXovL7XTWEG76ZO51sIC+IrYh4aQQ5qWYu48lmJmToB3xbB7xTctOXka5DejDutnHeh GmqOAnIrPV5D/DdDeIOxjT05AtzRvTA= From: Oliver Upton To: Marc Zyngier , Raghavendra Rao Ananta Cc: Oliver Upton , Suzuki K Poulose , Fuad Tabba , Will Deacon , kvmarm@lists.linux.dev, Jing Zhang , James Morse , Colton Lewis , Reiji Watanabe , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] KVM: arm64: Fix hardware enable/disable flows for pKVM Date: Thu, 20 Jul 2023 17:19:22 +0000 Message-ID: <168987354993.692466.16634039861064795931.b4-ty@linux.dev> In-Reply-To: <20230719215725.799162-1-rananta@google.com> References: <20230719215725.799162-1-rananta@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 19 Jul 2023 21:57:25 +0000, Raghavendra Rao Ananta wrote: > When running in protected mode, the hyp stub is disabled after pKVM is > initialized, meaning the host cannot enable/disable the hyp at > runtime. As such, kvm_arm_hardware_enabled is always 1 after > initialization, and kvm_arch_hardware_enable() never enables the vgic > maintenance irq or timer irqs. > > Unconditionally enable/disable the vgic + timer irqs in the respective > calls, instead relying on the percpu bookkeeping in the generic code > to keep track of which cpus have the interrupts unmasked. > > [...] Applied to kvmarm/fixes, thanks! [1/1] KVM: arm64: Fix hardware enable/disable flows for pKVM https://git.kernel.org/kvmarm/kvmarm/c/c718ca0e9940 -- Best, Oliver