Re: [PATCH] KVM: nvmx: retry writing guest memory after page fault injected

From: linmiaohe
Date: Wed Dec 25 2019 - 22:09:31 EST


Hi,

Wanpeng Li <kernellwp@xxxxxxxxx> wrote:
> On Thu, 26 Dec 2019 at 10:32, linmiaohe <linmiaohe@xxxxxxxxxx> wrote:
> >
> > >
> > >In addition, it will be appreciated if you would also submit kvm-unit-test that verifies this condition.
> >
> > I'd like to submit kvm-unit-test that verifies this condition, but I
> > am not familiar with the kvm-unit-test code yet and also not in my
> > recent todo list. So such a patch may come late. It would be
> > appreciated too if you could submit this kvm-unit-test patch. :)
>
> Hmm, did you verify your own patch? Please give the testcase.
>

I'am sorry but this is a code inspection path. And I think this fix is correct from the code logic and
this behavior is similar as handle_vmwrite, handle_vmptrst, handle_invept and so on. Thanks!