freebsd-dev/sys
Alan Cox c99b7cc5c9 Don't set PG_WRITEABLE in init_pte_prot() (and thus pmap_enter()) unless
the page is managed.

Don't set the machine-independent layer's dirty field for the page being
mapped in init_pte_prot().  (The dirty field is only supposed to set when
a mapping is removed or write-protected and the page was managed and
modified.)

Determine whether or not to perform dirty bit emulation based on whether
or not the page is managed, i.e., pageable, not based on whether the page
is being mapped into the kernel address space.  Nearly all of the kernel
address space consists of unmanaged pages, so this has neglible impact on
the overhead of dirty bit emulation for the kernel address space.  However,
there can also exist unmanaged pages in the user address space.  Previously,
dirty bit emulation was unnecessarily performed on these pages.

Tested by:	jchandra@
2010-06-06 06:07:44 +00:00
..
amd64 Introduce the x86 kernel interfaces to allow kernel code to use 2010-06-05 15:59:59 +00:00
arm Don't set PG_WRITEABLE in pmap_enter() unless the page is managed. 2010-06-05 18:20:09 +00:00
boot Use -Wl,-N instead of the undocumented -N option for GCC. 2010-06-03 17:42:32 +00:00
bsm
cam Add allocation error hadling. 2010-06-05 09:31:13 +00:00
cddl Fix freeing space after deleting large files with holes. 2010-06-03 11:08:46 +00:00
compat Bring USB fixes for linux(4). 2010-05-24 07:04:00 +00:00
conf Add a driver for the CPU temperature sensors attached over I2C on the 2010-06-05 17:51:37 +00:00
contrib Provide kernel level headers for the libfdt code. 2010-06-02 17:24:41 +00:00
crypto Use the fpu_kern_enter() interface to properly separate usermode FPU 2010-06-05 16:00:53 +00:00
ddb MFp4 @178364: 2010-05-24 16:41:05 +00:00
dev Fix a bug introduced in r199011. When bge(4) reuses loaded RX 2010-06-05 23:29:24 +00:00
fs Don't try to call cdevsw d_close() method when devfs_close() is called 2010-06-01 18:57:21 +00:00
gdb
geom Make sure not to pass NULL to g_orphan_provider(). 2010-06-05 08:00:52 +00:00
gnu Move checking against RLIMIT_FSIZE into one place, vn_rlimit_fsize(). 2010-05-05 16:44:25 +00:00
i386 Introduce the x86 kernel interfaces to allow kernel code to use 2010-06-05 15:59:59 +00:00
ia64 Simplify the inner loop of get_pv_entry(): While iterating over the page's 2010-05-30 20:31:12 +00:00
isa Do not attempt to switch to the same VTs between suspend and resume. 2010-05-26 16:37:54 +00:00
kern Declare ip6 as (struct in6_addr *) instead of (struct in_addr *). This is 2010-06-04 14:38:24 +00:00
kgssapi
libkern Provide memchr() in the libkern. 2010-06-02 17:27:23 +00:00
mips Don't set PG_WRITEABLE in init_pte_prot() (and thus pmap_enter()) unless 2010-06-06 06:07:44 +00:00
modules opensolaris_kmem.c is already part of opensolaris.ko which zfs.ko depends on. 2010-06-03 09:29:54 +00:00
net Provide a macro for registering a virtualized sysctl handler for 2010-06-02 15:29:21 +00:00
net80211 Fix resource leaks in ieee80211_ioctl_setchanlist() in case of error. 2010-06-01 14:20:58 +00:00
netatalk
netgraph Remove some dead and incorrect code. 2010-06-05 10:16:23 +00:00
netinet Hopefully this fixes a LOR by making 2010-06-06 02:33:46 +00:00
netinet6 Fix our version of IPv6 address representation. 2010-05-19 00:35:47 +00:00
netipsec MFp4 @178283: 2010-05-24 16:27:47 +00:00
netipx
netnatm
netncp Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00
netsmb Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00
nfs Factor out the code shared between NFS client and server into its own 2010-02-16 20:00:21 +00:00
nfsclient Fix build: newnp represents newvp so KDTRACE_NFS_ATTRCACHE_FLUSH_DONE() 2010-05-27 22:59:37 +00:00
nfsserver Patch the regular NFS server so that it returns ESTALE to the client 2010-03-26 01:19:29 +00:00
nlm
opencrypto Use the fpu_kern_enter() interface to properly separate usermode FPU 2010-06-05 16:00:53 +00:00
pc98 Introduce the x86 kernel interfaces to allow kernel code to use 2010-06-05 15:59:59 +00:00
pci Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
powerpc Correct a harmless typo introduced when copying code from mmu_oea64. 2010-06-05 18:24:41 +00:00
rpc When the regular NFS server replied to a UDP client out of the replay 2010-03-23 23:03:30 +00:00
security Add a case to make sure that internal audit records get converted 2010-05-04 15:29:07 +00:00
sparc64 Don't set PG_WRITEABLE in pmap_enter() unless the page is managed. 2010-06-05 18:20:09 +00:00
sun4v Merge portions of r208645 and supporting code from the i386 pmap: 2010-06-01 05:18:48 +00:00
sys Convert pm_runcount to int to correctly check for negative value. 2010-06-05 23:05:08 +00:00
teken Just use <stdint.h> instead of <inttypes.h>. We don't need it here. 2010-04-03 17:22:28 +00:00
tools Flattened Device Tree helper scripts. 2010-06-02 17:22:38 +00:00
ufs Extend the scope of the lock on the quota file vnode in quotaon() to 2010-06-03 10:24:53 +00:00
vm Make vm_contig_grow_cache() extern, and use it when vm_phys_alloc_contig() 2010-06-04 06:35:36 +00:00
x86 Add support for corrected machine check interrupts. CMCI is a new local 2010-05-24 15:45:05 +00:00
xdr
xen don't hold spin lock across free 2010-02-21 01:12:18 +00:00
Makefile