Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26929C31E48 for ; Wed, 12 Jun 2019 13:33:41 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0562720866 for ; Wed, 12 Jun 2019 13:33:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0562720866 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hb3NP-0003Kb-2k; Wed, 12 Jun 2019 13:33:19 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hb3NO-0003K4-0m for xen-devel@lists.xenproject.org; Wed, 12 Jun 2019 13:33:18 +0000 X-Inumbo-ID: a1ef2d61-8d16-11e9-8980-bc764e045a96 Received: from smtp.nue.novell.com (unknown [195.135.221.5]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id a1ef2d61-8d16-11e9-8980-bc764e045a96; Wed, 12 Jun 2019 13:33:16 +0000 (UTC) Received: from emea4-mta.ukb.novell.com ([10.120.13.87]) by smtp.nue.novell.com with ESMTP (TLS encrypted); Wed, 12 Jun 2019 15:33:15 +0200 Received: from [192.168.0.36] (nwb-a10-snat.microfocus.com [10.120.13.201]) by emea4-mta.ukb.novell.com with ESMTP (TLS encrypted); Wed, 12 Jun 2019 14:32:49 +0100 Message-ID: From: Dario Faggioli To: Andrew Cooper Date: Wed, 12 Jun 2019 15:32:47 +0200 In-Reply-To: <44422740-bef7-0025-a139-67aa0de13982@citrix.com> References: <20190528103313.13431jgross@suse.com> <20190528103313.13434jgross@suse.com> <4e594f85-b33b-87ca-2253-53a70ab8808f@suse.com> <5D00C6960200007800237622@suse.com> <0889f51d8aed0c95ecfcd038678f945abf2ca42a.camel@suse.com> <5D00D07F020000780023768C@prv1-mh.provo.novell.com> <44422740-bef7-0025-a139-67aa0de13982@citrix.com> Organization: SUSE User-Agent: Evolution 3.32.2 MIME-Version: 1.0 Subject: Re: [Xen-devel] [PATCH 03/60] xen/sched: let sched_switch_sched() return new lock address X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Juergen Gross , Stefano Stabellini , WeiLiu , Konrad Rzeszutek Wilk , George Dunlap , Tim Deegan , Ian Jackson , Robert VanVossen , Julien Grall , Joshua Whitehead , Meng Xu , Jan Beulich , xen-devel Content-Type: multipart/mixed; boundary="===============4706748662629695390==" Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" --===============4706748662629695390== Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-nyyQVz3B9tHlTvkrUwoG" --=-nyyQVz3B9tHlTvkrUwoG Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2019-06-12 at 12:27 +0100, Andrew Cooper wrote: > It is a consequence of our extra magic scheduler locks which protect > the > pointer used to locate them, and the ensuing double-step in ??? > (seriously - I can't figure out the function names created by the > sched_lock() monstrosity) which take the lock, re-read the lock > pointer > and drop on a mismatch. >=20 Just FTR, they're: vcpu_schedule_lock() vcpu_schedule_lock_irq() vcpu_schedule_lock_irqsave() and: pcpu_schedule_lock() pcpu_schedule_lock_irq() pcpu_schedule_lock_irqsave() and the corresponding *_schedule_unlock_*() ones, of course. ;-P Regards --=20 Dario Faggioli, Ph.D http://about.me/dario.faggioli Virtualization Software Engineer SUSE Labs, SUSE https://www.suse.com/ ------------------------------------------------------------------- <> (Raistlin Majere) --=-nyyQVz3B9tHlTvkrUwoG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEES5ssOj3Vhr0WPnOLFkJ4iaW4c+4FAl0A/wAACgkQFkJ4iaW4 c+6EKhAAnI6vGMD12gCvhT6w1MGkein5ZYokJnzof65Q7dTByi5PD6bjzN9o8EDO NVeB8qLlfjEku68JYJ+WcZ9Y3aEagQrkl8wBJoHbu7py37eEhrr6YSvXuj1+brav MOAVH3eJA74iEpT3yEjeMVZkKvVOFEOB+YulOEs9yLmW+IpM7ZCuMn6VIkYcf9+m +b2xkWsJx0gu9fpoCQnI1pLfRRV8a8jeDasIeoz6k3EKclG7jMv2pkAhCmefWf16 uYmUJs5pq1KPPfBiIsDm3Bx7h10SmKgV1Z37pAEetBGW1afzujHigkFIWn50O3ky /C5B9Dcuh7tShc25v2EeN05oEU/YaWZe8ELphp1T9WK40g6d7YVnY9aXUubVtRDN TwPtjNrkDDsWPTfl0TuutzR8fNq8ioZ/c+cO+p/9k3WkP2YSIyGz7Vqm2NjsNgWQ SyiGEiOGsU2T0PpRbpZ6Hae+JXmoZ1ciZNgxSv/uPS9p0zFQu5SwMRDeEttmo1Ub qOAVU34ysV+z9WCA1RLjTtgUqTorkqaCQpuaXV+8gLQrCfsMwxpa5JC94KhPcz0f dgQnVvhUDEgRhfUt0KhoHe93zb0ZTlYm5zuOWPhGR362Wl4fb7WATPWp0daGtKg9 p6Wi/TZLRNndLSjATUyd0X2wLfnNtOTXNm6jkXTOaRev9eHpmzo= =csK1 -----END PGP SIGNATURE----- --=-nyyQVz3B9tHlTvkrUwoG-- --===============4706748662629695390== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcKaHR0cHM6Ly9saXN0 cy54ZW5wcm9qZWN0Lm9yZy9tYWlsbWFuL2xpc3RpbmZvL3hlbi1kZXZlbA== --===============4706748662629695390==--