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.
The related bug is:
https://bugzilla.redhat.com/show_bug.cgi?id=1111044
Jincheng Miao (2):
conf: only accept capabilities mode hostdev in LXC.
docs: fix some typos in formatdomain.html
docs/formatdomain.html.in | 4 ++--
src/conf/domain_conf.c | 10 ++++++++--
2 files changed, 10 insertions(+), 4 deletions(-)
--
1.8.3.1