[libvirt] [PATCH] security:selinux: Fix crash when tcon is NULL

2014-11-08 Thread Luyao Huang
https://bugzilla.redhat.com/show_bug.cgi?id=1161831 Libvirtd will crash when parameter tcon = NULL in virSecuritySELinuxSetFileconHelper function, because libvirt do not check the first parameter when use strcmp(). Add a check for tcon before use strcmp() and output a error in log when tcon is

Re: [libvirt] [PATCH v2] esx: Simplify VI (vSphere) API and VMware product version handling

2014-11-08 Thread Matthias Bolte
2014-10-24 20:09 GMT+02:00 Eric Blake ebl...@redhat.com: On 10/18/2014 04:08 PM, Matthias Bolte wrote: Store version numbers in this format version = 100 * major + 1000 * minor + micro produced by virParseVersionString instead of dedicated enums. Split the complex esxVI_ProductVersion

[libvirt] [PATCHv8 1/7] bhyve: Support /domain/bootloader configuration for non-FreeBSD guests.

2014-11-08 Thread Conrad Meyer
We still default to bhyveloader(1) if no explicit bootloader configuration is supplied in the domain. If the /domain/bootloader looks like grub-bhyve and the user doesn't supply /domain/bootloader_args, we make an intelligent guess and try chainloading the first partition on the disk (or a CD if

[libvirt] [PATCHv8 0/7] Add non-FreeBSD guest support to Bhyve driver.

2014-11-08 Thread Conrad Meyer
Drvbhyve hardcodes bhyveload(8) as the host bootloader for guests. bhyveload(8) loader only supports FreeBSD guests. This patch series adds bootloader and bootloader_args handling to bhyve_command, so libvirt can boot non-FreeBSD guests in Bhyve. Additionally, support for grub-bhyve(1)'s

[libvirt] [PATCHv8 2/7] bhyvexml2argv: Add loader argv tests.

2014-11-08 Thread Conrad Meyer
--- .../bhyvexml2argv-acpiapic.ldargs | 1 + tests/bhyvexml2argvdata/bhyvexml2argv-base.ldargs | 1 + .../bhyvexml2argvdata/bhyvexml2argv-console.ldargs | 1 + .../bhyvexml2argv-disk-cdrom.ldargs| 1 + .../bhyvexml2argv-disk-virtio.ldargs | 1 +

[libvirt] [PATCHv8 4/7] bhyvexml2argv: Add tests for domain-configured bootloader, args

2014-11-08 Thread Conrad Meyer
--- .../bhyvexml2argv-bhyveload-explicitargs.args | 3 +++ .../bhyvexml2argv-bhyveload-explicitargs.ldargs| 1 + .../bhyvexml2argv-bhyveload-explicitargs.xml | 23 + .../bhyvexml2argv-custom-loader.args | 3 +++

[libvirt] [PATCHv8 6/7] bhyve: Add console support for grub-bhyve bootloader

2014-11-08 Thread Conrad Meyer
This enables booting interactive GRUB menus (e.g. install CDs) with libvirt-bhyve. Caveat: A terminal other than the '--console' option to 'virsh start' (e.g. 'cu -l /dev/nmdm0B -s 115200') must be used to connect to grub-bhyve because the bhyve loader path is synchronous and must occur before

[libvirt] [PATCHv8 5/7] bhyve: Probe grub-bhyve for --cons-dev capability

2014-11-08 Thread Conrad Meyer
--- src/bhyve/bhyve_capabilities.c | 37 + src/bhyve/bhyve_capabilities.h | 3 +++ 2 files changed, 40 insertions(+) diff --git a/src/bhyve/bhyve_capabilities.c b/src/bhyve/bhyve_capabilities.c index 132ce91..6e9a943 100644 ---

[libvirt] [PATCHv8 3/7] domaincommon.rng: Add 'bootloader' to os=hvm schema for Bhyve

2014-11-08 Thread Conrad Meyer
Additionally, make the bootloader tag optional (for bhyveload with custom arguments) (also, matches the actual parser). --- docs/schemas/domaincommon.rng | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/docs/schemas/domaincommon.rng

[libvirt] [PATCHv8 7/7] bhyvexml2argv: Add test for grub console support

2014-11-08 Thread Conrad Meyer
--- .../bhyvexml2argv-serial-grub-nocons.args | 4 .../bhyvexml2argv-serial-grub-nocons.devmap| 1 + .../bhyvexml2argv-serial-grub-nocons.ldargs| 2 ++ .../bhyvexml2argv-serial-grub-nocons.xml | 26 ++