The NetBSD Project

CVS log for src/sys/rump/librump/rumpvfs/rump_vfs.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / rump / librump / rumpvfs

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.97 / (download) - annotate - [select for diffs], Sat Sep 23 18:21:12 2023 UTC (5 months ago) by ad
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.96: +2 -3 lines
Diff to previous 1.96 (colored)

Repply this change with a couple of bugs fixed:

- Do away with separate pool_cache for some kernel objects that have no special
  requirements and use the general purpose allocator instead. On one of my
  test systems this makes for a small (~1%) but repeatable reduction in system
  time during builds presumably because it decreases the kernel's cache /
  memory bandwidth footprint a little.
- vfs_lockf: cache a pointer to the uidinfo and put mutex in the data segment.

Revision 1.96 / (download) - annotate - [select for diffs], Tue Sep 12 16:17:21 2023 UTC (5 months, 2 weeks ago) by ad
Branch: MAIN
Changes since 1.95: +4 -2 lines
Diff to previous 1.95 (colored)

Back out recent change to replace pool_cache with then general allocator.
Will return to this when I have time again.

Revision 1.95 / (download) - annotate - [select for diffs], Sun Sep 10 14:45:53 2023 UTC (5 months, 2 weeks ago) by ad
Branch: MAIN
Changes since 1.94: +2 -4 lines
Diff to previous 1.94 (colored)

- Do away with separate pool_cache for some kernel objects that have no special
  requirements and use the general purpose allocator instead.  On one of my
  test systems this makes for a small (~1%) but repeatable reduction in system
  time during builds presumably because it decreases the kernel's cache /
  memory bandwidth footprint a little.
- vfs_lockf: cache a pointer to the uidinfo and put mutex in the data segment.

Revision 1.94 / (download) - annotate - [select for diffs], Wed Oct 26 23:39:10 2022 UTC (16 months ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.93: +2 -3 lines
Diff to previous 1.93 (colored)

sys/filedesc.h: New home for extern cwdi0.

Revision 1.93 / (download) - annotate - [select for diffs], Sat Apr 25 15:42:15 2020 UTC (3 years, 10 months ago) by bouyer
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.92: +2 -2 lines
Diff to previous 1.92 (colored)

Merge the bouyer-xenpvh branch, bringing in Xen PV drivers support under HVM
guests in GENERIC.
Xen support can be disabled at runtime with
boot -c
disable hypervisor

Revision 1.90.4.2 / (download) - annotate - [select for diffs], Sat Apr 25 11:24:07 2020 UTC (3 years, 10 months ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.90.4.1: +3 -3 lines
Diff to previous 1.90.4.1 (colored) to branchpoint 1.90 (colored) next main 1.91 (colored)

Sync with bouyer-xenpvh-base2 (HEAD)

Revision 1.87.14.3 / (download) - annotate - [select for diffs], Tue Apr 21 18:42:45 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.87.14.2: +2 -2 lines
Diff to previous 1.87.14.2 (colored) to branchpoint 1.87 (colored) next main 1.88 (colored)

Sync with HEAD

Revision 1.92 / (download) - annotate - [select for diffs], Mon Apr 20 21:39:05 2020 UTC (3 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: phil-wifi-20200421, bouyer-xenpvh-base2
Changes since 1.91: +3 -3 lines
Diff to previous 1.91 (colored)

Rename buf_syncwait() to vfs_syncwait(), and have it wait on v_numoutput
rather than BC_BUSY.  Removes the dependency on bufhash.

Revision 1.90.4.1 / (download) - annotate - [select for diffs], Mon Apr 20 11:29:13 2020 UTC (3 years, 10 months ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.90: +3 -3 lines
Diff to previous 1.90 (colored)

Sync with HEAD

Revision 1.91 / (download) - annotate - [select for diffs], Mon Apr 13 19:23:20 2020 UTC (3 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: bouyer-xenpvh-base1
Changes since 1.90: +3 -3 lines
Diff to previous 1.90 (colored)

Replace most uses of vp->v_usecount with a call to vrefcnt(vp), a function
that hides the details and does atomic_load_relaxed().  Signature matches
FreeBSD.

Revision 1.87.14.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:09:01 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.87.14.1: +11 -4 lines
Diff to previous 1.87.14.1 (colored) to branchpoint 1.87 (colored)

Merge changes from current as of 20200406

Revision 1.88.6.2 / (download) - annotate - [select for diffs], Sat Feb 29 20:21:09 2020 UTC (4 years ago) by ad
Branch: ad-namecache
Changes since 1.88.6.1: +9 -2 lines
Diff to previous 1.88.6.1 (colored) to branchpoint 1.88 (colored) next main 1.89 (colored)

Sync with head.

Revision 1.90 / (download) - annotate - [select for diffs], Sun Feb 23 15:46:42 2020 UTC (4 years ago) by ad
Branch: MAIN
CVS Tags: phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base, ad-namecache-base3
Branch point for: bouyer-xenpvh
Changes since 1.89: +9 -2 lines
Diff to previous 1.89 (colored)

UVM locking changes, proposed on tech-kern:

- Change the lock on uvm_object, vm_amap and vm_anon to be a RW lock.
- Break v_interlock and vmobjlock apart.  v_interlock remains a mutex.
- Do partial PV list locking in the x86 pmap.  Others to follow later.

Revision 1.88.6.1 / (download) - annotate - [select for diffs], Fri Jan 17 21:47:37 2020 UTC (4 years, 1 month ago) by ad
Branch: ad-namecache
Changes since 1.88: +4 -4 lines
Diff to previous 1.88 (colored)

Sync with head.

Revision 1.89 / (download) - annotate - [select for diffs], Fri Jan 17 20:08:09 2020 UTC (4 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: ad-namecache-base2, ad-namecache-base1
Changes since 1.88: +4 -4 lines
Diff to previous 1.88 (colored)

VFS_VGET(), VFS_ROOT(), VFS_FHTOVP(): give them a "int lktype" argument, to
allow us to get shared locks (or no lock) on the returned vnode.  Matches
FreeBSD.

Revision 1.87.14.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:54 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.87: +3 -3 lines
Diff to previous 1.87 (colored)

Sync with HEAD

Revision 1.88 / (download) - annotate - [select for diffs], Wed Feb 20 10:07:27 2019 UTC (5 years ago) by hannken
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.87: +3 -3 lines
Diff to previous 1.87 (colored)

Attach "mnt_transinfo" to "dead_rootmount" so every mount has a
valid "mnt_transinfo" and remove now unneeded flag IMNT_HAS_TRANS.

Run fstrans_start()/fstrans_done() on dead_rootmount if FSTRANS_DEAD_ENABLED.
Should become the default for DIAGNOSTIC in the future.

Revision 1.67.12.5 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:17 2017 UTC (6 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.67.12.4: +22 -8 lines
Diff to previous 1.67.12.4 (colored) to branchpoint 1.67 (colored) next main 1.68 (colored)

update from HEAD

Revision 1.81.2.5 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:15 2017 UTC (6 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.81.2.4: +4 -2 lines
Diff to previous 1.81.2.4 (colored) to branchpoint 1.81 (colored) next main 1.82 (colored)

Sync with HEAD

Revision 1.84.2.2 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:30 2017 UTC (6 years, 10 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.84.2.1: +4 -2 lines
Diff to previous 1.84.2.1 (colored) to branchpoint 1.84 (colored) next main 1.85 (colored)

Sync with HEAD

Revision 1.86.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:07 2017 UTC (6 years, 10 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.86: +4 -2 lines
Diff to previous 1.86 (colored) next main 1.87 (colored)

Sync with HEAD

Revision 1.87 / (download) - annotate - [select for diffs], Sat Apr 1 19:35:57 2017 UTC (6 years, 11 months ago) by riastradh
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-20170426, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: phil-wifi
Changes since 1.86: +4 -2 lines
Diff to previous 1.86 (colored)

KASSERT(mutex_owned(vp->v_interlock)) in vnode iterator selector.

Revision 1.84.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:52 2017 UTC (7 years, 1 month ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.84: +5 -2 lines
Diff to previous 1.84 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.81.2.4 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:29 2016 UTC (7 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.81.2.3: +5 -2 lines
Diff to previous 1.81.2.3 (colored) to branchpoint 1.81 (colored)

Sync with HEAD

Revision 1.86 / (download) - annotate - [select for diffs], Thu Nov 17 23:15:38 2016 UTC (7 years, 3 months ago) by pgoyette
Branch: MAIN
CVS Tags: pgoyette-localcount-20170320, pgoyette-localcount-20170107, nick-nhusb-base-20170204, nick-nhusb-base-20161204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.85: +3 -2 lines
Diff to previous 1.85 (colored)

In addition to initializing the bufq subsystem, we also need to init
the individual strategy modules.

Revision 1.85 / (download) - annotate - [select for diffs], Wed Nov 16 23:24:47 2016 UTC (7 years, 3 months ago) by pgoyette
Branch: MAIN
Changes since 1.84: +4 -2 lines
Diff to previous 1.84 (colored)

Initialize the bufq stuff for rump, too.

This should fix the large number of tests that recently started to fail.

Revision 1.81.2.3 / (download) - annotate - [select for diffs], Sat Mar 19 11:30:37 2016 UTC (7 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.81.2.2: +5 -5 lines
Diff to previous 1.81.2.2 (colored) to branchpoint 1.81 (colored)

Sync with HEAD

Revision 1.84 / (download) - annotate - [select for diffs], Tue Jan 26 23:12:18 2016 UTC (8 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.83: +5 -5 lines
Diff to previous 1.83 (colored)

Put the kernelside rump kernel headers into <rump-sys> instead of
sprinkling them around the faction directories.  Avoids having
to add a CPPFLAGS (or several) to pretty much every component
Makefile.

Leave compat headers around in the old locations.

The commit changes some autogenerated files, but I'll fix the
generators shortly and regen.

Revision 1.81.2.2 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:15 2015 UTC (8 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.81.2.1: +15 -6 lines
Diff to previous 1.81.2.1 (colored) to branchpoint 1.81 (colored)

Sync with HEAD

Revision 1.83 / (download) - annotate - [select for diffs], Wed Jul 22 08:36:05 2015 UTC (8 years, 7 months ago) by hannken
Branch: MAIN
CVS Tags: nick-nhusb-base-20151226, nick-nhusb-base-20150921
Changes since 1.82: +15 -6 lines
Diff to previous 1.82 (colored)

rump_vfs_mount_print: use vfs_vnode_iterator to print attached vnodes.

Revision 1.81.2.1 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:29 2015 UTC (8 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.81: +2 -3 lines
Diff to previous 1.81 (colored)

Sync with HEAD

Revision 1.82 / (download) - annotate - [select for diffs], Wed May 6 15:57:08 2015 UTC (8 years, 9 months ago) by hannken
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606
Changes since 1.81: +2 -3 lines
Diff to previous 1.81 (colored)

Remove miscfs/syncfs and

- move the syncer into kern/vfs_subr.c.

- change the syncer to process the mountlist and VFS_SYNC as appropriate.

- use an API for mount points similiar to the API for vnodes:
  - vfs_syncer_add_to_worklist(struct mount *mp) to add
  - vfs_syncer_remove_from_worklist(struct mount *mp) to remove a mount.

No objections on tech-kern@

Revision 1.81 / (download) - annotate - [select for diffs], Mon Nov 17 14:30:31 2014 UTC (9 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.80: +3 -2 lines
Diff to previous 1.80 (colored)

Release all hypervisor-level resources for rump_etfs paths when the
rump kernel is halted.

Allows a Xen domU to not complain after it was shut down, or something
like that.  Requested by Martin Lucina.

Revision 1.67.12.4 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:42 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.67.12.3: +15 -14 lines
Diff to previous 1.67.12.3 (colored) to branchpoint 1.67 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.77.6.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:56:51 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.77: +17 -16 lines
Diff to previous 1.77 (colored) next main 1.78 (colored)

Rebase.

Revision 1.80 / (download) - annotate - [select for diffs], Fri May 23 10:56:36 2014 UTC (9 years, 9 months ago) by pooka
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.79: +5 -3 lines
Diff to previous 1.79 (colored)

Permissions work better if you specify them in octal ...

Also, do an explicit chmod of /tmp to account for cmask getting in the way.

Revision 1.79 / (download) - annotate - [select for diffs], Thu May 22 12:31:28 2014 UTC (9 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.78: +4 -3 lines
Diff to previous 1.78 (colored)

create /tmp at bootstrap, default TMPDIR used by some programs (e.g. ed)

Revision 1.67.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:41:16 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.67.2.2: +33 -27 lines
Diff to previous 1.67.2.2 (colored) to branchpoint 1.67 (colored) next main 1.68 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.77.2.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:19 2014 UTC (9 years, 9 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.77: +13 -15 lines
Diff to previous 1.77 (colored) next main 1.78 (colored)

sync with head

Revision 1.78 / (download) - annotate - [select for diffs], Fri Apr 25 18:31:35 2014 UTC (9 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base
Changes since 1.77: +13 -15 lines
Diff to previous 1.77 (colored)

gardenize: function calls over #ifdefs

Revision 1.67.12.3 / (download) - annotate - [select for diffs], Sun Jun 23 06:20:28 2013 UTC (10 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.67.12.2: +23 -15 lines
Diff to previous 1.67.12.2 (colored) to branchpoint 1.67 (colored)

resync from head

Revision 1.77 / (download) - annotate - [select for diffs], Mon Jun 10 19:48:22 2013 UTC (10 years, 8 months ago) by pooka
Branch: MAIN
CVS Tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: tls-earlyentropy, rmind-smpnet
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored)

create /dev with 0755 instead of 0777 (though it's now effectively the
same due to cmask)

Revision 1.76 / (download) - annotate - [select for diffs], Mon Apr 29 19:31:46 2013 UTC (10 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: khorben-n900
Changes since 1.75: +2 -3 lines
Diff to previous 1.75 (colored)

g/c unused

Revision 1.75 / (download) - annotate - [select for diffs], Mon Apr 29 17:31:05 2013 UTC (10 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.74: +4 -4 lines
Diff to previous 1.74 (colored)

Replace the various "get info from hypervisor" interfaces with one
unified rumpuser_getparam(), and make it return a plist.  The
contents can come e.g. from the env or a config file.  Make
identifiers starting with an underscore denote system identifiers
which must be implemented by hypervisor. (yea, j/k about the plist bit)

Revision 1.74 / (download) - annotate - [select for diffs], Mon Apr 29 12:56:03 2013 UTC (10 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.73: +2 -8 lines
Diff to previous 1.73 (colored)

Rework how the bio hypercalls work, part 1/n:

Reduce the set of hypercalls to one: "do block i/o".  This not only
eliminates a lot of pseudo-duplicate code, it also gives the
hypervisor a lot more freedom on how to optimize the i/o.

Revision 1.73 / (download) - annotate - [select for diffs], Thu Apr 4 11:21:37 2013 UTC (10 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.72: +5 -3 lines
Diff to previous 1.72 (colored)

create /dev/null only after it's possible to create /dev/null

Revision 1.72 / (download) - annotate - [select for diffs], Wed Apr 3 20:23:01 2013 UTC (10 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.71: +17 -4 lines
Diff to previous 1.71 (colored)

Don't create a huge number of unnecessary device nodes automatically.
Creating them takes 70-or-so ms on a RPi, and can almost double the
bootstrap time of a rump kernel on that hardware.

Revision 1.67.12.2 / (download) - annotate - [select for diffs], Mon Feb 25 00:30:10 2013 UTC (11 years ago) by tls
Branch: tls-maxphys
Changes since 1.67.12.1: +25 -22 lines
Diff to previous 1.67.12.1 (colored) to branchpoint 1.67 (colored)

resync with head

Revision 1.67.2.2 / (download) - annotate - [select for diffs], Wed Jan 23 00:06:29 2013 UTC (11 years, 1 month ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.67.2.1: +23 -20 lines
Diff to previous 1.67.2.1 (colored) to branchpoint 1.67 (colored)

sync with head

Revision 1.67.2.1 / (download) - annotate - [select for diffs], Wed Jan 16 05:33:52 2013 UTC (11 years, 1 month ago) by yamt
Branch: yamt-pagecache
Changes since 1.67: +6 -8 lines
Diff to previous 1.67 (colored)

sync with (a bit old) head

Revision 1.71 / (download) - annotate - [select for diffs], Mon Jan 14 16:45:47 2013 UTC (11 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: yamt-pagecache-base8, agc-symver-base, agc-symver
Changes since 1.70: +23 -20 lines
Diff to previous 1.70 (colored)

Don't use __weak_alias where the component framework is sufficient.

Revision 1.70 / (download) - annotate - [select for diffs], Thu Nov 22 21:23:08 2012 UTC (11 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-pagecache-base7
Changes since 1.69: +4 -4 lines
Diff to previous 1.69 (colored)

satisfy the slightly more picky clang

Revision 1.67.12.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:02:50 2012 UTC (11 years, 3 months ago) by tls
Branch: tls-maxphys
Changes since 1.67: +4 -6 lines
Diff to previous 1.67 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.69 / (download) - annotate - [select for diffs], Sun Nov 18 18:39:23 2012 UTC (11 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.68: +4 -4 lines
Diff to previous 1.68 (colored)

Finally remove the "temporary" __VTYPE_DEFINED stuff I added >5 years ago.

Revision 1.68 / (download) - annotate - [select for diffs], Mon Nov 5 17:24:12 2012 UTC (11 years, 3 months ago) by dholland
Branch: MAIN
Changes since 1.67: +2 -4 lines
Diff to previous 1.67 (colored)

Disentangle the namecache from the internals of namei.

 - Move the namecache's hash computation to inside the namecache code,
instead of being spread out all over the place. Remove cn_hash from
struct componentname and delete all uses of it.

 - It is no longer necessary (if it ever was) for cache_lookup and
cache_lookup_raw to clear MAKEENTRY from cnp->cn_flags for the cases
that cache_enter already checks for.

 - Rearrange the interface of cache_lookup (and cache_lookup_raw) to
make it somewhat simpler, to exclude certain nonexistent error
conditions, and (most importantly) to make it not require write access
to cnp->cn_flags.

This change requires a kernel bump.

Revision 1.67 / (download) - annotate - [select for diffs], Mon Jul 4 11:31:37 2011 UTC (12 years, 7 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored)

don't define multiple cwdi0's, mark this one as extern.

fixes various mips build issues i've seen with both GCC 4.1 and 4.5.

Revision 1.65.6.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:20:29 2011 UTC (12 years, 8 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored) next main 1.66 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.66 / (download) - annotate - [select for diffs], Sun Jun 12 03:35:59 2011 UTC (12 years, 8 months ago) by rmind
Branch: MAIN
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored)

Welcome to 5.99.53!  Merge rmind-uvmplock branch:

- Reorganize locking in UVM and provide extra serialisation for pmap(9).
  New lock order: [vmpage-owner-lock] -> pmap-lock.

- Simplify locking in some pmap(9) modules by removing P->V locking.

- Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share
  the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs).

- Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner.
  Add TLBSTATS option for x86 to collect statistics about TLB shootdowns.

- Unify /dev/mem et al in MI code and provide required locking (removes
  kernel-lock on some ports).  Also, avoid cache-aliasing issues.

Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches
formed the core changes of this branch.

Revision 1.43.2.4 / (download) - annotate - [select for diffs], Sat Mar 5 20:56:16 2011 UTC (12 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.43.2.3: +39 -68 lines
Diff to previous 1.43.2.3 (colored) to branchpoint 1.43 (colored) next main 1.44 (colored)

sync with head

Revision 1.65 / (download) - annotate - [select for diffs], Fri Jan 7 11:27:53 2011 UTC (13 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: cherry-xenmp
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored)

Censor no-longer-relevant flags which may be passed down from
somewhere (e.g. an older kernel).  We really can't do anything
about new flags or flags changing meaning, though.

Revision 1.64 / (download) - annotate - [select for diffs], Thu Jan 6 10:20:57 2011 UTC (13 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.63: +2 -3 lines
Diff to previous 1.63 (colored)

cwdi0 lock is now initialized in proc0_init()

Revision 1.63 / (download) - annotate - [select for diffs], Tue Nov 30 15:41:35 2010 UTC (13 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Changes since 1.62: +3 -14 lines
Diff to previous 1.62 (colored)

remove unnecessary interface

Revision 1.62 / (download) - annotate - [select for diffs], Tue Nov 30 15:39:27 2010 UTC (13 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.61: +16 -4 lines
Diff to previous 1.61 (colored)

fix broken rototill

Revision 1.61 / (download) - annotate - [select for diffs], Tue Nov 30 10:48:27 2010 UTC (13 years, 3 months ago) by dholland
Branch: MAIN
Changes since 1.60: +4 -11 lines
Diff to previous 1.60 (colored)

SAVENAME and HASBUF namei flags have been removed; update rumpvfs accordingly.

Revision 1.60 / (download) - annotate - [select for diffs], Sun Nov 21 16:19:19 2010 UTC (13 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.59: +2 -5 lines
Diff to previous 1.59 (colored)

I can't think of any reason why a rump kernel has to allow vfsusermount
by default, nor do I remember why i originally added it in 2008
==> remove.

Revision 1.59 / (download) - annotate - [select for diffs], Fri Nov 19 06:44:33 2010 UTC (13 years, 3 months ago) by dholland
Branch: MAIN
Changes since 1.58: +12 -4 lines
Diff to previous 1.58 (colored)

Introduce struct pathbuf. This is an abstraction to hold a pathname
and the metadata required to interpret it. Callers of namei must now
create a pathbuf and pass it to NDINIT (instead of a string and a
uio_seg), then destroy the pathbuf after the namei session is
complete.

Update all namei call sites accordingly. Add a pathbuf(9) man page and
update namei(9).

The pathbuf interface also now appears in a couple of related
additional places that were passing string/uio_seg pairs that were
later fed into NDINIT. Update other call sites accordingly.

Revision 1.42.2.3 / (download) - annotate - [select for diffs], Fri Oct 22 07:22:51 2010 UTC (13 years, 4 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.42.2.2: +11 -38 lines
Diff to previous 1.42.2.2 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored)

Sync with HEAD (-D20101022).

Revision 1.20.2.9 / (download) - annotate - [select for diffs], Sat Oct 9 03:32:44 2010 UTC (13 years, 4 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.20.2.8: +13 -40 lines
Diff to previous 1.20.2.8 (colored) to branchpoint 1.20 (colored) next main 1.21 (colored)

sync with head

Revision 1.58 / (download) - annotate - [select for diffs], Tue Sep 7 21:11:10 2010 UTC (13 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, uebayasi-xip-base4, uebayasi-xip-base3
Changes since 1.57: +18 -2 lines
Diff to previous 1.57 (colored)

Make the Diabolical (Page)Daemon Director drain vfs buffers when
we are short of memory.

There are still some funnies left to iron out.  For example, with
a certain file system / memory size configuration it's still not
possible to create enough files to make the file system run out of
inodes before the kernel runs out of memory.  Also, with some other
configurations disk access slows down gargantually (though i'm sure
there are >0 buffers available).  Anyway, it ~works for now and
it's by no means worse than what it was before.

Revision 1.57 / (download) - annotate - [select for diffs], Tue Sep 7 17:13:03 2010 UTC (13 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.56: +2 -45 lines
Diff to previous 1.56 (colored)

Retire the prehistoric chroot/cwd interfaces now that there is a
process model in rump.

Revision 1.42.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:48:03 2010 UTC (13 years, 6 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.42.2.1: +59 -10 lines
Diff to previous 1.42.2.1 (colored) to branchpoint 1.42 (colored)

Sync with HEAD.

Revision 1.20.2.8 / (download) - annotate - [select for diffs], Wed Aug 11 22:55:08 2010 UTC (13 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.20.2.7: +72 -13 lines
Diff to previous 1.20.2.7 (colored) to branchpoint 1.20 (colored)

sync with head.

Revision 1.43.2.3 / (download) - annotate - [select for diffs], Sat Jul 3 01:20:03 2010 UTC (13 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.43.2.2: +17 -4 lines
Diff to previous 1.43.2.2 (colored) to branchpoint 1.43 (colored)

sync with head

Revision 1.56 / (download) - annotate - [select for diffs], Wed Jun 30 15:48:59 2010 UTC (13 years, 8 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base10, uebayasi-xip-base2
Changes since 1.55: +4 -2 lines
Diff to previous 1.55 (colored)

Run vfs component constructors.

Revision 1.55 / (download) - annotate - [select for diffs], Thu Jun 24 13:03:18 2010 UTC (13 years, 8 months ago) by hannken
Branch: MAIN
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored)

Clean up vnode lock operations pass 2:

VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.

Welcome to 5.99.32.

Discussed on tech-kern.

Revision 1.54 / (download) - annotate - [select for diffs], Tue Jun 8 21:57:49 2010 UTC (13 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored)

The previous revision worked brilliantly if all you wanted to test
was autoload *not* working with an alternate path.  This revision
make the code double as good in the sense that it now works also
in case you *do* want it to work.

Revision 1.53 / (download) - annotate - [select for diffs], Tue Jun 8 17:17:33 2010 UTC (13 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.52: +14 -3 lines
Diff to previous 1.52 (colored)

Allow to set a non-standard module_base for host kernel module loading.

Revision 1.43.2.2 / (download) - annotate - [select for diffs], Sun May 30 05:18:07 2010 UTC (13 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.43.2.1: +58 -12 lines
Diff to previous 1.43.2.1 (colored) to branchpoint 1.43 (colored)

sync with head

Revision 1.52 / (download) - annotate - [select for diffs], Wed May 26 21:50:56 2010 UTC (13 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.51: +32 -2 lines
Diff to previous 1.51 (colored)

Add public namespace helper routine for dumping info on mountpoints.

Revision 1.51 / (download) - annotate - [select for diffs], Thu May 20 15:46:47 2010 UTC (13 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.50: +10 -2 lines
Diff to previous 1.50 (colored)

open VFS_EXTATTRCTL to user namespace

Revision 1.50 / (download) - annotate - [select for diffs], Tue May 11 14:49:07 2010 UTC (13 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored)

Set default number of vnodes to 1k instead of 64k: a large default
reserves a large amount of memory by default and this is not
desirable in a rump kernel where the typical usage is minimal.
Maybe I should write a few lines to autoscale desiredvnodes up to
a hard limit after the soft limit is reached?

Revision 1.49 / (download) - annotate - [select for diffs], Sat May 1 14:46:32 2010 UTC (13 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.48: +2 -9 lines
Diff to previous 1.48 (colored)

cleanup non-used code (superceded by rump_printevcnts)

Revision 1.48 / (download) - annotate - [select for diffs], Fri Apr 30 21:02:36 2010 UTC (13 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.47: +7 -2 lines
Diff to previous 1.47 (colored)

Autogenerate /dev nodes.  Use (recreate) the naming policy in
MAKEDEV. -- Not the famous irrational file system devfs, but an
incredible simulation.

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:44:30 2010 UTC (13 years, 10 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.42: +16 -4 lines
Diff to previous 1.42 (colored)

Sync with HEAD.

Revision 1.47 / (download) - annotate - [select for diffs], Mon Apr 26 23:43:36 2010 UTC (13 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.46: +11 -2 lines
Diff to previous 1.46 (colored)

Register module_base as an etfs recursive subdirectory.  This means
that rump will autoload kernel modules from the host
/stand/arch/vers/modules directory.

Revision 1.46 / (download) - annotate - [select for diffs], Wed Apr 21 16:51:24 2010 UTC (13 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.45: +2 -3 lines
Diff to previous 1.45 (colored)

Reduce #ifdef spew by attaching wapbl as a module.
(no, it's still too ifdef-ridden to be able to actually do anything
useful and module-like like load into any kernel)

Revision 1.45 / (download) - annotate - [select for diffs], Mon Apr 12 22:19:17 2010 UTC (13 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.44: +4 -2 lines
Diff to previous 1.44 (colored)

Support real file system transactions/suspension (vfs_trans.c)
instead of just stubbing it.

Revision 1.44 / (download) - annotate - [select for diffs], Fri Mar 26 18:21:28 2010 UTC (13 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored)

rootfstype is not a vfs stub, so it doesn't belong in vfs_stubs

Revision 1.43.2.1 / (download) - annotate - [select for diffs], Tue Mar 16 15:38:13 2010 UTC (13 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored)

Change struct uvm_object::vmobjlock to be dynamically allocated with
mutex_obj_alloc().  It allows us to share the locks among UVM objects.

Revision 1.20.2.7 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:39 2010 UTC (13 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.20.2.6: +52 -117 lines
Diff to previous 1.20.2.6 (colored) to branchpoint 1.20 (colored)

sync with head

Revision 1.43 / (download) - annotate - [select for diffs], Fri Mar 5 18:41:46 2010 UTC (13 years, 11 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Changes since 1.42: +4 -2 lines
Diff to previous 1.42 (colored)

Use improved kernel module interfaces: instead of adding + loading
modules in bootstrap, just add them.  Load them later the same way
as the kernel does: module_init_class().

Change the signature of rump_module_init() to take a vector instead
of just one module.  All modules in a DSO should be init'd at the
same time because they might depend on each other, and code outside
the rump kernel cannot know which way.  (binary kernel modules are
still loaded with rump_sys_modctl() the usual way).

Revision 1.42 / (download) - annotate - [select for diffs], Thu Dec 17 00:29:46 2009 UTC (14 years, 2 months ago) by pooka
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.41: +3 -2 lines
Diff to previous 1.41 (colored)

* implement rump_vfs_makeonedevnode(), where the interface for creating
  multiple nodes doesn't make sense: e.g. /dev/null would've had to
  be created with ("/dev/nul", 'l', 1)
* implement said /dev/null (just for show)

Revision 1.41 / (download) - annotate - [select for diffs], Thu Dec 3 15:06:04 2009 UTC (14 years, 2 months ago) by pooka
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.40: +5 -2 lines
Diff to previous 1.40 (colored)

* create /dev on the rump rootfs automatically
* make rump_vfs_makedevnodes() take a full basepath instead of hardcoding
  an assumption that the device node is created in /dev
  + the caller is responsible that the directory the nodes are being
    created in exists

Revision 1.40 / (download) - annotate - [select for diffs], Thu Dec 3 12:52:42 2009 UTC (14 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.39: +3 -2 lines
Diff to previous 1.39 (colored)

Call spec_init() to avoid device open lossage.

Revision 1.39 / (download) - annotate - [select for diffs], Thu Dec 3 12:35:35 2009 UTC (14 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.38: +5 -18 lines
Diff to previous 1.38 (colored)

Decide it's not worth the fuss to have rumpfs as a module and just
hardcode attach into rump_vfs_init().  Saves us from a lot of
pingpong init bouncing from one component to another to get the order
right.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Dec 1 09:56:59 2009 UTC (14 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.37: +7 -4 lines
Diff to previous 1.37 (colored)

call cache_cpu_init() for all cpus

Revision 1.37 / (download) - annotate - [select for diffs], Fri Nov 27 16:43:51 2009 UTC (14 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.36: +7 -12 lines
Diff to previous 1.36 (colored)

Move rootfs-related init from init_main() to vfs_mountroot().
Reduces code re-written in rump.

Revision 1.36 / (download) - annotate - [select for diffs], Thu Nov 26 21:04:42 2009 UTC (14 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.35: +12 -2 lines
Diff to previous 1.35 (colored)

Make sure rumpfs is attached on all host platforms.

Revision 1.35 / (download) - annotate - [select for diffs], Thu Nov 26 20:58:51 2009 UTC (14 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.34: +15 -3 lines
Diff to previous 1.34 (colored)

For rumpfs, do mountroot instead of the bunch of homegrown hacks
currently there.  Still needs a little massage to get the kernel
interfaces right and avoid copypaste especially from main().

Also, move it a bit more into the direction of a real file system
(finally!) by giving it a vfsops.  Most ops are still unimplemented,
though.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Nov 19 14:44:58 2009 UTC (14 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.33: +8 -5 lines
Diff to previous 1.33 (colored)

Create async i/o "interrupt" thread from within the kernel so that
it gets a kernel thread context.

Revision 1.33 / (download) - annotate - [select for diffs], Thu Oct 15 00:34:05 2009 UTC (14 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

rump_cpu is now a pointer

Revision 1.32 / (download) - annotate - [select for diffs], Wed Oct 14 18:18:53 2009 UTC (14 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.31: +29 -29 lines
Diff to previous 1.31 (colored)

"rumppriv" goes back to "rump" per internal interface naming change.

Revision 1.31 / (download) - annotate - [select for diffs], Wed Oct 14 17:29:20 2009 UTC (14 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.30: +30 -29 lines
Diff to previous 1.30 (colored)

Adjust rump sources for external/internal interfaces.
No functional change.

Revision 1.30 / (download) - annotate - [select for diffs], Fri Oct 9 14:41:36 2009 UTC (14 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.29: +9 -2 lines
Diff to previous 1.29 (colored)

Provide an interface for reboot.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Oct 7 09:55:35 2009 UTC (14 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.28: +3 -5 lines
Diff to previous 1.28 (colored)

use vref() for increasing reference count instead of homegrown brilliance

Revision 1.28 / (download) - annotate - [select for diffs], Wed Oct 7 09:50:43 2009 UTC (14 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.27: +2 -99 lines
Diff to previous 1.27 (colored)

g/c some prehistoric interfaces which have been superceded by others.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Oct 6 16:23:03 2009 UTC (14 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.26: +16 -8 lines
Diff to previous 1.26 (colored)

Give a p2k node an internal state.  This allows us to do proper
reference counting and not release nodes based just on puffs'
impression of if they are free.

This also allows us to reclaim vnodes already in inactive if the
file system so desires.  Some file systems, most notably ffs, change
file state already in inactive.  This could lead to a deadlock in
the middle of inactive and reclaim if some other puffs operation
was processed in between (as exposed by haad's open(at) test
program).

Also, properly thread the componentname from lookup to the actual
vnode operation.  This required the changes the rump componentname
routines.  Yes, the rename case is truly mindbogglingly disgusting.
Puke for yourself.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Oct 4 13:29:36 2009 UTC (14 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.25: +9 -9 lines
Diff to previous 1.25 (colored)

Include firmload.  Although it may be used by devices, it's pure
vfs in nature, and therefore it belongs here (can't load a firmware
from a file system without file system support, right?).  Rename
rump_cwdi to cwdi0, since firmload depends on that name (naughty
firmload).

Revision 1.25 / (download) - annotate - [select for diffs], Fri Oct 2 18:50:15 2009 UTC (14 years, 5 months ago) by elad
Branch: MAIN
Changes since 1.24: +4 -3 lines
Diff to previous 1.24 (colored)

First part of secmodel cleanup and other misc. changes:

  - Separate the suser part of the bsd44 secmodel into its own secmodel
    and directory, pending even more cleanups. For revision history
    purposes, the original location of the files was

        src/sys/secmodel/bsd44/secmodel_bsd44_suser.c
        src/sys/secmodel/bsd44/suser.h

  - Add a man-page for secmodel_suser(9) and update the one for
    secmodel_bsd44(9).

  - Add a "secmodel" module class and use it. Userland program and
    documentation updated.

  - Manage secmodel count (nsecmodels) through the module framework.
    This eliminates the need for secmodel_{,de}register() calls in
    secmodel code.

  - Prepare for secmodel modularization by adding relevant module bits.
    The secmodels don't allow auto unload. The bsd44 secmodel depends
    on the suser and securelevel secmodels. The overlay secmodel depends
    on the bsd44 secmodel. As the module class is only cosmetic, and to
    prevent ambiguity, the bsd44 and overlay secmodels are prefixed with
    "secmodel_".

  - Adapt the overlay secmodel to recent changes (mainly vnode scope).

  - Stop using link-sets for the sysctl node(s) creation.

  - Keep sysctl variables under nodes of their relevant secmodels. In
    other words, don't create duplicates for the suser/securelevel
    secmodels under the bsd44 secmodel, as the latter is merely used
    for "grouping".

  - For the suser and securelevel secmodels, "advertise presence" in
    relevant sysctl nodes (sysctl.security.models.{suser,securelevel}).

  - Get rid of the LKM preprocessor stuff.

  - As secmodels are now modules, there's no need for an explicit call
    to secmodel_start(); it's handled by the module framework. That
    said, the module framework was adjusted to properly load secmodels
    early during system startup.

  - Adapt rump to changes: Instead of using empty stubs for securelevel,
    simply use the suser secmodel. Also replace secmodel_start() with a
    call to secmodel_suser_start().

  - 5.99.20.

Testing was done on i386 ("release" build). Spearated module_init()
changes were tested on sparc and sparc64 as well by martin@ (thanks!).

Mailing list reference:

	http://mail-index.netbsd.org/tech-kern/2009/09/25/msg006135.html

Revision 1.20.2.6 / (download) - annotate - [select for diffs], Wed Aug 19 18:48:30 2009 UTC (14 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.20.2.5: +2 -68 lines
Diff to previous 1.20.2.5 (colored) to branchpoint 1.20 (colored)

sync with head.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Aug 3 14:23:30 2009 UTC (14 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7
Changes since 1.23: +2 -68 lines
Diff to previous 1.23 (colored)

* get rid of the old fakeblk registration interface.  Instead,
  introduce a new and improved "etfs" interface, which can be used
  to register host files accessible from rump fs namespace.  This
  new interface is not restriced to block devices, and neither does
  it require the same pathname in host namespace and rump namespace.
  Therefore, the same host file can be represented both as a char
  and block device in rump namespace.

* adjust rumpblk to make the above possible

* improve rumpfs: nodes are now created properly and not implicitly
  tied to the vnode lifecycle

Revision 1.12.2.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:32:55 2009 UTC (14 years, 7 months ago) by jym
Branch: jym-xensuspend
Changes since 1.12.2.1: +3 -6 lines
Diff to previous 1.12.2.1 (colored) next main 1.13 (colored)

Sync with HEAD.

Revision 1.20.2.5 / (download) - annotate - [select for diffs], Sat Jul 18 14:53:26 2009 UTC (14 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.20.2.4: +3 -6 lines
Diff to previous 1.20.2.4 (colored) to branchpoint 1.20 (colored)

sync with head.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jun 29 07:11:06 2009 UTC (14 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6, jymxensuspend-base
Changes since 1.22: +3 -6 lines
Diff to previous 1.22 (colored)

Another namei_simple like the previous ones; was added after I did the
initial sweep and I guess I missed it while merging.

Revision 1.20.2.4 / (download) - annotate - [select for diffs], Sat Jun 20 07:20:36 2009 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.20.2.3: +2 -2 lines
Diff to previous 1.20.2.3 (colored) to branchpoint 1.20 (colored)

sync with head

Revision 1.22 / (download) - annotate - [select for diffs], Fri May 22 08:26:52 2009 UTC (14 years, 9 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

fix __KERNEL_RCSID

Revision 1.20.2.3 / (download) - annotate - [select for diffs], Sat May 16 10:41:52 2009 UTC (14 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.20.2.2: +5 -7 lines
Diff to previous 1.20.2.2 (colored) to branchpoint 1.20 (colored)

sync with head

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:22:58 2009 UTC (14 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.12: +53 -23 lines
Diff to previous 1.12 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.21 / (download) - annotate - [select for diffs], Mon May 4 14:31:25 2009 UTC (14 years, 9 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4, jym-xensuspend-base
Changes since 1.20: +5 -7 lines
Diff to previous 1.20 (colored)

Nuke RUMPCN_HASNTBUF.  The inspiration behind it must've been ... deep.

Revision 1.20.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:14:31 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.20.2.1: +604 -0 lines
Diff to previous 1.20.2.1 (colored) to branchpoint 1.20 (colored)

sync with head.

Revision 1.20.2.1, Sun May 3 17:09:49 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.20: +0 -604 lines
FILE REMOVED

file rump_vfs.c was added on branch yamt-nfs-mp on 2009-05-04 08:14:31 +0000

Revision 1.20 / (download) - annotate - [select for diffs], Sun May 3 17:09:49 2009 UTC (14 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3
Branch point for: yamt-nfs-mp
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

Rename rump_cred_destroy() to rump_cred_put() -- they've been
refcounted since forever now.

Revision 1.19 / (download) - annotate - [select for diffs], Sun May 3 16:01:44 2009 UTC (14 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.18: +18 -1 lines
Diff to previous 1.18 (colored)

Add rump_vfs_getmp(), which returns struct mount for a given path.
(yes, it does not take a reference to the mountpoint)

Revision 1.18 / (download) - annotate - [select for diffs], Fri May 1 11:01:34 2009 UTC (14 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.17: +4 -2 lines
Diff to previous 1.17 (colored)

in case of error, return instead of continuing

Revision 1.17 / (download) - annotate - [select for diffs], Wed Apr 29 15:49:01 2009 UTC (14 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.16: +3 -1 lines
Diff to previous 1.16 (colored)

Use cwdinit() for proc0's cwdi.

Revision 1.11.4.4 / (download) - annotate - [select for diffs], Tue Apr 28 07:37:51 2009 UTC (14 years, 10 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.11.4.3: +26 -7 lines
Diff to previous 1.11.4.3 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored)

Sync with HEAD.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Apr 26 21:36:24 2009 UTC (14 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Changes since 1.15: +13 -4 lines
Diff to previous 1.15 (colored)

* set syncdelay to 0 only if we don't have a syncer thread
* add some #if0'd debug code to unmount for printing event counters

Revision 1.15 / (download) - annotate - [select for diffs], Sat Apr 18 16:33:37 2009 UTC (14 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.14: +11 -1 lines
Diff to previous 1.14 (colored)

If running in multithreaded mode, create sched_sync thread.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Mar 18 10:22:45 2009 UTC (14 years, 11 months ago) by cegger
Branch: MAIN
Changes since 1.13: +4 -4 lines
Diff to previous 1.13 (colored)

Ansify function definitions w/o arguments. Generated with sed.

Revision 1.11.4.3 / (download) - annotate - [select for diffs], Tue Mar 3 18:34:30 2009 UTC (15 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.11.4.2: +1 -11 lines
Diff to previous 1.11.4.2 (colored) to branchpoint 1.11 (colored)

Sync with HEAD.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Feb 22 20:28:06 2009 UTC (15 years ago) by ad
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Changes since 1.12: +1 -9 lines
Diff to previous 1.12 (colored)

PR kern/26878 FFSv2 + softdep = livelock (no free ram)
PR kern/16942 panic with softdep and quotas
PR kern/19565 panic: softdep_write_inodeblock: indirect pointer #1 mismatch
PR kern/26274 softdep panic: allocdirect_merge: ...
PR kern/26374 Long delay before non-root users can write to softdep partitions
PR kern/28621 1.6.x "vp != NULL" panic in ffs_softdep.c:4653 while unmounting a softdep (+quota) filesystem
PR kern/29513 FFS+Softdep panic with unfsck-able file-corruption
PR kern/31544 The ffs softdep code appears to fail to write dirty bits to disk
PR kern/31981 stopping scsi disk can cause panic (softdep)
PR kern/32116 kernel panic in softdep (assertion failure)
PR kern/32532 softdep_trackbufs deadlock
PR kern/37191 softdep: locking against myself
PR kern/40474 Kernel panic after remounting raid root with softdep

Retire softdep, pass 2. As discussed and later formally announced on the
mailing lists.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Feb 6 20:01:41 2009 UTC (15 years ago) by pooka
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.11: +1 -3 lines
Diff to previous 1.11 (colored)

Rip out the rwlock spl emulation code.  It never did anything useful
except keep my feet warm by consuming an insane amount of cpu
cycles -- in rump our current "cpu" context is never interrupted
& we have MULTIPROCESSOR.

(itch i'm scratching: it made the networking stack 10-20% slower.
this is one of the places where fast code actually matters)

Revision 1.11.4.2 / (download) - annotate - [select for diffs], Mon Jan 19 13:20:27 2009 UTC (15 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.11.4.1: +574 -0 lines
Diff to previous 1.11.4.1 (colored) to branchpoint 1.11 (colored)

Sync with HEAD.

Revision 1.11.2.2 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:38 2009 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.11.2.1: +574 -0 lines
Diff to previous 1.11.2.1 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored)

Sync with HEAD.

Revision 1.11.4.1, Tue Jan 13 11:40:55 2009 UTC (15 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.11: +0 -574 lines
FILE REMOVED

file rump_vfs.c was added on branch nick-hppapmap on 2009-01-19 13:20:27 +0000

Revision 1.11.2.1, Tue Jan 13 11:40:55 2009 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.11: +0 -574 lines
FILE REMOVED

file rump_vfs.c was added on branch mjf-devfs2 on 2009-01-17 13:29:38 +0000

Revision 1.11 / (download) - annotate - [select for diffs], Tue Jan 13 11:40:55 2009 UTC (15 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: mjf-devfs2-base
Branch point for: nick-hppapmap, mjf-devfs2
Changes since 1.10: +4 -1 lines
Diff to previous 1.10 (colored)

lf_init()

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jan 13 02:03:13 2009 UTC (15 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.9: +9 -1 lines
Diff to previous 1.9 (colored)

misc cleanup, mainly header polish

Revision 1.9 / (download) - annotate - [select for diffs], Tue Jan 13 01:57:35 2009 UTC (15 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.8: +2 -7 lines
Diff to previous 1.8 (colored)

Implement block I/O as a real block driver instead of a hacked copy
of specfs.  That was easier years ago when rump didn't support
devices, but brings no gain now.  This allows us to include the
real specfs in rump.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Dec 31 00:57:45 2008 UTC (15 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.7: +1 -2 lines
Diff to previous 1.7 (colored)

yank debug printf from previous

Revision 1.7 / (download) - annotate - [select for diffs], Wed Dec 31 00:57:15 2008 UTC (15 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.6: +20 -6 lines
Diff to previous 1.6 (colored)

Reset proc0 cwdi after unmount.  Makes is possible to mount/unmount/mount
in one process.
(XXX: this code is still horrible)

problem reported by stacktic

Revision 1.6 / (download) - annotate - [select for diffs], Mon Dec 29 20:39:49 2008 UTC (15 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.5: +9 -1 lines
Diff to previous 1.5 (colored)

Register a dummy block device for rump, since some file systems do
a sanity check to see if the block device exists.  This dummy block
device should eventually replace rump specfs.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Dec 18 00:24:13 2008 UTC (15 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.4: +4 -1 lines
Diff to previous 1.4 (colored)

__KERNEL_RCSID

Revision 1.4 / (download) - annotate - [select for diffs], Thu Nov 27 16:40:40 2008 UTC (15 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

* hang all mountpoints from rootvnode in our virtual mount hierarchy
* set VV_ROOT for the rootvnode to make getcwd realize it has met
  its journey's end

Revision 1.3 / (download) - annotate - [select for diffs], Tue Nov 25 20:35:46 2008 UTC (15 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

Take reference for proc0 rootdir vnode.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Nov 21 06:09:52 2008 UTC (15 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.1: +1 -11 lines
Diff to previous 1.1 (colored)

rump_vfs_load() is really rump_module_load(), so call it that and
move it from rumpvfs to rumpkern.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Nov 19 14:10:49 2008 UTC (15 years, 3 months ago) by pooka
Branch: MAIN

Split vfs out of rumpkern into rumpvfs.  Non-fs rumps no longer
include the file system code.  File system rumps explicitly need
to include rumpvfs from now on.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>