This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug runtime/13078] investigate qemu virtio-serial channel for talking to stap-sh


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]