]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:44:44 +0000 (06:44 -0700)
commit312de8445d968d1010ff81ea708fe1762db60ffc
tree26391d08210bc8a3b4e271f0070c6661c4a6f7cf
parent41667c1c6f6a26d86b4d018ad72cea46184fa594
KVM: x86: fix return value for reserved EFER

commit 66f61c92889ff3ca365161fb29dd36d6354682ba upstream.

Commit 11988499e62b ("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: 11988499e62b ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/x86.c