1. 16 11月, 2016 1 次提交
    • R
      bhyve: fix memory leaks in bhyvexml2argvtest · a6b81d55
      Roman Bogorodskiy 提交于
       * virNetDevTapCreateInBridgePort() mock: free '*ifname' before
         strdupping a hardoded value to it
       * testCompareXMLToArgvFiles(): unref 'conn' object in cleanup
       * testCompareXMLToArgvHelper(): free 'ldargs' and 'dmargs' in
         cleanup
      a6b81d55
  2. 26 9月, 2016 1 次提交
  3. 08 6月, 2016 2 次提交
  4. 25 1月, 2016 1 次提交
    • R
      bhyve: bhyveload: respect boot dev and boot order · ef01addb
      Roman Bogorodskiy 提交于
      Make bhyveload respect boot order as specified by os.boot section of the
      domain XML or by "boot order" for specific devices. As bhyve does not
      support a real boot order specification right now, it's just about
      choosing a single device to boot from.
      ef01addb
  5. 23 7月, 2015 1 次提交
    • R
      bhyve: add UTC clock support · 6cb9ef1b
      Roman Bogorodskiy 提交于
      Bhyve as of r279225 (FreeBSD -CURRENT) or r284894 (FreeBSD 10-STABLE)
      supports using UTC time offset via the '-u' argument to bhyve(8). By
      default it's still using localtime.
      
      Make the bhyve driver use UTC clock if it's requested by specifying
      <clock offset='utc'> in domain XML and if the bhyve(8) binary supports
      the '-u' flag.
      6cb9ef1b
  6. 12 5月, 2015 1 次提交
    • R
      bhyve: fix bhyvexml2argvtest build with gcc · 846cc14c
      Roman Bogorodskiy 提交于
      gcc5 reports an error like this:
      
      bhyvexml2argvtest.c: In function 'testCompareXMLToArgvFiles':
      bhyvexml2argvtest.c:24:18: error: variable 'vm' set but not used
      [-Werror=unused-but-set-variable]
           virDomainObj vm;
                        ^
      cc1: all warnings being treated as errors
      
      Fix by dropping this variable.
      846cc14c
  7. 25 4月, 2015 1 次提交
  8. 24 4月, 2015 1 次提交
  9. 23 4月, 2015 1 次提交
    • R
      bhyve: fix build in tests · c42dbd8a
      Roman Bogorodskiy 提交于
      Commit 835cf84b dropped expectedVirtTypes argument for
      virDomainDefParse*() functions, however bhyve tests still try to pass
      that to virDomainDefParseFile(), therefore build fails.
      
      Fix build by fixing virDomainDefParseFile() usage.
      c42dbd8a
  10. 14 1月, 2015 1 次提交
    • D
      Give virDomainDef parser & formatter their own flags · 0ecd6851
      Daniel P. Berrange 提交于
      The virDomainDefParse* and virDomainDefFormat* methods both
      accept the VIR_DOMAIN_XML_* flags defined in the public API,
      along with a set of other VIR_DOMAIN_XML_INTERNAL_* flags
      defined in domain_conf.c.
      
      This is seriously confusing & error prone for a number of
      reasons:
      
       - VIR_DOMAIN_XML_SECURE, VIR_DOMAIN_XML_MIGRATABLE and
         VIR_DOMAIN_XML_UPDATE_CPU are only relevant for the
         formatting operation
       - Some of the VIR_DOMAIN_XML_INTERNAL_* flags only apply
         to parse or to format, but not both.
      
      This patch cleanly separates out the flags. There are two
      distint VIR_DOMAIN_DEF_PARSE_* and VIR_DOMAIN_DEF_FORMAT_*
      flags that are used by the corresponding methods. The
      VIR_DOMAIN_XML_* flags received via public API calls must
      be converted to the VIR_DOMAIN_DEF_FORMAT_* flags where
      needed.
      
      The various calls to virDomainDefParse which hardcoded the
      use of the VIR_DOMAIN_XML_INACTIVE flag change to use the
      VIR_DOMAIN_DEF_PARSE_INACTIVE flag.
      0ecd6851
  11. 13 11月, 2014 1 次提交
    • C
      drvbhyve: Use boot-order for grub-bhyve boot device · cdbb21bc
      Conrad Meyer 提交于
      Rather than just picking the first CD (or failing that, HDD) we come
      across, if the user has picked a boot device ordering with <boot
      order=''>, respect that (and just try to boot the lowest-index device).
      
      Adds two sets of tests to bhyve2xmlargv; 'grub-bootorder' shows that we
      pick a user-specified device over the first device in the domain;
      'grub-bootorder2' shows that we pick the first (lowest index) device.
      cdbb21bc
  12. 12 11月, 2014 3 次提交
  13. 20 8月, 2014 1 次提交
    • R
      bhyve: add volumes support · 6c2e7d0b
      Roman Bogorodskiy 提交于
      Update bhyveBuildDiskArgStr to support volumes:
      
       - Make virBhyveProcessBuildBhyveCmd and
         virBhyveProcessBuildLoadCmd take virConnectPtr as the
         first argument instead of bhyveConnPtr as virConnectPtr is
         needed for virStorageTranslateDiskSourcePool,
       - Add virStorageTranslateDiskSourcePool call to
         virBhyveProcessBuildBhyveCmd and
         virBhyveProcessBuildLoadCmd,
       - Allow disks of type VIR_STORAGE_TYPE_VOLUME
      6c2e7d0b
  14. 24 7月, 2014 1 次提交
    • R
      bhyve: cdrom support · d704e698
      Roman Bogorodskiy 提交于
      Add support for CDROM devices for bhyve driver using
      bhyve(8)'s 'ahci-cd' device type.
      
      As bhyve currently does not support media insertion at runtime,
      disallow to start a domain with an empty source path for cdrom
      devices.
      d704e698
  15. 04 5月, 2014 1 次提交
    • R
      bhyve: improve bhyve_command.c testability · 07e371fc
      Roman Bogorodskiy 提交于
      * bhyve_command.c (bhyveBuildNetArgStr, virBhyveProcessBuildBhyveCmd):
        add dryRun mode which doesn't create any devices when enabled
      * bhyve_command.c (virBhyveProcessBuildBhyveCmd,
        virBhyveProcessBuildDestroyCmd, virBhyveProcessBuildLoadCmd): accept
        virDomainDefPtr instead of virDomainObjPtr.
      07e371fc
  16. 09 4月, 2014 1 次提交
  17. 05 4月, 2014 1 次提交
  18. 27 3月, 2014 1 次提交
    • R
      bhyve: add xml2args unittest · 1994d2dd
      Roman Bogorodskiy 提交于
      At this point unittest covers 4 basic cases:
      
       - minimal working XML for bhyve
       - same as above, but with virtio disk
       - ACPI and APIC args test
       - MAC address test
      1994d2dd