Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 May 2011 18:43:49 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Attilio Rao <attilio@freebsd.org>
Cc:        src-committers@freebsd.org, Artem Belevich <art@freebsd.org>, Oleksandr Tymoshenko <gonzo@freebsd.org>, Bruce Evans <brde@optusnet.com.au>, svn-src-projects@freebsd.org, Warner Losh <imp@freebsd.org>
Subject:   Re: svn commit: r221614 - projects/largeSMP/sys/powerpc/include
Message-ID:  <20110513154349.GV48734@deviant.kiev.zoral.com.ua>
In-Reply-To: <BANLkTinv9=iu8yzJD_ji4D6_txs173Kkxw@mail.gmail.com>
References:  <BANLkTiktwEvRktZrGOqKKB2iSB99a3Jw=g@mail.gmail.com> <BANLkTik17r-XampEdO%2BsQ7aMOL_SDyhG=g@mail.gmail.com> <BANLkTinaWDcaiZiB3G5Szoaho1jVSeniMA@mail.gmail.com> <BANLkTimj3ohmvACmvcPa3yrdsUj=4D2V3Q@mail.gmail.com> <BANLkTikSgEXZz8vjj7kuyeWQE_oKqzB8ug@mail.gmail.com> <BANLkTinHGpL5tC3-5jOPUq6bJ2Ks7j_Dww@mail.gmail.com> <BANLkTi=DOD9p-YUMm33D5ZShTjS_Q1hEvg@mail.gmail.com> <BANLkTikj%2Bszgd%2BptzD6y%2BofPs%2B8bR7Z8ew@mail.gmail.com> <20110513221936.X1161@besplex.bde.org> <BANLkTinv9=iu8yzJD_ji4D6_txs173Kkxw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--xncXys66qXuJqdVV
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Fri, May 13, 2011 at 03:50:47PM +0200, Attilio Rao wrote:
> The per-cpu stuff also, is read only. The pm_active objects are
> protected by VM locks.

pm_active is not protected by any vm lock. It is set and cleared
unlocked in the context switch code. But, the ctx switch only needs
to set and clear a single bit at the time of switch, that makes
the atomic operations sufficient for consistency.

I had a WIP on the Intel PCID, were such protection was not enough,
unfortunately.

--xncXys66qXuJqdVV
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)

iEYEARECAAYFAk3NUbUACgkQC3+MBN1Mb4gbJwCeKyYAKhfcLfcXxsdJbJ3dcjKe
1WwAnj+xlqdJ/fkHNpf4GFjFqtEAiYa1
=PXrb
-----END PGP SIGNATURE-----

--xncXys66qXuJqdVV--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110513154349.GV48734>