mirror of
https://github.com/torvalds/linux.git
synced 2024-12-05 02:23:16 +00:00
e95d8eaee2
The ARCH_FEATURES function ID is a 32-bit SMC call, which returns
a 32-bit result per the SMCCC spec. Current code is doing a 64-bit
comparison against -1 (SMCCC_RET_NOT_SUPPORTED) to detect that the
feature is unimplemented. That check doesn't work in a Hyper-V VM,
where the upper 32-bits are zero as allowed by the spec.
Cast the result as an 'int' so the comparison works. The change also
makes the code consistent with other similar checks in this file.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
kvm_guest.c | ||
Makefile | ||
smccc.c | ||
soc_id.c |