vkernel - Improve memory image file startup
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 14 Sep 2010 22:59:28 +0000 (15:59 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 14 Sep 2010 22:59:28 +0000 (15:59 -0700)
commitb72e51d1c25ac5e8162f41e1a83d2f263672ea73
treedd9087f897343552bf7631d8bd9d86d63652bd25
parent4fbf05f972ecaeee1d81e85f6a69c42d4b3c1f69
vkernel - Improve memory image file startup

* Remove the code that pre-filled a memory image file with zeros.  It's
  completely worthless, particularly with HAMMER.

* On startup truncate the memory file to 0 and then extend to the
  memory size, deleting any backing store from the prior vkernel run.
  The new file will start out full of holes.

  This greatly improves vkernel startup time.
sys/platform/vkernel/platform/init.c
sys/platform/vkernel64/platform/init.c