Received: from out-26.mta1.migadu.com (out-26.mta1.migadu.com [95.215.58.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D18BB17FE0 for ; Tue, 11 Jul 2023 20:01:10 +0000 (UTC) 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=1689105668; 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=H4U0BqZH6IJqZy7LVpNL5UW+eWiw5deb+05/t7QjPmA=; b=Q0IkcWGLQ1D3CsbhY2XMmuHN8nUgph7WOGKfiJcHZLLSN2GvQl5d+kl7obg/EPu+63qFn7 /FscK+P5pCfVMv7GPTnNvPCrofwvE5YolEMldr3Hu2u5MdlwNcNSsPGOyR2QqNmsK4Vs0H bUkMrHzftXJsAQCEeFc2o5jY7GPSI30= From: Oliver Upton To: Marc Zyngier , kvm@vger.kernel.org, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org Cc: Oliver Upton , Kristina Martsenko , seanjc@google.com, Zenghui Yu , isaku.yamahata@intel.com, James Morse , stable@vger.kernek.org, Suzuki K Poulose , pbonzini@redhat.com Subject: Re: [PATCH] KVM: arm64: Disable preemption in kvm_arch_hardware_enable() Date: Tue, 11 Jul 2023 20:00:45 +0000 Message-ID: <168910562680.2605377.17070403411705802542.b4-ty@linux.dev> In-Reply-To: <20230703163548.1498943-1-maz@kernel.org> References: <20230703163548.1498943-1-maz@kernel.org> Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT On Mon, 3 Jul 2023 17:35:48 +0100, Marc Zyngier wrote: > Since 0bf50497f03b ("KVM: Drop kvm_count_lock and instead protect > kvm_usage_count with kvm_lock"), hotplugging back a CPU whilst > a guest is running results in a number of ugly splats as most > of this code expects to run with preemption disabled, which isn't > the case anymore. > > While the context is preemptable, it isn't migratable, which should > be enough. But we have plenty of preemptible() checks all over > the place, and our per-CPU accessors also disable preemption. > > [...] Applied to kvmarm/fixes, thanks! [1/1] KVM: arm64: Disable preemption in kvm_arch_hardware_enable() https://git.kernel.org/kvmarm/kvmarm/c/970dee09b230 -- Best, Oliver