KVM: async_pf: change kvm_setup_async_pf()/kvm_arch_setup_async_pf() return type...
authorVitaly Kuznetsov <vkuznets@redhat.com>
Mon, 15 Jun 2020 12:13:34 +0000 (14:13 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jul 2020 20:21:36 +0000 (16:21 -0400)
commite8c22266e68f0db2a7e11b0a9f29fd88ec0cfd4a
treeb35cb937fff5d1a4e5b3d27124c79b94873065db
parent9ce372b33a2ebbd0b965148879ae169a0015d3f3
KVM: async_pf: change kvm_setup_async_pf()/kvm_arch_setup_async_pf() return type to bool

Unlike normal 'int' functions returning '0' on success, kvm_setup_async_pf()/
kvm_arch_setup_async_pf() return '1' when a job to handle page fault
asynchronously was scheduled and '0' otherwise. To avoid the confusion
change return type to 'bool'.

No functional change intended.

Suggested-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20200615121334.91300-1-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/s390/kvm/kvm-s390.c
arch/x86/kvm/mmu/mmu.c
include/linux/kvm_host.h
virt/kvm/async_pf.c