Re: WARNING: at arch/x86/kvm/../../../virt/kvm/kvm_main.c:3156 mark_page_dirty_in_slot

From: Vitaly Kuznetsov
Date: Thu Apr 07 2022 - 10:01:51 EST


Sean Christopherson <seanjc@xxxxxxxxxx> writes:

> On Tue, Mar 29, 2022, Naresh Kamboju wrote:
>> While running kselftest kvm test cases on x86_64 devices the following
>> kernel warning was reported.
>
> ...
>
>> [ 62.510388] ------------[ cut here ]------------
>> [ 62.515064] WARNING: CPU: 1 PID: 915 at
>> arch/x86/kvm/../../../virt/kvm/kvm_main.c:3156
>> mark_page_dirty_in_slot+0xba/0xd0
>> [ 62.525968] Modules linked in: x86_pkg_temp_thermal fuse
>> [ 62.531307] CPU: 1 PID: 915 Comm: hyperv_clock Not tainted 5.17.0 #1
>> [ 62.537691] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS
>> 2.0b 07/27/2017
>> [ 62.545185] RIP: 0010:mark_page_dirty_in_slot+0xba/0xd0
>
> Long known issue. I think we're all waiting for someone else to post an actual
> patch.
>
> Vitaly, can you formally post the below patch, or do you need feedback first?
>
> https://lore.kernel.org/all/874k51eddp.fsf@xxxxxxxxxx/
>

Sorry, missed this. Will do.

--
Vitaly