Commit 3c121274 authored by Elliot Berman's avatar Elliot Berman Committed by Treehugger Robot
Browse files

BACKPORT: FROMLIST: virt: gunyah: Add hypercalls to identify Gunyah

Add hypercalls to identify when Linux is running in a virtual machine
under Gunyah.

There are two calls to help identify Gunyah:

1. gh_hypercall_get_uid() returns a UID when running under a Gunyah
   hypervisor.
2. gh_hypercall_hyp_identify() returns build information and a set of
   feature flags that are supported by Gunyah.

Bug: 338347082
Link: https://lore.kernel.org/all/20240222-gunyah-v17-4-1e9da6763d38@quicinc.com/


Change-Id: I272957ef883fde18db67c5130750190a33ec3f13
Reviewed-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reviewed-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarElliot Berman <quic_eberman@quicinc.com>
Signed-off-by: default avatarSreenad Menon <quic_sreemeno@quicinc.com>
parent 13577348
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment