This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/13078] investigate qemu virtio-serial channel for talking to stap-sh
- From: "jlebon at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Wed, 11 Sep 2013 18:49:11 +0000
- Subject: [Bug runtime/13078] investigate qemu virtio-serial channel for talking to stap-sh
- Auto-submitted: auto-generated
- References: <bug-13078-6586 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=13078
--- Comment #13 from Jonathan Lebon <jlebon at redhat dot com> ---
I just recreated the jlebon/cross-vm branch with all the 'squashme' commits
squashed and an initial version of stap-vm. It ended up being a bit larger than
expected (almost exactly 1000 lines) but I made sure to keep the code clear and
easy to follow. :)
The next step is to now modify remote.cxx to add a vm://DOMAIN scheme which
shouldn't be too hard. The logic would be something like this:
- Call stap-vm query DOMAIN to make sure it's a valid domain
- Call stap-vm port-list DOMAIN to get a list of available ports
- If no port is available or none of the ports could be opened and hotplugging
is supported, call stap-vm port-hotplug-add DOMAIN to add a domain on the fly.
- Once a port has been obtained, use that to talk to stapsh (maybe create a
unix_stapsh instance and hand it off)
- Once we're done with the port, if it was obtained using port-hotplug-add,
then call stap-vm port-hotplug-remove DOMAIN to remove the port.
--
You are receiving this mail because:
You are the assignee for the bug.