diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2017-03-27 16:22:19 +1100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2017-04-26 12:00:41 +1000 |
commit | 3dc410ae83e6cb76c81ea30a05d62596092b3165 (patch) | |
tree | 80df255985a95fb0b93fa8edb97e78353cef8565 /hw/ppc | |
parent | e957f6a9b92439a222ecd4ff1c8cdc9700710c72 (diff) | |
download | qemu-3dc410ae83e6cb76c81ea30a05d62596092b3165.zip qemu-3dc410ae83e6cb76c81ea30a05d62596092b3165.tar.gz qemu-3dc410ae83e6cb76c81ea30a05d62596092b3165.tar.bz2 |
target-ppc/kvm: Enable in-kernel TCE acceleration for multi-tce
This enables in-kernel handling of H_PUT_TCE_INDIRECT and
H_STUFF_TCE hypercalls. The host kernel support is there since v4.6,
in particular d3695aa4f452
("KVM: PPC: Add support for multiple-TCE hcalls").
H_PUT_TCE is already accelerated and does not need any special enablement.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/ppc')
-rw-r--r-- | hw/ppc/spapr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index a355512..8749f1b 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -2361,10 +2361,12 @@ static void ppc_spapr_init(MachineState *machine) qemu_register_boot_set(spapr_boot_set, spapr); - /* to stop and start vmclock */ if (kvm_enabled()) { + /* to stop and start vmclock */ qemu_add_vm_change_state_handler(cpu_ppc_clock_vm_state_change, &spapr->tb); + + kvmppc_spapr_enable_inkernel_multitce(); } } |