]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Avoid referencing userspace memory region in memslot updates
authorSean Christopherson <seanjc@google.com>
Mon, 6 Dec 2021 19:54:14 +0000 (20:54 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Dec 2021 09:24:22 +0000 (04:24 -0500)
commite7a125d13f6f122679eb7d94024598e64cc21cc5
treee6c1c5c34f12725e3030d2da0002a7a58a9bbc79
parent5b7893205689ff1e40156c9a87928d053cd40d8b
KVM: PPC: Avoid referencing userspace memory region in memslot updates

For PPC HV, get the number of pages directly from the new memslot instead
of computing the same from the userspace memory region, and explicitly
check for !DELETE instead of inferring the same when toggling mmio_update.
The motivation for these changes is to avoid referencing the @mem param
so that it can be dropped in a future commit.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Message-Id: <1e97fb5198be25f98ef82e63a8d770c682264cc9.1638817639.git.maciej.szmigiero@oracle.com>
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kvm/book3s.c
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_pr.c
arch/powerpc/kvm/booke.c
arch/powerpc/kvm/powerpc.c