mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-17 20:54:10 +00:00
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
This commit is contained in:
parent
cad32d9d42
commit
29592181c5
1 changed files with 6 additions and 0 deletions
|
@ -433,9 +433,12 @@ int kvmppc_hcall_impl_pr(unsigned long cmd)
|
||||||
case H_REMOVE:
|
case H_REMOVE:
|
||||||
case H_PROTECT:
|
case H_PROTECT:
|
||||||
case H_BULK_REMOVE:
|
case H_BULK_REMOVE:
|
||||||
|
#ifdef CONFIG_SPAPR_TCE_IOMMU
|
||||||
|
case H_GET_TCE:
|
||||||
case H_PUT_TCE:
|
case H_PUT_TCE:
|
||||||
case H_PUT_TCE_INDIRECT:
|
case H_PUT_TCE_INDIRECT:
|
||||||
case H_STUFF_TCE:
|
case H_STUFF_TCE:
|
||||||
|
#endif
|
||||||
case H_CEDE:
|
case H_CEDE:
|
||||||
case H_LOGICAL_CI_LOAD:
|
case H_LOGICAL_CI_LOAD:
|
||||||
case H_LOGICAL_CI_STORE:
|
case H_LOGICAL_CI_STORE:
|
||||||
|
@ -464,7 +467,10 @@ static unsigned int default_hcall_list[] = {
|
||||||
H_REMOVE,
|
H_REMOVE,
|
||||||
H_PROTECT,
|
H_PROTECT,
|
||||||
H_BULK_REMOVE,
|
H_BULK_REMOVE,
|
||||||
|
#ifdef CONFIG_SPAPR_TCE_IOMMU
|
||||||
|
H_GET_TCE,
|
||||||
H_PUT_TCE,
|
H_PUT_TCE,
|
||||||
|
#endif
|
||||||
H_CEDE,
|
H_CEDE,
|
||||||
H_SET_MODE,
|
H_SET_MODE,
|
||||||
#ifdef CONFIG_KVM_XICS
|
#ifdef CONFIG_KVM_XICS
|
||||||
|
|
Loading…
Add table
Reference in a new issue