Commit 34c31ccd authored by Vincent Donnefort's avatar Vincent Donnefort Committed by Treehugger Robot
Browse files

ANDROID: KVM: Fix missing_donations for pKVM heap alloc



Because having to top-up the hypervisor heap alloc with more than 255
pages is a rare endeavour and to space a bit of space, the per-CPU
missing donation variable is capped to 8-bits.

Sadly a broken macro lead to that variable being truncated after 8-bits
and not limited to... which means 256 missing donations would end-up
being 0 for the host.

Bug: 278749606
Bug: 273748186
Fixes: dd637d6e ("ANDROID: KVM: arm64: Allow to read missing donations for pKVM heap alloc")
Change-Id: I170f78c4ede2b0f3251d3077768d2a9a6ffddeb4
Signed-off-by: default avatarVincent Donnefort <vdonnefort@google.com>
parent d3cb9513
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment