Re: [PATCH 1/2] KVM: LAPIC: Optimize timer latency consider world switch time

2019-06-12 Thread Wanpeng Li
On Fri, 31 May 2019 at 17:01, Paolo Bonzini wrote: > > On 30/05/19 21:36, Sean Christopherson wrote: > >> +u32 __read_mostly vmentry_lapic_timer_advance_ns = 0; > >> +module_param(vmentry_lapic_timer_advance_ns, uint, S_IRUGO | S_IWUSR); > > Hmm, an interesting idea would be to have some way to "l

Re: [PATCH 1/2] KVM: LAPIC: Optimize timer latency consider world switch time

2019-05-31 Thread Paolo Bonzini
On 30/05/19 21:36, Sean Christopherson wrote: >> +u32 __read_mostly vmentry_lapic_timer_advance_ns = 0; >> +module_param(vmentry_lapic_timer_advance_ns, uint, S_IRUGO | S_IWUSR); > Hmm, an interesting idea would be to have some way to "lock" this param, > e.g. setting bit 0 locks the param. That w

Re: [PATCH 1/2] KVM: LAPIC: Optimize timer latency consider world switch time

2019-05-30 Thread Wanpeng Li
On Fri, 31 May 2019 at 03:36, Sean Christopherson wrote: > > On Thu, May 23, 2019 at 12:18:50PM +0800, Wanpeng Li wrote: > > From: Wanpeng Li > > > > Advance lapic timer tries to hidden the hypervisor overhead between the > > host emulated timer fires and the guest awares the timer is fired. Howe

Re: [PATCH 1/2] KVM: LAPIC: Optimize timer latency consider world switch time

2019-05-30 Thread Sean Christopherson
On Thu, May 23, 2019 at 12:18:50PM +0800, Wanpeng Li wrote: > From: Wanpeng Li > > Advance lapic timer tries to hidden the hypervisor overhead between the > host emulated timer fires and the guest awares the timer is fired. However, > even though after more sustaining optimizations, > kvm-unit-t