Re: [PATCH v3 3/9] KVM: x86: Defer tick-based accounting 'til after IRQ handling

2021-04-20 Thread Sean Christopherson
On Wed, Apr 21, 2021, Frederic Weisbecker wrote: > On Thu, Apr 15, 2021 at 03:21:00PM -0700, Sean Christopherson wrote: > > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c > > index 16fb39503296..e4d475df1d4a 100644 > > --- a/arch/x86/kvm/x86.c > > +++ b/arch/x86/kvm/x86.c > > @@ -9230,6

Re: [PATCH v3 3/9] KVM: x86: Defer tick-based accounting 'til after IRQ handling

2021-04-20 Thread Frederic Weisbecker
On Thu, Apr 15, 2021 at 03:21:00PM -0700, Sean Christopherson wrote: > From: Wanpeng Li > > When using tick-based accounting, defer the call to account guest time > until after servicing any IRQ(s) that happened in the guest or > immediately after VM-Exit. Tick-based accounting of vCPU time

[PATCH v3 3/9] KVM: x86: Defer tick-based accounting 'til after IRQ handling

2021-04-15 Thread Sean Christopherson
From: Wanpeng Li When using tick-based accounting, defer the call to account guest time until after servicing any IRQ(s) that happened in the guest or immediately after VM-Exit. Tick-based accounting of vCPU time relies on PF_VCPU being set when the tick IRQ handler runs, and IRQs are blocked