On Wed, Mar 24, 2010 at 02:08:17PM +0200, Avi Kivity wrote:
I don't want the tool for myself only. A typical perf user expects that
it works transparent.
Not necessarily. The perf event is configured to measure systemwide kvm
by userspace. The kernel side of perf takes care that it stays
system-wide even with added vm instances. So in this case the consumer
for the notifier would be the perf kernel part. No userspace interface
required.
Thats hard to do at this point since we don't know what people will use
it for. We should keep it simple in the beginning and add new features
as they are requested and make sense in this context.
Depends on how it is designed. A filesystem approach was already
mentioned. We could create /sys/kvm/ for example to expose information
about virtual machines to userspace. This would not require any new
security hooks.
I don't think we can cache filesystem data of a running guest on the
host. It is too hard to keep such a cache coherent.
If two userspaces run in parallel what is the single instance where perf
can get a list of guests from?
The subset is not small. It contains all guest vcpus, the complete
interrupt routing hardware emulation and manages event the guests
memory.
Joerg
--