diff options
author | Nico Boehr <[email protected]> | 2022-10-25 10:20:39 +0200 |
---|---|---|
committer | Janosch Frank <[email protected]> | 2022-10-26 14:28:55 +0200 |
commit | 77b533411595668659ce5aaade4ca36c7aa2c488 (patch) | |
tree | 915b95c9d77ffe5b908af6dcb24fed499a4a248c /lib/mpi/mpi-mod.c | |
parent | 4435b79a366495a5cb43b792d9e7d69d489428cd (diff) |
KVM: s390: VSIE: sort out virtual/physical address in pin_guest_page
pin_guest_page() used page_to_virt() to calculate the hpa of the pinned
page. This currently works, because virtual and physical addresses are
the same. Use page_to_phys() instead to resolve the virtual-real address
confusion.
One caller of pin_guest_page() actually expected the hpa to be a hva, so
add the missing phys_to_virt() conversion here.
Signed-off-by: Nico Boehr <[email protected]>
Reviewed-by: Claudio Imbrenda <[email protected]>
Acked-by: David Hildenbrand <[email protected]>
Reviewed-by: Christian Borntraeger <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Message-Id: <[email protected]>
Signed-off-by: Janosch Frank <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions