@@ -391,7 +391,7 @@ static int __init early_set_memory_enc_dec(unsigned long vaddr,
ret = 0;
- notify_range_enc_status_changed(start, PAGE_ALIGN(size) >> PAGE_SHIFT, enc);
+ notify_range_enc_status_changed(start, size, enc);
out:
__flush_tlb_all();
return ret;
@@ -1984,7 +1984,7 @@ static int __set_memory_enc_dec(unsigned long addr, int numpages, bool enc)
* Notify hypervisor that a given memory range is mapped encrypted
* or decrypted.
*/
- notify_range_enc_status_changed(addr, numpages, enc);
+ notify_range_enc_status_changed(addr, numpages << PAGE_SHIFT, enc);
return ret;
}
BugLink: https://bugs.launchpad.net/bugs/2040337 ac3f9c9f1b37 introduced change to notify_range_enc_status_changed() to accept page size instead of number of pages, but function was not updated. Signed-off-by: John Cabaj <john.cabaj@canonical.com> --- arch/x86/mm/mem_encrypt.c | 2 +- arch/x86/mm/pageattr.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)