]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Make HPT-specific hypercalls return error in radix mode
authorPaul Mackerras <paulus@ozlabs.org>
Mon, 30 Jan 2017 10:21:49 +0000 (21:21 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 31 Jan 2017 08:11:50 +0000 (19:11 +1100)
commit49e8807b25082981f1ec2ad2e2695474e97b8030
treef4e7b85938fb8bb8063a7e8ca3911292678f613b
parent23c3238b3d5945ff92eaa4675f8b2cc54c5b988a
KVM: PPC: Book3S HV: Make HPT-specific hypercalls return error in radix mode

If the guest is in radix mode, then it doesn't have a hashed page
table (HPT), so all of the hypercalls that manipulate the HPT can't
work and should return an error.  This adds checks to make them
return H_FUNCTION ("function not supported").

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kvm/book3s_hv_rm_mmu.c