[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4BA3747F.60401@codemonkey.ws>
Date: Fri, 19 Mar 2010 07:56:31 -0500
From: Anthony Liguori <anthony@...emonkey.ws>
To: Ingo Molnar <mingo@...e.hu>
CC: Avi Kivity <avi@...hat.com>, Pekka Enberg <penberg@...helsinki.fi>,
"Zhang, Yanmin" <yanmin_zhang@...ux.intel.com>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Sheng Yang <sheng@...ux.intel.com>,
linux-kernel@...r.kernel.org, kvm@...r.kernel.org,
Marcelo Tosatti <mtosatti@...hat.com>,
oerg Roedel <joro@...tes.org>,
Jes Sorensen <Jes.Sorensen@...hat.com>,
Gleb Natapov <gleb@...hat.com>,
Zachary Amsden <zamsden@...hat.com>, ziteng.huang@...el.com,
Arnaldo Carvalho de Melo <acme@...hat.com>,
Fr?d?ric Weisbecker <fweisbec@...il.com>
Subject: Re: [RFC] Unify KVM kernel-space and user-space code into a single
project
On 03/19/2010 03:53 AM, Ingo Molnar wrote:
> * Avi Kivity<avi@...hat.com> wrote:
>
>
>>> There were two negative reactions immediately, both showed a fundamental
>>> server versus desktop bias:
>>>
>>> - you did not accept that the most important usecase is when there is a
>>> single guest running.
>>>
>> Well, it isn't.
>>
> Erm, my usability points are _doubly_ true when there are multiple guests ...
>
> The inconvenience of having to type:
>
> perf kvm --host --guest --guestkallsyms=/home/ymzhang/guest/kallsyms \
> --guestmodules=/home/ymzhang/guest/modules top
>
> is very obvious even with a single guest. Now multiply that by more guests ...
>
If you want to improve this, you need to do the following:
1) Add a userspace daemon that uses vmchannel that runs in the guest and
can fetch kallsyms and arbitrary modules. If that daemon lives in
tools/perf, that's fine.
2) Add a QMP interface in qemu to interact with such daemon
3) Add a default QMP port in a well known location[1]
4) Modify the perf tool to look for a default QMP port. In the case of
a single guest, there's one port. If there are multiple guests, then
you will have to connect to each port, find the name or any other
identifying information, and let the user choose.
Patches are certainly welcome.
[1] I've written up this patch and will send it out some time today.
Regards,
Anthony Liguori
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists