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>