On Mon, Oct 28, 2013 at 08:58:08PM -0600, David Ahern wrote: > To back out a bit, my end goal is to be able to create and merge perf-events > from any context on a KVM-based host -- guest userspace, guest kernel space, > host userspace and host kernel space (userspace events with a perf-clock > timestamp is another topic ;-)). Having the events generated with the proper > timestamp is the simpler approach than trying to collect various tidbits of > data, massage timestamps (and hoping the clock source hasn't changed) and > then merge events. > > And then for the cherry on top a design that works across architectures > (e.g., x86 now, but arm later). Fair enough; but then I don't know how to get things faster than what your initial patch proposes to do. Typically the only way to get things faster is avoiding VM exits is by replicating state inside the guest, but as you say, that ends up being complex/fragile. -- 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