1. 14 6月, 2016 9 次提交
    • M
      conf: Add support of zero-detection for disks · d3c78499
      Martin Kletzander 提交于
      This option allows or disallows detection of zero-writes if it is set to
      "on" or "off", respectively.  It can be also set to "unmap" in which
      case it will try discarding that part of image based on the value of the
      "discard" option.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      d3c78499
    • M
      Fix build without xen · 71631435
      Martin Kletzander 提交于
      Commit 11567cf6 introduced an include which will only work when
      building with xen (particularly libxl).  However, that file is supposed
      to be includable from anywhere (as with other testutils* files.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      71631435
    • R
      virt-host-validate: fix build with clang · b63c7a0b
      Roman Bogorodskiy 提交于
      Building with clang 3.8 triggers the following error:
      
        CC       virt_host_validate-virt-host-validate-qemu.o
      virt-host-validate-qemu.c:36:11: error: initializing 'char *' with an expression of type 'const char *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
          char *kvmhint = _("Check that CPU and firmware supports virtualization "
                ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      virt-host-validate-qemu.c:46:17: error: assigning to 'char *' from 'const char *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
              kvmhint = _("Check that the 'kvm-intel' or 'kvm-amd' modules are "
                      ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      2 errors generated.
      
      Fix by using 'const' for kvmhint declaration.
      b63c7a0b
    • J
      libxl: Add support for ovmf firmware · 00bcb45d
      Jim Fehlig 提交于
      Populate libxl_domain_build_info struct with bios and firmware
      info from virDomainLoaderDef.
      
      Note: Currently libxl only allows specifying the type of BIOS.
      For type LIBXL_BIOS_TYPE_OVMF, the firmware path is configured
      when building Xen using '--with-system-ovmf='. If not specified,
      LIBXL_FIRMWARE_DIR/ovmf.bin is used. In the future, Xen will
      support a user-specified firmware path. See
      
      http://lists.xenproject.org/archives/html/xen-devel/2016-03/msg01628.html
      
      Once that work is merged into xen.git, the libvirt libxl driver
      will be able to honor a user-specified path. In the meantime use
      the implicit path, which is tolerable since it is advertised in
      domcapabilities.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      00bcb45d
    • J
      xenconfig: support bios=ovmf xl.cfg · 53d98cce
      Jim Fehlig 提交于
      Add support to xenconfig for conversion of xl.cfg(5) bios config
      to/from libvirt domXml <loader> config. SeaBIOS is the default
      for HVM guests using upstream QEMU. ROMBIOS is the default when
      using the old qemu-dm. This patch allows specifying OVMF as an
      alternate firmware.
      
      Example xl.cfg:
        bios = "ovmf"
      
      Example domXML:
        <os>
          ...
          <loader readonly='yes' type='pflash'>/usr/lib/xen/boot/ovmf.bin</loader>
        </os>
      
      Note that currently Xen does not support a separate nvram for
      non-volatile variables.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      53d98cce
    • J
      libxl: implement connectGetDomainCapabilities · 11567cf6
      Jim Fehlig 提交于
      Add domain capabilities for PV and HVM domains.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      11567cf6
    • J
      libxl: introduce libxl_capabilities.{ch} · cb110a67
      Jim Fehlig 提交于
      Move capabilities code out of libxl_conf.{ch} and into new
      libxl_capabilities.{ch} files.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      cb110a67
    • J
      libxl: add default firmwares to driver config object · cb5d3e9b
      Jim Fehlig 提交于
      Prefer firmwares specified via --with-loader-nvram configure
      option. If none are specified, use the Xen-provided default
      firmwares found in LIBXL_FIRMWARE_DIR.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      cb5d3e9b
    • J
      driver config: Introduce virFirmware object · fda5a98e
      Jim Fehlig 提交于
      The virQEMUDriverConfig object contains lists of
      loader:nvram pairs to advertise firmwares supported by
      by the driver, and qemu_conf.c contains code to populate
      the lists, all of which is useful for other drivers too.
      
      To avoid code duplication, introduce a virFirmware object
      to encapsulate firmware details and switch the qemu driver
      to use it.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      fda5a98e
  2. 13 6月, 2016 4 次提交
  3. 12 6月, 2016 5 次提交
  4. 11 6月, 2016 8 次提交
  5. 10 6月, 2016 14 次提交