KVM: x86: don't print when fail to read/write pv eoi memory
authorLi RongQing <lirongqing@baidu.com>
Thu, 4 Nov 2021 11:56:13 +0000 (19:56 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Jan 2022 08:13:14 +0000 (09:13 +0100)
commit6e8b6dcec07ccd81656578a42a64f44929c386cd
treeb5e4faeeeb1e0d3fb011a8523ae38df645ba3d06
parent19f2dfb1a1f6cff8cd114b60063aee4187d5c36a
KVM: x86: don't print when fail to read/write pv eoi memory

commit ce5977b181c1613072eafbc7546bcb6c463ea68c upstream.

If guest gives MSR_KVM_PV_EOI_EN a wrong value, this printk() will
be trigged, and kernel log is spammed with the useless message

Fixes: 0d88800d5472 ("kvm: x86: ioapic and apic debug macros cleanup")
Reported-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Cc: stable@kernel.org
Message-Id: <1636026974-50555-1-git-send-email-lirongqing@baidu.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/lapic.c