Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1809251rdb; Mon, 9 Oct 2023 03:53:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFlREhtuVOiEMWMwPqHs3gvBLGdEbJLGTMr749lNM2WGY0LJMwE7GElp5jQkIPob41Uwfhc X-Received: by 2002:a05:6a21:a599:b0:153:39d9:56f8 with SMTP id gd25-20020a056a21a59900b0015339d956f8mr16488124pzc.15.1696848814090; Mon, 09 Oct 2023 03:53:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696848814; cv=none; d=google.com; s=arc-20160816; b=U4XTLKyciLt3unibaqviOFTd9mwfS/2WT0kDT2zAssl2KxoFdAn8sS9Ar+ASX6KfHF rYMFRfDVm5o0FF22Em3RIjQ2gVcpt1MfbRYdsI41iE1VwqFutZGo9ilJ7vRr0VEvhGHj 02ScNLBMccwLsAta2VwnroS9EIMCDNUNpkFXVNsjeRrbPFF0GK/KKfnw1m5QCU26CcUK wwBHA/rkEuRiYpk4XP6648IH6uVhHII+Rh/vT+U39BYq5JGwefEF84zHxaLVTVoEsfWx VbmJtrgOwyRc526XW4hR/aDCRIHfKgcIw1PR8ayjzxAP0VF/vmCa0sFIEhfK0h4QNADC x/kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Hjpz99pKtSDqY7Lxx2Kmyl5doNN9PYMFGMw6h35LBMc=; fh=QPYwVplovGenesF+wNV3SO2ukVq53Pk2BJ23pgqvVgc=; b=uQnF5fqCxNVaDM2W0rHzoRDvrq3BSDg8+kaVEpjz3Ejad8npKSo7Xpf0oupZ0LwJy+ LGKvHb7LSUA9ROeHWusC6xLxzm23mG0tQtMMv0sPeCILtYZ55iv2nVXHHeh9tjwBCRyu P/2Cquj/DO2U02/2nH8f/vKmoEUICR4hctjxpa3zhjYNKtsSop3sWK7RZ+0+gBF/jOrb qHcdmy39lXS1hGbmohrrOUMc7MvQBg5w7P5JKAX2F75O4nBYgC6cqd/9eT8ugEY0Wvl+ Kkc1tJuhoACuKL06xt1PEcva3YTqXU3jTwfJUGYhrnzI99efAyAk/PEhaals26bRaoDF O46w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ReJNSlkC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id q80-20020a632a53000000b00573f7ef60aesi9125871pgq.154.2023.10.09.03.53.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 03:53:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ReJNSlkC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id D26E580787C2; Mon, 9 Oct 2023 03:53:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346025AbjJIKx0 (ORCPT + 99 others); Mon, 9 Oct 2023 06:53:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232713AbjJIKxZ (ORCPT ); Mon, 9 Oct 2023 06:53:25 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24CF18E for ; Mon, 9 Oct 2023 03:53:24 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-690d2441b95so3170337b3a.1 for ; Mon, 09 Oct 2023 03:53:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696848803; x=1697453603; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=Hjpz99pKtSDqY7Lxx2Kmyl5doNN9PYMFGMw6h35LBMc=; b=ReJNSlkCuggCd/FzGsRpccgFGTUe6NpOXYIR60xfamDJl/s5UyZsQqbDHTZmAY+bVh f7rbYI6+P3mFoMYZgbFRH9rwLiCqMOgS3jXMRlEjlYmywjS0bdXENsX0wsTnMKWSqR3T d1uF5baFYfbWgGZk0OLy/ImEZiuYpjCMx8/1UlA0Wk8gESCdPtjNnyEDKztJ8WpFeJSB oWhkJ/tO7L9sKjFvvn3HDmTAkKA5MyZzRXpqvvGA4Qv7T9hAF6eYA24x958ER1OBUK54 nwIX/RMuUAKNhvKurPcslfm6uQqXKzQFWt3cu/eGEQv3lRQkGs/bvXTps5TF38sqHiFl HlwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696848803; x=1697453603; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Hjpz99pKtSDqY7Lxx2Kmyl5doNN9PYMFGMw6h35LBMc=; b=MkpuuMBMADAJRWjwJcyvX6fOu5LAJM/02vtXvmyoDFYWINd1PfUx1DucuL+BsgRcnU JF2T10ym5aD2h91IYFWh+HzEcPRY+DSZ7Aids+d+QU63vrda4BcbjQVl3EWcatlxrmgo /1McHHLqWI6Q90/z5iFIcJ1UGw9NIegvpUYIk9W2/5W/H//hXiczyt1L6AbrFysWhE/B ng1FOzfVCnXuIvaSQHXU8r9sm9PXZj39iF64P9IVPxxUv8/eN7MI41u9mbPXsR8orQGT VudVZk8Dj6l2Sd+ZXpOSxMPV7+asb8fr5FDsZHuQxaNlK3uYEF4USTrfkeTW9KxJG5YX rT/A== X-Gm-Message-State: AOJu0YwXSgsg7S61L60BYSRSUkhHPwTDUTaH1PbGJcCDkOQz9xupl7pd QYUHozqg/k+zhtCEDVorVGIErw== X-Received: by 2002:a05:6a00:cd4:b0:68f:c1e0:a2c4 with SMTP id b20-20020a056a000cd400b0068fc1e0a2c4mr17399432pfv.3.1696848803584; Mon, 09 Oct 2023 03:53:23 -0700 (PDT) Received: from localhost ([122.172.81.92]) by smtp.gmail.com with ESMTPSA id g2-20020a63ad02000000b00584d035c08asm8018705pgf.24.2023.10.09.03.53.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 03:53:22 -0700 (PDT) Date: Mon, 9 Oct 2023 16:23:20 +0530 From: Viresh Kumar To: Alex =?utf-8?Q?Benn=C3=A9e?= Cc: Juergen Gross , Stefano Stabellini , Oleksandr Tyshchenko , Vincent Guittot , stratos-dev@op-lists.linaro.org, Erik Schilling , Manos Pitsidianakis , Mathieu Poirier , linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org Subject: Re: [PATCH 2/2] xen: privcmd: Add support for ioeventfd Message-ID: <20231009105320.scljokj4ies2s5r4@vireshk-i7> References: <52b07a3861a34fb0deb6251bae8bd885815c6944.1693311370.git.viresh.kumar@linaro.org> <20231005063231.vqwhfnlc64phwmto@vireshk-i7> <877cnwqg27.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <877cnwqg27.fsf@linaro.org> X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 09 Oct 2023 03:53:32 -0700 (PDT) X-Spam-Level: ** On 09-10-23, 10:40, Alex Benn?e wrote: > I thought generally sync points act as full barriers. Doing a bunch of > grepping I think ends at: > > static __always_inline bool __mutex_unlock_fast(struct mutex *lock) > { > unsigned long curr = (unsigned long)current; > > return atomic_long_try_cmpxchg_release(&lock->owner, &curr, 0UL); > } > > so you should already have completed your writes by that point. I am not sure if depending on such indirect mechanisms to implement barriers for you is a good idea. The situation here probably requires explicit barriers to make sure it doesn't break in future ? -- viresh