summaryrefslogtreecommitdiff
path: root/arch/s390/kvm/sigp.c
diff options
context:
space:
mode:
authorPaul Durrant <pdurrant@amazon.com>2024-02-15 18:29:02 +0300
committerSean Christopherson <seanjc@google.com>2024-02-20 18:37:44 +0300
commit406c10962a4cbb1e04aa7993ea466db1a4533ae4 (patch)
tree5e1a2f2874d1c0d094c15607077e3dcfcfdb275c /arch/s390/kvm/sigp.c
parent53e63e953e14a66b7d0d7e9c616cd602f3da9291 (diff)
downloadlinux-406c10962a4cbb1e04aa7993ea466db1a4533ae4.tar.xz
KVM: pfncache: include page offset in uhva and use it consistently
Currently the pfncache page offset is sometimes determined using the gpa and sometimes the khva, whilst the uhva is always page-aligned. After a subsequent patch is applied the gpa will not always be valid so adjust the code to include the page offset in the uhva and use it consistently as the source of truth. Also, where a page-aligned address is required, use PAGE_ALIGN_DOWN() for clarity. No functional change intended. Signed-off-by: Paul Durrant <pdurrant@amazon.com> Reviewed-by: David Woodhouse <dwmw@amazon.co.uk> Link: https://lore.kernel.org/r/20240215152916.1158-8-paul@xen.org Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'arch/s390/kvm/sigp.c')
0 files changed, 0 insertions, 0 deletions