2014-01-17 20:45:49 +01:00
|
|
|
Index: libvirt-1.2.1/src/libxl/libxl_conf.c
|
2013-10-25 21:29:19 +02:00
|
|
|
===================================================================
|
2014-01-17 20:45:49 +01:00
|
|
|
--- libvirt-1.2.1.orig/src/libxl/libxl_conf.c
|
|
|
|
+++ libvirt-1.2.1/src/libxl/libxl_conf.c
|
- Update to libvirt 1.1.4
- Add support for AArch64 architecture
- Various improvements on test code and test driver
- Don't link virt-login-shell against libvirt.so
- Close all non-stdio FDs in virt-login-shell
- Only allow 'stderr' log output when running setuid
- Fix perms for virConnectDomainXML{To,From}Native
- Many incremental improvements and bug fixes, see
http://libvirt.org/news.html
- Drop upstream patches: e7f400a1-CVE-2013-4296.patch,
2dba0323-CVE-2013-4297.patch, db7a5688-CVE-2013-4311.patch,
e65667c0-CVE-2013-4311.patch, 922b7fda-CVE-2013-4311.patch,
e4697b92-CVE-2013-4311.patch, 8294aa0c-CVE-2013-4399.patch,
484cc321-fix-spice-migration.patch,
79552754-libvirtd-chardev-crash.patch,
57687fd6-CVE-2013-4401.patch, ae53e5d1-CVE-2013-4400.patch,
8c3586ea-CVE-2013-4400.patch, b7fcc799a-CVE-2013-4400.patch,
3e2f27e1-CVE-2013-4400.patch, 5a0ea4b7-CVE-2013-4400.patch,
843bdb2f-CVE-2013-4400.patch,
bd773e74-lxc-terminate-machine.patch,
e350826c-python-fix-fd-passing.patch
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=329
2013-11-20 21:02:26 +01:00
|
|
|
@@ -561,6 +561,30 @@ libxlMakeChrdevStr(virDomainChrDefPtr de
|
2013-10-25 21:29:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
|
|
|
+libxlFixupDomBuildInfo(virDomainDefPtr def, libxl_domain_config *d_config)
|
|
|
|
+{
|
|
|
|
+ libxl_domain_build_info *b_info = &d_config->b_info;
|
|
|
|
+ int hvm = STREQ(def->os.type, "hvm");
|
|
|
|
+ libxl_device_vfb vfb;
|
|
|
|
+
|
|
|
|
+ if (!hvm)
|
|
|
|
+ return 0;
|
|
|
|
+
|
|
|
|
+ if (d_config->num_vfbs) {
|
|
|
|
+ vfb = d_config->vfbs[0];
|
|
|
|
+ if (libxl_defbool_val(vfb.vnc.enable))
|
|
|
|
+ memcpy(&b_info->u.hvm.vnc, &vfb.vnc, sizeof(libxl_vnc_info));
|
|
|
|
+ else if (libxl_defbool_val(vfb.sdl.enable))
|
|
|
|
+ memcpy(&b_info->u.hvm.sdl, &vfb.sdl, sizeof(libxl_sdl_info));
|
|
|
|
+ else
|
|
|
|
+ return -1;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+static int
|
|
|
|
libxlMakeDomBuildInfo(virDomainObjPtr vm, libxl_domain_config *d_config)
|
|
|
|
{
|
|
|
|
virDomainDefPtr def = vm->def;
|
2014-01-17 20:45:49 +01:00
|
|
|
@@ -1189,6 +1213,9 @@ libxlBuildDomainConfig(libxlDriverPrivat
|
2013-10-25 21:29:19 +02:00
|
|
|
if (libxlMakeVfbList(driver, def, d_config) < 0)
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
+ if (libxlFixupDomBuildInfo(def, d_config) < 0)
|
|
|
|
+ return -1;
|
|
|
|
+
|
|
|
|
d_config->on_reboot = def->onReboot;
|
|
|
|
d_config->on_poweroff = def->onPoweroff;
|
|
|
|
d_config->on_crash = def->onCrash;
|