2011/7/4 Daniel P. Berrange <berrange(a)redhat.com>:
To enable attaching to externally launched QEMU, we need
to be able to reverse engineer a guest XML config based
on the argv for a PID in /proc
* src/qemu/qemu_command.c, src/qemu/qemu_command.h: Add
qemuParseCommandLinePid which extracts QEMU config from
argv in /proc, given a PID number
---
src/qemu/qemu_command.c | 106 +++++++++++++++++++++++++++++++++++++++++++++++
src/qemu/qemu_command.h | 5 ++
2 files changed, 111 insertions(+), 0 deletions(-)
ACK.
--
Matthias Bolte
http://photron.blogspot.com