Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp402187lqg; Thu, 11 Apr 2024 06:38:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUeaYMgMiVztaRP8RVlXe9hog2KTWdRhXDyP95hZuSCnjVR8T/CuR7sgp9sloyV8HSRh1H4DuA0AfiLu1lr3ZqNPX9FjBpwjv3iLHSpBQ== X-Google-Smtp-Source: AGHT+IHoqYnRq6RKr0z07iulao5X0+na8psOvQH+zHMeC2wZwdDJ6GmQz/bfL/UvzrG/8KCOx7J6 X-Received: by 2002:a05:6808:1a11:b0:3c6:dba:6f23 with SMTP id bk17-20020a0568081a1100b003c60dba6f23mr5046703oib.2.1712842727020; Thu, 11 Apr 2024 06:38:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712842726; cv=pass; d=google.com; s=arc-20160816; b=DpKbkIe9DJECxDNMLtqkCDyIdAip8E1HGiXgCdsJWC5g5S0TKej5ix/k/1BKfNoqhR GTTybg6TyU/4jWP79De+6GUSLdJawguAf/hq2pdDcit/+QCf8N18HimOm/A1sFEsj2cH OrTn+j2xf/e+TO7gFby8kRsD8GHV4mB4FaWollFa3d4gz8YphOmDgAEAq4jlC3Y2H83g YmuGLZx7Nq4qWuWSWZWEwhmbePcJ8l9sKAcoD0LQhQPZzHdZK1ruPZTtRk9Vr1f5rFJH v5y7XCVBhhlRLwR67sG42e1DNKa7U1Cy40Kk//oYBpYfbAcSy2pCgK0+6iPc8jPQep3u 2udA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=ubjRejHhKP//LNBOtLise49krMVbPnzbk/E6iAJWZCw=; fh=eb1ZpIiNkaS0dWe1Yg6owt9L4y2CM6+keg1WeUDLi2A=; b=OGlZoUOBCG9Z4xl9VDiRlYphIbzx2F+inZUq8pTiMPgjrnYI8AD+VFdTbKMlYQX15L keulPnOdUv078FdPkAyllrO7nbxp2gwpz8XrV43EnXnipgz48nOGVMJeUao1xl7ncuOX 5Rp9/cA7ZoPhtmED4BdVJbrgQbPOKKRXJ1VZaoqWXAYft9YWlz2FKoNd1ynvINZyCHI3 bvU5VzklPrWafLdtwcfM72xYmCEKXCrmGejkAPmPmGJ+Ko6ECo5MFXm1Uxg1VL9zp8nz AKjbLrIy2tezYfnxLy7ZNCCruyEciprlSy9GoBM3dCQikTA2cqOGEkacS3GT6pQFNOsQ wJ1A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dHiPZYak; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-140524-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140524-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w14-20020ac87e8e000000b004366655e61csi1167582qtj.463.2024.04.11.06.38.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 06:38:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140524-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dHiPZYak; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-140524-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140524-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 545771C23630 for ; Thu, 11 Apr 2024 13:38:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3931214D431; Thu, 11 Apr 2024 13:38:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dHiPZYak" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 611CD145FFA for ; Thu, 11 Apr 2024 13:38:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712842685; cv=none; b=FA0MNsrSkz5kFGITxvl6P6/v6LL0q2O/NEESeOU2+mS0JSwYO4hmOy0qcJ/cnBOTuEnAbSCwct8fhAOaSrzJT3+W7jj1QJMhlUeLPYUAUBgpPbXej6trUjAWyOPAwGE4dax4E4AepbLk0+BdUcoYrRtwyHz7CkenAQFNPrmmnJM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712842685; c=relaxed/simple; bh=ubjRejHhKP//LNBOtLise49krMVbPnzbk/E6iAJWZCw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KXJPQTVknirzWCPy9632IattF9xGBAKlMg2F/iC1RjyKxyxyAOGemkWce7RCeZMgYwLJNEPBNXJ10m/45n7FaHu5ocE+CWZG+75Nv9JvXm7ANQH7ksykiLu8LP9Jh8+wapi0fOkWXrgpLdJ/P5k5ej8pm2o7epfD3v02wU19t5A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dHiPZYak; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6E5BBC072AA; Thu, 11 Apr 2024 13:37:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712842684; bh=ubjRejHhKP//LNBOtLise49krMVbPnzbk/E6iAJWZCw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dHiPZYakpXIq0CSgNo83dnvf7Tg7baZzDEZjPmwF0VXJDncuSfiHF/AnT0d/u4tOo 8tVy0uVs7pJe6vmaHKw3TCxbbjZYkQSmmxt9qMpJL/bxsFZW86PbODWdQkKgUlA6nD 5IsAKhgOsdfWvZQ564SvwVrVG+QRQAnoGh6Piut4Fb+FB8gaskDRKmmnrRQVK355WN OaO4/7zP0UrtgQjFcAro9tq9uXIqrEdJrdbQW6z1IXe/0+OaZcPh1GQyAIv4GOlpPn VmawQ6VJOXRNegf9ROCJIjEqO1/S9mCYdrsa0ubyzUv+OmhEoHOiyanrmxv16YcnU/ Isfs0yFzXAWcw== Date: Thu, 11 Apr 2024 14:37:56 +0100 From: Will Deacon To: Zayd Qumsieh Cc: Catalin Marinas , Mark Brown , Ard Biesheuvel , Mark Rutland , Mateusz Guzik , Anshuman Khandual , Marc Zyngier , Oliver Upton , Miguel Luis , Joey Gouly , Christoph Paasch , Kees Cook , Sami Tolvanen , Baoquan He , Lecopzer Chen , Joel Granados , Dawei Li , Andrew Morton , Florent Revest , David Hildenbrand , Stefan Roesch , Andy Chiu , Josh Triplett , Oleg Nesterov , Helge Deller , Zev Weiss , Ondrej Mosnacek , Miguel Ojeda , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/3] tso: aarch64: Expose TSO for virtualized linux on Apple Silicon Message-ID: <20240411133755.GA26535@willie-the-truck> References: <20240410211652.16640-1-zayd_qumsieh@apple.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240410211652.16640-1-zayd_qumsieh@apple.com> User-Agent: Mutt/1.10.1 (2018-07-13) Hi Zayd, It makes a nice change to see an apple.com address on the mailing list! On Wed, Apr 10, 2024 at 02:16:38PM -0700, Zayd Qumsieh wrote: > x86 CPUs use a TSO memory model. Apple Silicon CPUs have the ability to > selectively use a TSO memory model. This can be done by setting the > ACTLR.TSOEN bit to 1. This feature is useful for x86 emulators, since it > removes the need for emulators to insert memory barriers in order to abide > by the TSO memory model. This patch series will add ACTLR.TSOEN support to > virtualized linux on Apple Silicon machines. Userspace will be able to use > a prctl to change the memory model of the CPU from the default ARM64 memory > model to a TSO memory model. FWIW: I've replied on the other series from Hector: https://lore.kernel.org/lkml/20240411132853.GA26481@willie-the-truck/T/#t Will