Enable H_CLEAR_MOD and H_CLEAR_REF hypercalls on KVM/PPC64.
commit5145ad4fad099983887c6e6caa2354376005226f
authorNathan Whitehorn <nwhitehorn@freebsd.org>
Tue, 30 Aug 2016 01:02:47 +0000 (30 01:02 +0000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 23 Sep 2016 02:39:07 +0000 (23 12:39 +1000)
tree2af7306cf7535e4e5f55172303cf14c90b975fdf
parentd76ab5e1c7db5f064700b9c3cb0924ccfd9017e5
Enable H_CLEAR_MOD and H_CLEAR_REF hypercalls on KVM/PPC64.

These are mandatory per PAPR and available on Linux 4.3 and newer kernels. The calls in question are required to run FreeBSD guests with reasonable performance, so enable them if possible.

Signed-off-by: Nathan Whitehorn <nwhitehorn@freebsd.org>
[dwg: Added a stub to fix compile without KVM (e.g. on x86 host)]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c
target-ppc/kvm.c
target-ppc/kvm_ppc.h