1. 26 9月, 2016 1 次提交
  2. 24 9月, 2016 1 次提交
  3. 22 9月, 2016 2 次提交
    • J
      cpu: Rework cpuCompare* APIs · 7f127ded
      Jiri Denemark 提交于
      Both cpuCompare* APIs are renamed to virCPUCompare*. And they should now
      work for any guest CPU definition, i.e., even for host-passthrough
      (trivial) and host-model CPUs. The implementation in x86 driver is
      enhanced to provide a hint about -noTSX Broadwell and Haswell models
      when appropriate.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      7f127ded
    • J
      libxl: support VIR_MIGRATE_PERSIST_DEST migration flag · 1fc90ae9
      Jim Fehlig 提交于
      By default, virt-manager (and likely other libvirt-based apps) sets
      the VIR_MIGRATE_PERSIST_DEST flag when invoking the migrate API, which
      fails in a Xen setup since the libxl driver does not support the flag.
      
      Persisting a domain is a trivial task in the grand scheme of migration,
      so be nice to libvirt apps and add support for VIR_MIGRATE_PERSIST_DEST
      in the libxl driver.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      1fc90ae9
  4. 12 9月, 2016 4 次提交
  5. 09 9月, 2016 1 次提交
  6. 03 9月, 2016 1 次提交
  7. 02 9月, 2016 1 次提交
  8. 30 8月, 2016 1 次提交
    • J
      libxl: advertise support for migration V3 · 36f57ad7
      Jim Fehlig 提交于
      The libxl driver has long supported migration V3 but has never
      indicated so in the connectSupportsFeature API. As a result, apps
      such as virt-manager that use the more generic virDomainMigrate API
      fail with
      
      libvirtError: this function is not supported by the connection driver:
      virDomainMigrate
      
      Add VIR_DRV_FEATURE_MIGRATION_V3 to the list of features marked as
      supported in the connectSupportsFeature API.
      36f57ad7
  9. 16 8月, 2016 2 次提交
    • M
      libxl_driver: Indent LIBXL_VBD_SECTOR_SIZE macro correctly · 2140e3da
      Michal Privoznik 提交于
      Because of change in caaa1bd3 this macro is no under
      #ifdef block. That means it needs to be re-intended correctly.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      2140e3da
    • R
      libxl: fix unused functions · caaa1bd3
      Roman Bogorodskiy 提交于
      Commit eee7bd4e introduced two functions: libxlDiskPathToID and
      libxlDiskSectorSize.
      
      However, as they're used only by code under #ifdef __linux__,
      on non-Linux platforms it results in errors similar to this:
      
       CC       libxl/libvirt_driver_libxl_impl_la-libxl_driver.lo
      libxl/libxl_driver.c:5263:1: error: unused function 'libxlDiskPathToID' [-Werror,-Wunused-function]
      libxlDiskPathToID(const char *virtpath)
      ^
      libxl/libxl_driver.c:5312:1: error: unused function 'libxlDiskSectorSize' [-Werror,-Wunused-function]
      libxlDiskSectorSize(int domid, int devno)
      ^
      2 errors generated.
      
      Fix that by moving these functions under the #ifdef __linux__ block.
      caaa1bd3
  10. 04 8月, 2016 2 次提交
    • M
      libxlDoMigrateReceive: Drop useless check for !vm · b3df357d
      Michal Privoznik 提交于
      In the cleanup path, @vm cannot be possibly NULL. If it were so,
      we would receive SIGSEGV much earlier. At the beginning of the
      function we do libxlDomainObjBeginJob(.., vm, ..); and so on.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      b3df357d
    • J
      libxl: allow libxl to calculate shadow mem requirements · c0960aab
      Jim Fehlig 提交于
      Long, long ago before libxl_get_required_shadow_memory() was
      made publicly available, its code was copied to the libxl driver
      for calculating shadow memory requirements of HVM domains.
      
      Long ago, libxl_get_required_shadow_memory() was exported in
      libxl_utils.h and included in xen-devel packages everywhere.
      
      Remove the copied code, which has become stale, and let libxl
      provode a proper shadow memory value.
      c0960aab
  11. 02 8月, 2016 8 次提交
  12. 27 7月, 2016 2 次提交
    • P
      util: storage: Add 'ssh' network storage protocol · 29f06ff5
      Peter Krempa 提交于
      Allow using 'ssh' protocol in backing chains and later for disks
      themselves.
      29f06ff5
    • J
      libxl: implement virDomainBlockStats · eee7bd4e
      Joao Martins 提交于
      Introduce initial support for domainBlockStats API call that
      allow us to query block device statistics. OpenStack nova
      uses this API call to query block statistics, alongside
      virDomainMemoryStats and virDomainInterfaceStats.  Note that
      this patch only introduces it for VBD for starters. QDisk
      would come in a separate patch series.
      
      A new statistics data structure is introduced to fit common
      statistics among others specific to the underlying block
      backends. For the VBD statistics on linux these are exported
      via sysfs on the path:
      
      "/sys/bus/xen-backend/devices/vbd-<domid>-<devid>/statistics"
      
      To calculate the block devno libxlDiskPathToID is introduced.
      Each backend implements its own function to extract statistics,
      allowing support for multiple backends and different platforms.
      
      VBD stats are exposed in reqs and number of sectors from
      blkback, and it's up to us to convert it to sector sizes.
      The sector size is gathered through xenstore in the device
      backend entry "physical-sector-size".
      
      BlockStatsFlags variant is also implemented which has the
      added benefit of getting the number of flush requests.
      Signed-off-by: NJoao Martins <joao.m.martins@oracle.com>
      eee7bd4e
  13. 12 7月, 2016 1 次提交
  14. 11 7月, 2016 2 次提交
  15. 07 7月, 2016 1 次提交
  16. 27 6月, 2016 1 次提交
  17. 24 6月, 2016 1 次提交
    • J
      secret: Move virStorageSecretType and rename · 1eca5f65
      John Ferlan 提交于
      Move the enum into a new src/util/virsecret.h, rename it to be
      virSecretLookupType. Add a src/util/virsecret.h in order to perform
      a couple of simple operations on the secret XML and virSecretLookupTypeDef
      for clearing and copying.
      
      This includes quite a bit of collateral damage, but the goal is to remove
      the "virStorage*" and replace with the virSecretLookupType so that it's
      easier to to add new lookups that aren't necessarily storage pool related.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      1eca5f65
  18. 23 6月, 2016 1 次提交
    • J
      libxl: use serial device for console when targetType is serial · 76d58716
      Jim Fehlig 提交于
      When domXML contains only <console type='pty'> and no corresponding
      <serial>, the console is "stolen" [1] and used as the first <serial>
      device. When this "stolen" console is accessed from the libxl driver
      (in libxlConsoleCallback and libxlDomainOpenConsole), check if the
      targetType is VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_SERIAL, and use the
      "stolen" device in def->serials[0] instead. Prior to this change,
      creating a domain with input XML containing only a <console> device
      and subsequently attempting to access its console with
      'virsh console' would fail
      
      error: internal error: character device <null> is not using a PTY
      
      [1] See comments associated with virDomainDefAddConsoleCompat() in
          $LIBVIRT-SRC/src/conf/domain_conf.c:
      76d58716
  19. 18 6月, 2016 1 次提交
  20. 17 6月, 2016 1 次提交
  21. 15 6月, 2016 2 次提交
    • C
      libxl: support hotplug USB host device · fc21d106
      Chunyan Liu 提交于
      Support hot attach/detach a USB host device to guest.
      Currently libxl only supports xen PV guest, and only
      supports specifying USB host device by 'bus number'
      and 'device number', for example:
      
       usb.xml:
          <hostdev mode='subsystem' type='usb' managed='no'>
            <source>
              <address bus='1' device='3'/>
            </source>
          </hostdev>
       #xl attach-device dom usb.xml
       #xl detach-device dom usb.xml
      Signed-off-by: NChunyan Liu <cyliu@suse.com>
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      fc21d106
    • C
      libxl: support creating guest with USB hostdev · 2a58ed0b
      Chunyan Liu 提交于
      Support creating guest with USB host device in config file.
      Currently libxl only supports xen PV guest, and only supports
      specifying USB host device by 'bus number' and 'device number',
      for example:
      
          <hostdev mode='subsystem' type='usb' managed='no'>
            <source>
              <address bus='1' device='3'/>
            </source>
          </hostdev>
      Signed-off-by: NChunyan Liu <cyliu@suse.com>
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      2a58ed0b
  22. 14 6月, 2016 3 次提交