]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3s: PR: Enable default TCE hypercalls
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Fri, 6 May 2022 07:37:37 +0000 (17:37 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 18 May 2022 14:44:15 +0000 (00:44 +1000)
commit9164d62ef6f52d8ce356e909b3fa707c6a0721ad
tree16e5ec9ce5b494d0319322ea276539e579f5f4ed
parent76edab5051d4f42f84213e1747c7ba22a56de402
KVM: PPC: Book3s: PR: Enable default TCE hypercalls

When KVM_CAP_PPC_ENABLE_HCALL was introduced, H_GET_TCE and H_PUT_TCE
were already implemented and enabled by default; however H_GET_TCE
was missed out on PR KVM (probably because the handler was in
the real mode code at the time).

This enables H_GET_TCE by default. While at this, this wraps
the checks in ifdef CONFIG_SPAPR_TCE_IOMMU just like HV KVM.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Fabiano Rosas <farosas@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220506073737.3823347-1-aik@ozlabs.ru
arch/powerpc/kvm/book3s_pr_papr.c