KVM: PPC: Enable compatibility mode
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Fri, 23 May 2014 02:26:58 +0000 (12:26 +1000)
committerAlexander Graf <agraf@suse.de>
Mon, 16 Jun 2014 11:24:38 +0000 (13:24 +0200)
commit6db5bb0f547b0a0889e8c2ee330f789916813e94
treeb613f4bbad7641fc7fc7f25d5f7e83c99a2612cd
parent3794d5482d74dc0031cee6d5be2c61c88ca723bd
KVM: PPC: Enable compatibility mode

The host kernel implements a KVM_REG_PPC_ARCH_COMPAT register which
this uses to enable a compatibility mode if any chosen.

This sets the KVM_REG_PPC_ARCH_COMPAT register in KVM. ppc_set_compat()
signals the caller if the mode cannot be enabled by the host kernel.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
[agraf: fix TCG compat setting]
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/kvm.c
target-ppc/kvm_ppc.h
target-ppc/translate_init.c