Messages in this thread | | | Date | Tue, 06 Jan 2015 09:39:57 +0100 | From | Paolo Bonzini <> | Subject | Re: [RFC 2/2] x86, vdso, pvclock: Simplify and speed up the vdso pvclock reader |
| |
On 05/01/2015 20:17, Marcelo Tosatti wrote: > But there is no guarantee that vCPU-N has updated its pvti when > vCPU-M resumes guest instruction execution.
You're right.
> So the cost this patch removes is mainly from __getcpu (==RDTSCP?) ? > Perhaps you can use Gleb's idea to stick vcpu id into version field ?
Or just replace __getcpu with rdtscp.
Paolo
| |