Re: [Xen-devel] [RFC 2/2] x86, vdso, pvclock: Simplify and speed up the vdso pvclock reader

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/23/2014 10:14 AM, Paolo Bonzini wrote:

On 23/12/2014 16:14, Boris Ostrovsky wrote:
+    do {
+        version = pvti->version;
+
+        /* This is also a read barrier, so we'll read version first. */
+        rdtsc_barrier();
+        tsc = __native_read_tsc();

This will cause VMEXIT on Xen with TSC_MODE_ALWAYS_EMULATE which is
used, for example, after guest migrated (unless HW is capable of scaling
TSC rate).
So does the __pvclock_read_cycles this is replacing (via
pvclock_get_nsec_offset).

Right, I didn't notice that.

-boris
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux