OSDN Git Service

kvm: x86: Do not release the page inside mmu_set_spte()
authorJunaid Shahid <junaids@google.com>
Fri, 4 Jan 2019 00:22:21 +0000 (16:22 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 5 Jul 2019 11:48:46 +0000 (13:48 +0200)
commit43fdcda96e2550c6d1c46fb8a78801aa2f7276ed
tree8b7a1b7a953038ec917f9bf3e1c070fc166e0d49
parent60cec433c485564bd7caac38a9df5c1ed79ee560
kvm: x86: Do not release the page inside mmu_set_spte()

Release the page at the call-site where it was originally acquired.
This makes the exit code cleaner for most call sites, since they
do not need to duplicate code between success and the failure
label.

Signed-off-by: Junaid Shahid <junaids@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/paging_tmpl.h