This is a draft implementation of the SPICE password feature. The only
way to password-protect a SPICE session, besides passing the password
in clear-text in the kvm invocation command line, is via QMP (QEMU
Messaging Protocol).

So this patch series contains an implementation of QMP and then quite
trivially uses it to add the password-protection.

I'd like a code review before actually submitting the patch, because
I am not sure if this is a good way to do it, and I think that there
is something simpler that could be done that I am missing.

Thanks,
Andrea

Andrea Spadaccini (2):
  Draft implementation of QMP connection
  Added password for SPICE sessions

 Makefile.am                               |    1 +
 lib/constants.py                          |    3 +
 lib/hypervisor/hv_kvm.py                  |  193 ++++++++++++++++++++++++++++-
 test/data/qmp-basic-query.txt             |    2 +
 test/ganeti.hypervisor.hv_kvm_unittest.py |  109 ++++++++++++++++
 5 files changed, 307 insertions(+), 1 deletions(-)
 create mode 100644 test/data/qmp-basic-query.txt

--
1.7.3.1

Reply via email to