Skip to content

Commit 4bc8ff6

Browse files
iamjpnmpe
authored andcommitted
KVM: PPC: Book3S HV nestedv2: Do not call H_COPY_TOFROM_GUEST
H_COPY_TOFROM_GUEST is part of the nestedv1 API and so should not be called by a nestedv2 host. Do not attempt to call it. Signed-off-by: Jordan Niethe <jniethe5@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20231201132618.555031-10-vaibhav@linux.ibm.com
1 parent a9a3de5 commit 4bc8ff6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

arch/powerpc/kvm/book3s_64_mmu_radix.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ unsigned long __kvmhv_copy_tofrom_guest_radix(int lpid, int pid,
4040
unsigned long quadrant, ret = n;
4141
bool is_load = !!to;
4242

43+
if (kvmhv_is_nestedv2())
44+
return H_UNSUPPORTED;
45+
4346
/* Can't access quadrants 1 or 2 in non-HV mode, call the HV to do it */
4447
if (kvmhv_on_pseries())
4548
return plpar_hcall_norets(H_COPY_TOFROM_GUEST, lpid, pid, eaddr,

0 commit comments

Comments
 (0)