Statistics
| Branch: | Tag: | Revision:

root / lib / hypervisor @ 13bb1b4c

Name Size
  hv_kvm
__init__.py 2.6 kB
hv_base.py 21.2 kB
hv_chroot.py 11.5 kB
hv_fake.py 11.4 kB
hv_lxc.py 16.4 kB
hv_xen.py 45.1 kB

Latest revisions

# Date Author Comment
13bb1b4c 12/11/2014 12:54 pm Apollon Oikonomopoulos

(2.12) QMP: make QmpConnection act as a context manager

This will allow automatic connection and socket cleanup on command
completion.

We also repeat the Qmp tests using the context manager. For this to be
feasible, we move the test scenario to class variables and modify...

546cdf7a 12/11/2014 12:54 pm Apollon Oikonomopoulos

(2.12) QMP: always return the command result

According to the QEMU Machine Protocol Specification, the messages sent
by QMP as a response to a command can be of two types: either an error
message (identified by the "error" key), or a success message
(identified by the "return" key)....

7b648a55 12/11/2014 12:53 pm Apollon Oikonomopoulos

(2.12) QMP: keep greeting message version info

QMP will always report the QEMU version and package-specific string in
the greeting message, as per the QEMU Machine Protocol Specification. We
store this information and make it available to users of the monitor....

6c464d30 12/11/2014 12:53 pm Apollon Oikonomopoulos

(2.12) QMP: raise exception on unsupported QMP command

Raise a special exception, qmp.QmpCommandNotSupported, whenever an
unsupported QMP command is about to be executed. This is intended to
assist in falling back to the human monitor for hotplug operations. As...

9b7ef3eb 12/11/2014 12:53 pm Apollon Oikonomopoulos

(2.12) QMP: fetch supported commands on connect

Store the set of supported QMP commands in
QmpConnection.supported_commands. This allows selective error handling
to give the caller a chance to downgrade to HMP when unsupported
commands are encountered.

The `query-commands` QMP command used to implement this, appeared in...

f511a776 12/11/2014 12:53 pm Dimitris Aragiorgis

(2.12) KVM: move tap control functions to a submodule

Move all tap-related functionality to the hv_kvm.netdev submodule.
We rename _OpenTap to OpenTap, since it will now be used as a public
function.

Also, change the hv_kvm tests to import the new code....

8acd00fc 12/11/2014 12:53 pm Apollon Oikonomopoulos

(2.12) Convert QmpMessage to a new-style class

Signed-off-by: Apollon Oikonomopoulos <>
Reviewed-by: Hrvoje Ribicic <>

904d32bc 12/11/2014 12:53 pm Dimitris Aragiorgis

(2.12) KVM: move monitor & QMP classes to a submodule

We move the HMP and QMP classes to the hv_kvm.monitor module.

Signed-off-by: Apollon Oikonomopoulos <>
Reviewed-by: Hrvoje Ribicic <>
Signed-off-by: Dimitris Aragiorgis <>

a2d7c939 12/11/2014 12:53 pm Dimitris Aragiorgis

(2.12) Convert hv_kvm to a package

Weighing in at 3k LOC, it is probably time to split hv_kvm into a
number of modules before adding new code.

Signed-off-by: Apollon Oikonomopoulos <>
Reviewed-by: Hrvoje Ribicic <>
Signed-off-by: Dimitris Aragiorgis <>

8f348496 12/11/2014 12:53 pm Dimitris Aragiorgis

(2.12) kvm: Add migration capabilities as an hvparam

Latest QEMU versions support various migration capabilities. Each
can be enabled/disabled with 'migrate_set_capability' monitor
command.

Version 1.7.0 defines x-rdma-pin-all, auto-converge, zero-blocks,...

View revisions

Also available in: Atom