mmu: re-enable clear_pte() tracepoint

Signed-off-by: Gleb Natapov <gleb@cloudius-systems.com>
Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
pagecache: trace dirty page eviction

Signed-off-by: Gleb Natapov <gleb@cloudius-systems.com>
Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
mmu: inject SIGBUS if a file is accessed beyond its end via mmap

This behaviour is undefined, but Linux injects SIGBUS and it is better
than fail in a mysterious assert inside zfs code like we do now.

Signed-off-by: Gleb Natapov <gleb@cloudius-systems.com>
Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
mmu: align vma range end address to a page size

Signed-off-by: Gleb Natapov <gleb@cloudius-systems.com>
Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
mmu: do not populate addresses beyond file size during mmap(MAP_POPULATE)

Attempt to do so fails with an assert deep in a zfs code.

Signed-off-by: Gleb Natapov <gleb@cloudius-systems.com>
Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
smp-boot-x64: fix switch to long mode

This patch clears read only bits from EFER value
before writing it to the register.

Write of EFER value with read-only bit 10 set on ESXi 5.0
lead to VCPU reset. As a result OSv failed to boot with
more than 1 VCPUs.

The problem does not affect newer VMWare hypervisors -
ESXi 5.5 and latest VMWare player and worstation suceeded to boot
in SMP configuration.

Other hypervisors like KVM and Xen do not look affected as well.

Signed-off-by: Dmitry Fleytman <dmitry@daynix.com>
Reviewed-by: Glauber Costa <glommer@cloudius-systems.com>
Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
net: increase the minimum allocation size of the mbuf for TCP xmit

Increase the minimum mbuf allocation size in the TCP xmit flow to MCLBYTES (2048 bytes, before
the minimum allocation size for data mbuf's was 256 bytes).

The consequent data buffers are compressed into the same mbuf in sbcompress() and therefore
this patch will, first, prevent the creation of enormous TCP mbuf clusters (256 elements for the
biggest LSO packet of 64K) and will keep them around the sane 32 elements.

Secondly, bigger mbuf cluster elements will let the HV work more efficiently when it needs
to copy them.

Signed-off-by: Vlad Zolotarov <vladz@cloudius-systems.com>
Signed-off-by: Avi Kivity <avi@cloudius-systems.com>