osv-apps: update for jenkins integration

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
scripts: Add script to generate OSv VMware configuration

./scripts/gen-vmx.sh will create build/release/osv.vmx
You can run this VM image on VMware by executing following command:
vmware build/release/osv.vmx

Signed-off-by: Takuya ASADA <syuu@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
mmu: read page content before populating page table

Page should not be accessible through a page table before it contains
valid data, otherwise a thread running on another vcpu can see garbage.
We rely on zfs file prefetch mechanism to minimize actual disk IO for
mmap_populate mappings. In the feature this will be replaced with proper
page cache integration.

Fixes #228

Signed-off-by: Gleb Natapov <gleb@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
Revert "vfs/zfs: Sync vnode and znode refcounts"

This reverts commit ca805bdb48465fdc7dbd46e1c4eee2e64d7c6d1e.

The commit breaks Cassandra startup as follows:

   INFO 09:18:00,244 Opening /var/lib/cassandra/data/system/local/system-local-jb-5 (5677 bytes)
  page fault outside application, addr 0
  [backtrace]
  0x31899b <mmu::vm_fault(unsigned long, exception_frame*)+219>
  0x34c105 <page_fault+101>
  0x34acc7 <ex_pf+35>
  0x391e94 <vn_stat+132>
  0x3935c9 <sys_stat+41>
  0x38a4ee <__xstat+78>

Raphael explains:

  I found that the following commit
  ca805bdb48465fdc7dbd46e1c4eee2e64d7c6d1e is the guilty one. It correctly
  fixes some mismatches between znode and vnode refcnts, then moves
  VOP_INACTIVE from vrele to keep them synchronized. This change assumes
  that there is no mismatch anymore.

  However, there is apparently a corner-case that the patch doesn't
  address. Example: If the vnode is one refcnt ahead of the respective
  znode, on an eventual vrele, the znode would be destroyed while the
  vnode is still alive. zfs_getattr attempts to dereference the field of
  the znode which doesn't exist anymore, thus the page fault.

As it's a regression, revert the commit for now.

Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
Merge remote-tracking branch 'origin/master' into dev

Conflicts:
	apps