Commit d5bcbaa8 authored by Elliot Berman's avatar Elliot Berman
Browse files

ANDROID: virt: gunyah: Correct n_mem_entries calculation in gunyah_gup_share_parcel



gunyah_gup_share_parcel incorrectly calculates n_mem_entries and places
items into the mem_entries array. To save number of bytes sent to RM, we
describe only folios -- not individual pages. We incorrectly filled the
mem_entries array with some entries as 0's. Track insertion into the
mem_entries array with new indexer: entries.

Bug: 358605784
Bug: 367452992
Fixes: 296cceed ("ANDROID: virt: gunyah: Add gup based demand paging support")
Change-Id: I4738874579136a834bed86daba6d70e469512656
Signed-off-by: default avatarElliot Berman <quic_eberman@quicinc.com>
(cherry picked from commit b9a812a2)
parent 32a68c6f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment