mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 03:52:37 +00:00
swiotlb passes virtual addresses to set_memory_encrypted() and set_memory_decrypted(), but uv_remove_shared() and uv_set_shared() expect physical addresses. This currently works, because virtual and physical addresses are the same. Add virt_to_phys() to resolve the virtual-physical confusion. Reported-by: Marc Hartmayer <[email protected]> Signed-off-by: Nico Boehr <[email protected]> Reviewed-by: Claudio Imbrenda <[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]>
13 lines
304 B
C
13 lines
304 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef S390_MEM_ENCRYPT_H__
|
|
#define S390_MEM_ENCRYPT_H__
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
int set_memory_encrypted(unsigned long vaddr, int numpages);
|
|
int set_memory_decrypted(unsigned long vaddr, int numpages);
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
#endif /* S390_MEM_ENCRYPT_H__ */
|