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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7D845C6FD18 for ; Wed, 19 Apr 2023 08:42:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HU/rtSvxXJCXxeouaoh5QOm5f3PZyWoEasZhmLkbKXM=; b=3kb2RwWwri2I6J mwfvjnoOTRSsbUAm9p+iKlBQpGkqqh9CStmwmYGbgLjfrCY39BnRWrbxg5y9VZNBG/vjoWBH5fC3u e8/j9b3ZieEo97AuDoapKMGmfOzhukGzrpJtE4+9nO83srSakd0ylp1bAlmTGn2zmPsBe2NzMtjxY jLn/XepFWGXMb9aBuzZ9LjVRzdevvqAN1yFx55Uz7hHJ7Ck3wgOArEzNiHqaNBPYGnomi9q8UaApR FNxVkajXrE5hb7eiNyPaMbgM3h8eGkdFGsnGUXEtwI53yZ2rp19hhOBdb4f1kDRceXwl4gpAnfH8T SH9F3T9MDXbAGfwU5IGg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pp3Nq-004cpr-2e; Wed, 19 Apr 2023 08:41:46 +0000 Received: from out-22.mta0.migadu.com ([2001:41d0:1004:224b::16]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pp3Nn-004cor-17 for linux-arm-kernel@lists.infradead.org; Wed, 19 Apr 2023 08:41:45 +0000 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=1681893698; 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=nAL5cKdJD52GbjJBtt/2QV2gYrAcEMuOsmINS4xoZFk=; b=tufRf45nYih6R+sCvytwBxxJDbWXBzl09Z6qUfbWHU6jo5tOmdd3XGtAye/16f6RSZu9DK w95pIwyTHGG8WlML2hQcAP6VMwu2awX7jqvrEr7IFkVX2RlGfL1GueG5p2QVFZ8r3HqcBb /QaTAmcTIQBpVkyFDYCRRAeDdqmu3ak= From: Oliver Upton To: linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, kvmarm@lists.linux.dev, Marc Zyngier Cc: Oliver Upton , Mostafa Saleh , Suzuki K Poulose , stable@vger.kernel.org, James Morse , Catalin Marinas , Zenghui Yu , Will Deacon , Quentin Perret Subject: Re: [PATCH v2] KVM: arm64: Make vcpu flag updates non-preemptible Date: Wed, 19 Apr 2023 08:41:26 +0000 Message-ID: <168189366436.3163688.14802526283160116596.b4-ty@linux.dev> In-Reply-To: <20230418125737.2327972-1-maz@kernel.org> References: <20230418125737.2327972-1-maz@kernel.org> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230419_014143_808606_92B34CE2 X-CRM114-Status: UNSURE ( 7.83 ) X-CRM114-Notice: Please train this message. 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 On Tue, 18 Apr 2023 13:57:37 +0100, Marc Zyngier wrote: > Per-vcpu flags are updated using a non-atomic RMW operation. > Which means it is possible to get preempted between the read and > write operations. > > Another interesting thing to note is that preemption also updates > flags, as we have some flag manipulation in both the load and put > operations. > > [...] Applied to kvmarm/fixes, thanks! [1/1] KVM: arm64: Make vcpu flag updates non-preemptible https://git.kernel.org/kvmarm/kvmarm/c/35dcb3ac663a -- Best, Oliver _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel