kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Shared value between host and guests
@ 2018-01-19 20:03 Genevieve Bastien
  2018-01-23 17:21 ` Stefan Hajnoczi
  0 siblings, 1 reply; 9+ messages in thread
From: Genevieve Bastien @ 2018-01-19 20:03 UTC (permalink / raw)
  To: kvm

Hi,

I'm tracing kvm guests and their host and an issue we have is to
identify which host process corresponds to which guest trace so we can
follow the state of the virtual cpu on the host.

For our needs, we fixed this problem by adding a kernel module on host
and guest where hosts and guests make an hypercall received by the other
and sending a UID between them. By tracing those hypercalls and tracking
the uid value, we can know which thread on the host corresponds to which
guest machine.

But we would like to achieve this without having to add an additional
module for tracing purposes. I'm wondering if there's already a value
somewhere in the kernel that is uniquely shared between the host
process/threads and the corresponding guest. And if not, would it be
possible/desirable to add one? For instance, the bootid of the guest
could be sent to the host process at the start and stored in some system
file. The trace could then retrieve it and the analysis can figure out
who's who all the traces.

Fyi, this is the kind of virtual machine analyses we can obtain by
tracing guest and host:
http://archive.eclipse.org/tracecompass.incubator/doc/org.eclipse.tracecompass.incubator.virtual.machine.analysis.doc.user/Virtual-Machine-Analysis-User-Documentation.html 
We have more, but it is not yet documented unfortunately.

Thanks,
Geneviève

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-01-29 17:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-19 20:03 Shared value between host and guests Genevieve Bastien
2018-01-23 17:21 ` Stefan Hajnoczi
2018-01-24 15:56   ` Geneviève Bastien
2018-01-25  9:29     ` Stefan Hajnoczi
2018-01-25 15:44       ` Geneviève Bastien
2018-01-26 14:03         ` Stefan Hajnoczi
2018-01-29  0:59           ` Wanpeng Li
2018-01-29 10:18             ` Stefan Hajnoczi
2018-01-29 17:45           ` Geneviève Bastien

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).