Re: [KVM] 2efd61a608: WARNING:at_arch/x86/kvm/../../../virt/kvm/kvm_main.c:#mark_page_dirty_in_slot

From: Paolo Bonzini
Date: Thu Jan 27 2022 - 02:53:00 EST


On 1/27/22 03:30, kernel test robot wrote:
Greeting,

FYI, we noticed the following commit (built with gcc-9):

commit: 2efd61a608b0039911924d2e5d7028eb37496e85 ("KVM: Warn if mark_page_dirty() is called without an active vCPU")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):

[ 123.817787][ T9801] RIP: 0010:mark_page_dirty_in_slot (arch/x86/kvm/../../../virt/kvm/kvm_main.c:3160 (discriminator 1))
[ 123.935134][ T9801] __kvm_write_guest_page (arch/x86/kvm/../../../virt/kvm/kvm_main.c:2947)
[ 123.940399][ T9801] kvm_write_guest (arch/x86/kvm/../../../virt/kvm/kvm_main.c:2978)
[ 123.944953][ T9801] kvm_hv_invalidate_tsc_page (arch/x86/kvm/hyperv.c:1220)

Hi, this is known and should be fixed soon.

Paolo