Date: Wed, 5 Oct 2011 17:53:33 +0300 From: Kostik Belousov <kostikbel@gmail.com> To: Svatopluk Kraus <onwahe@gmail.com> Cc: freebsd-current@freebsd.org Subject: Re: pmap_qenter() - the page *must* be wired - is violated Message-ID: <20111005145333.GD1511@deviant.kiev.zoral.com.ua> In-Reply-To: <CAFHCsPX2dzv9Hk-WM_%2BQj%2BovihQZs17y=Guouj8t-3T_nQtLXw@mail.gmail.com> References: <CAFHCsPX2dzv9Hk-WM_%2BQj%2BovihQZs17y=Guouj8t-3T_nQtLXw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--teNhNKPB77OXAOlQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 05, 2011 at 02:28:01PM +0200, Svatopluk Kraus wrote: > Hi, >=20 > I found out that on a few places pmap_qenter() is called on pages > which are not wired. For example, in the following functions, when > vm_pager_get_pages() is called, the pages are not wired: >=20 > exec_map_first_page() in sys/kern/kern_exec.c > vm_fault_hold() in sys/vm/vm_fault.c > vm_imgact_hold_page() in sys/vm/vm_glue.c > vm_object_populate() in sys/vm/vm_object.c > mdstart_swap() in sys/dev/md/md.c >=20 > Is the rule violated or the rule should be changed? Lets first discuss where did you found the calls to pmap_qenter(). Can you point out exact line numbers of the calls to pmap_qenter() that you consider problematic ? In fact, the requirement probably shall be 'no swapout allowed'. E.g., the busy page is fully qualified to be used together with pmap_qenter(). --teNhNKPB77OXAOlQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk6Mb20ACgkQC3+MBN1Mb4jbjwCgi/QDaD5iaZA3oRMvWFR/SMF7 ZAoAoM3uHwQ6Vu5kWAsXJVvdJLWqG8Uw =YlHk -----END PGP SIGNATURE----- --teNhNKPB77OXAOlQ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111005145333.GD1511>