Re: [RFC PATCH v3 20/21] KVM: x86/xen: Prevent runstate times from becoming negative
From: David Woodhouse
Date: Tue Aug 20 2024 - 06:24:12 EST
On Thu, 2024-08-15 at 21:39 -0700, Sean Christopherson wrote:
> > + vx->last_steal = run_delay;
> > +
> > + /*
> > + * If KVM clock time went backwards, stop updating until it
> > + * catches up (or the runstates are reset by userspace).
> > + */
>
> I take it this is a legitimate scenario where userpace sets KVM clock and then
> the runstates, and KVM needs to lend a hand because userspace can't do those two
> things atomically?
Indeed. Will update the comment to make that more obvious.
Thanks for the rest of the review on this series. I'll go through in
detail and update it, hopefully this week.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature