]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: Disallow NUMA/network tuning for session mode
authorErik Skultety <eskultet@redhat.com>
Wed, 1 Oct 2014 12:57:32 +0000 (14:57 +0200)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 22 Oct 2014 18:35:06 +0000 (14:35 -0400)
commit43b67f2e71ca50df6619b7a57dc76124ca956dc6
tree61a57512b22342a7c93dd84904486a99fb53a0c0
parent19b1ee42b49b2764f7df23787f4b6022886a612c
qemu: Disallow NUMA/network tuning for session mode

Tuning NUMA or network interface parameters requires root
privileges to manage cgroups. Thus an attempt to set some of these
parameters in session mode on a running domain should be invalid
followed by an error. An example might be memory tuning which raises
an error in such case.

The following behavior in session mode will be present after applying
this patch:

  Tuning  |      SET      |   GET  |
----------|---------------|--------|
NUMA      | shut off only | always |
Memory    |     never     | never  |
Interface |     never     | always |

Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1126762
src/qemu/qemu_command.c
src/qemu/qemu_driver.c