]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: fix return value for reserved EFER
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 May 2019 19:52:46 +0000 (21:52 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 May 2019 19:55:02 +0000 (21:55 +0200)
commit2d8bdaef7d5ff77139da5c1cbe1b09bacf27c397
tree96fb2e0f01ced798d2d758908f05e8b15cb55ce8
parent8b9dd75ebc8870140a60c3427f3a8111b447e74c
KVM: x86: fix return value for reserved EFER

Commit 4aaf930c493e ("KVM: x86: Skip EFER vs. guest CPUID checks for
host-initiated writes", 2019-04-02) introduced a "return false" in a
function returning int, and anyway set_efer has a "nonzero on error"
conventon so it should be returning 1.

Reported-by: Pavel Machek <pavel@denx.de>
Fixes: 4aaf930c493e ("KVM: x86: Skip EFER vs. guest CPUID checks for host-initiated writes")
Cc: Sean Christopherson <sean.j.christopherson@intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c