Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9896113rwp; Thu, 20 Jul 2023 11:15:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlEZ1T2aird4FDc2NlxBgIn0/xddRIWW8KQuaggl0rJqFSI5FhhMrR5bLRM61xGWiKyEeLZc X-Received: by 2002:a05:6a21:789d:b0:12c:c614:f55 with SMTP id bf29-20020a056a21789d00b0012cc6140f55mr256610pzc.43.1689876943467; Thu, 20 Jul 2023 11:15:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689876943; cv=none; d=google.com; s=arc-20160816; b=X4zM+ncKV0KbQUf+avbj5sJCaNsTXYY118z5b2StGyf+cv3YCDGIsh12rOpdInK/v+ zmhMohr1VVicgA2j1WqZq24tzdDIfgt+ru/2yxIvq2TgxAcLMtQiQaMt14E9ZZJ0NgO8 b8mQqB1czlDLEXPOTKQo1GD6lwxrVVp+guhAGG9XJLMErPGAY/T5LqRMzxLPyeEu1A8p KUKYUptp9D0wGSopn0it9WQaZvkuMoJUp+tQ39dPp2qlPYLi4TQatRm4iEeVjh4vF6h9 KGeY6RDN4L3ZMqvde/dXA8gaIk1Z4jR3wllh8AaVSqC1eqQBIll5B8pn7xHZ8sJy1A5P mmTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=iYivxBWQ3YZQD179gp3mRMOft6cNkrnqZJhnecUb8kk=; fh=YVGDjqp6QbfHuBAg/HLLIUeImymPCMnqON/8aMe6aJA=; b=reIPSIG/K3bx8fcZy8P499x2DCdaU20iJzHgeVF+foqGhd/Vqd4OKEBqRqMLIICORH k0Jg9BWWQpjDCNkKhovx/din7fF9rGbUQ4NlzKs2oH+9DtAYOAaFvWXtS0Oa4diCUfQy tLs/QFfcxLedpnVX8wgAnY0lUrCpXSF8vq+pISRStpyeGIdc9L+q0hCGLq6Ha1oOTINc 6/bdLlo9LiI9fFJUsWpDNABYxzMkWV4jbBRd1JSuA7BJ2MyzQrfmgWwvA7fHZexmCPTQ e2ONgmutNllplCoM2gLSvczmYtFLp2EAZnd8PE5T5PqyDmG/blaH67PaMIrBu7U/47Ms M/8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=lo7+AI8H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l19-20020a639853000000b0055aeedd94d3si1046614pgo.58.2023.07.20.11.15.30; Thu, 20 Jul 2023 11:15:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=lo7+AI8H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230085AbjGTRTj (ORCPT + 99 others); Thu, 20 Jul 2023 13:19:39 -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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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