Commit 68f4f0b0 authored by Mukesh Pilaniya's avatar Mukesh Pilaniya Committed by Treehugger Robot
Browse files

ANDROID: virt: gunyah: Fix ADDRSPACE_VMMIO_CONFIGURE hypercall handling



The ADDRSPACE_VMMIO_CONFIGURE hypercall might be implemented but does
not allow the guest to nominate VMMIO regions. The current
implementation bails out only if the hypercall is not implemented.
If the firmware implements the hypercall but returns an insufficient
permission error, it could cause ioremap() to fail on the guest.
Fix this by checking against GUNYAH_ERROR_CSPACE_INSUF_RIGHTS error
code.

Bug: 427643547
Change-Id: I79faf8db580dca12a46d29f870b73a2af5e4cde6
Signed-off-by: default avatarMukesh Pilaniya <quic_mpilaniy@quicinc.com>
parent 153a0a38
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment