Commit 3b153dab authored by Mostafa Saleh's avatar Mostafa Saleh Committed by Will Deacon
Browse files

ANDROID: KVM: arm64: Don't double account relinquished page



When a page is relinquished by a guest, the pins would be dropped
from pkvm_host_reclaim_page() and it will be unmapped from the guest.
Later, at teardown, if page was unmapped from guest the reclaim
return -ENOENT, in that case we don't need to decrement the pins
again.

Bug: 345727590
Bug: 278749606
Change-Id: Iad07b7689163d6e967d673322bc54a98cb03179a
Signed-off-by: default avatarMostafa Saleh <smostafa@google.com>
parent a3ef4dee
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment