Re: [PATCH v4 3/3] KVM: X86: Don't use PV TLB flush with dedicated vCPUs and steal time disabled

2018-02-13 Thread Wanpeng Li
2018-02-14 0:12 GMT+08:00 Paolo Bonzini : > On 13/02/2018 02:05, Wanpeng Li wrote: >> From: Wanpeng Li >> >> vCPUs are very unlikely to get preempted when they are the only task >> running on a CPU. PV TLB flush is slower that the native flush in that >> case. In addition, avoid traversing all th

Re: [PATCH v4 3/3] KVM: X86: Don't use PV TLB flush with dedicated vCPUs and steal time disabled

2018-02-13 Thread Paolo Bonzini
On 13/02/2018 02:05, Wanpeng Li wrote: > From: Wanpeng Li > > vCPUs are very unlikely to get preempted when they are the only task > running on a CPU. PV TLB flush is slower that the native flush in that > case. In addition, avoid traversing all the cpus for pv tlb flush when > steal time is dis

[PATCH v4 3/3] KVM: X86: Don't use PV TLB flush with dedicated vCPUs and steal time disabled

2018-02-12 Thread Wanpeng Li
From: Wanpeng Li vCPUs are very unlikely to get preempted when they are the only task running on a CPU. PV TLB flush is slower that the native flush in that case. In addition, avoid traversing all the cpus for pv tlb flush when steal time is disabled since pv tlb flush depends on the field in st