Statistics
| Branch: | Tag: | Revision:

root / lib / hypervisor @ 36b31aea

Name Size
  hv_kvm
__init__.py 2.6 kB
hv_base.py 23 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
36b31aea 12/11/2014 12:54 pm Jose A. Lopes

(2.12) Move 'ConfigureNIC' to 'hv_base'

... so it can be reused by the Xen hypervisor.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Hrvoje Ribicic <>
Signed-off-by: Dimitris Aragiorgis <>

4559fa24 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) Check if chroot/SM is used without add-fd support

..and raise HotplugError inside VerifyHotplugSupport(). This
way disk hot-add is not supported only if chroot or user/pool
security model is used AND QMP does not support add-fd command
(QEMU versions < 1.7) OR fdsend python module is missing....

7dd6dd09 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) Support disk hot-add even with chroot or SM

Up until now we did not allow disk hot-add in case of chroot
or pool/user security model because the running QEMU process
does not have access permissions on the disk link.

This patch slightly changes the way we hot-add a disk; before...

78d67a63 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) Some minor kvm refactoring wrt hotplug

Make _CallHotplugCommands() a classmethod, rename _PassTapFd()
to _HMPPassFd() and make it a wrapper for MonitorSocket's GetFd().

Signed-off-by: Dimitris Aragiorgis <>
Reviewed-by: Helga Velroyen <>

655188a2 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) Add helper methods for passing fds via SCM_RIGHTS

..through qemu monitor sockets using fdsend.

For the hmp the `get-fd` command is used while for the qmp the
`add-fd` command is used, where the fd is added to the first
available fdset. Currently the first one is used during NIC hot-add...

0c2c4dba 12/11/2014 12:54 pm Luka Blaskovic

(2.12) Add support for KVM multiqueue virtio-net

This patch adds support for multiqueue virtio-net1 which sets a number of
queues (file descriptors) from virtio_net_queues parameter for tap device
to parallelize packets sending or receiving. Tap devices will be created with...

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...

View revisions

Also available in: Atom