[libvirt] [PATCH V2 0/2] enhance capabilities mode hostdev process

Jincheng Miao jmiao at redhat.com
Thu Jun 19 11:05:46 UTC 2014


hostdev has mode "capabilities" for LXC, from formatdomain.html:
"
Block / character devices from the host can be passed through to
the guest using the hostdev element.
This is only possible with container based virtualization.
since after 1.0.1 for LXC
"
So forbid capabilities mode hostdev if domain is not LXC.

Althrough this patch only constrains qemu currently, the more
non-container based hypervisor should also apply this rule.

V2: move the hyervisor type checking to qemuBuildCommandLine().

Jincheng Miao (2):
  qemu: forbid define a capabilities mode hostdev
  docs: fix some typos in formatdomain.html

 docs/formatdomain.html.in | 4 ++--
 src/qemu/qemu_command.c   | 8 ++++++++
 2 files changed, 10 insertions(+), 2 deletions(-)

-- 
1.8.3.1




More information about the libvir-list mailing list