1. 10 6月, 2016 2 次提交
    • D
      nodeinfo: rename all CPU APIs to have a virHostCPU prefix · 4053350b
      Daniel P. Berrange 提交于
      In preparation for moving all the CPU related APIs out of
      the nodeinfo file, give them a virHostCPU name prefix.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      4053350b
    • D
      nodeinfo: remove sysfs_prefix from all methods · 08ea852c
      Daniel P. Berrange 提交于
      Nearly all the methods in the nodeinfo file are given a
      'const char *sysfs_prefix' parameter to override the
      default sysfs path (/sys/devices/system). Every single
      caller passes in NULL for this, except one use in the
      unit tests. Furthermore this parameter is totally
      Linux-specific, when the APIs are intended to be cross
      platform portable.
      
      This removes the sysfs_prefix parameter and instead gives
      a new method linuxNodeInfoSetSysFSSystemPath for use by
      the test suite.
      
      For two of the methods this hardcodes use of the constant
      SYSFS_SYSTEM_PATH, since the test suite does not need to
      override the path for thos methods.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      08ea852c
  2. 09 6月, 2016 1 次提交
    • P
      vnc: add support for listen type 'socket' · acc83afe
      Pavel Hrdina 提交于
      VNC graphics already supports sockets but only via 'socket' attribute.
      This patch coverts that attribute into listen type 'socket'.
      
      For backward compatibility we need to handle listen type 'socket' and 'socket'
      attribute properly to support old XMLs and new XMLs.  If both are provided they
      have to match, if only one of them is provided we need to be able to parse that
      configuration too.
      
      To not break migration back to old libvirt if the socket is provided by user we
      need to generate migratable XML without the listen element and use only 'socket'
      attribute.
      Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      acc83afe
  3. 24 5月, 2016 1 次提交
  4. 20 5月, 2016 1 次提交
  5. 19 5月, 2016 3 次提交
  6. 18 5月, 2016 2 次提交
  7. 17 5月, 2016 5 次提交
  8. 30 4月, 2016 1 次提交
  9. 29 4月, 2016 1 次提交
    • M
      vz: fix disk enumeration · cdbbb93a
      Mikhail Feoktistov 提交于
      If we want to delete all disks for container or vm
      we should make a loop from 0 to NumberOfDisks and always
      use zero index in PrlVmCfg_GetHardDisk to get disk handle.
      When we delete first disk after that numbers of other disks
      will be changed, start from 0 to NumberOfDisks-1.
      That's why we should always use zero index.
      cdbbb93a
  10. 20 4月, 2016 6 次提交
  11. 14 4月, 2016 1 次提交
  12. 13 4月, 2016 4 次提交
  13. 12 4月, 2016 2 次提交
  14. 07 4月, 2016 3 次提交
    • N
      vz: support boot order in domain xml dump · 032c5bf9
      Nikolay Shirokovskiy 提交于
      As usual we try to deal correctly with vz domains that were
      created by other means and thus can have all range of SDK domain
      parameters. If vz domain boot order can't be represented
      in libvirt os boot section let's give warning and make os boot section
      represent SDK to some extent.
      
      1. Os boot section supports up to 4 boot devices. Here we just
      cut SDK boot order up to this limit. Not too bad.
      
      2. If there is a floppy in boot order let's just skip it.
      Anyway we don't show it in the xml. Not too bad too.
      
      3. SDK boot order with unsupported disks order. Say we have "hdb, hda" in
      SDK. We can not present this thru os boot order. Well let's just
      give warning but leave double <boot dev='hd'/> in xml. It's
      kind of misleading but we warn you!
      
      SDK boot order have an extra parameters 'inUse' and 'sequenceIndex'
      which makes our task more complicated. In realitly however 'inUse'
      is always on and 'sequenceIndex' is not less than 'boot position index'
      which simplifies out task back again! To be on a safe side let's explicitly
      check for this conditions!
      
      We have another exercise here. We want to check for unrepresentable
      condition 3 (see above). The tricky part is that in contrast to
      domains defined thru this driver 3-rd party defined domains can
      have device ordering different from default. Thus we need
      some id to check that N-th boot disk of os boot section is same as
      N-th boot disk of SDK boot. This is what prlsdkBootOrderCheck
      for. It uses disks sources paths as id for disks and iface names
      for network devices.
      Signed-off-by: NNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
      Signed-off-by: NMaxim Nestratov <mnestratov@virtuozzo.com>
      032c5bf9
    • N
      vz: fix disk order on load domain · bc281f7d
      Nikolay Shirokovskiy 提交于
      We want to report boot order in dumpxml for vz domains.
      Thus we want disks devices to be sorted in output compatible with boot
      ordering specification. So let's just use virDomainDiskInsert
      which makes appropriate sorting.
      Signed-off-by: NNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
      bc281f7d
    • N
      vz: support boot order specification on define domain · 497dcafc
      Nikolay Shirokovskiy 提交于
      The patch makes some refactoring of the existing code. Current boot order spec code
      makes very simple thing in somewhat obscure way. In case of VMs
      it sets the first hdd as the only bootable device. In case of CTs it
      doesn't touch the boot order at all if one of the filesystems is mounted to root.
      Otherwise like in case of VMs it sets the first hdd as the only bootable
      device and additionally sets this device mount point to root. Refactored
      code makes all this explicit.
      
      The actual boot order support is simple. Common libvirt domain xml parsing
      code makes the exact ordering of disks devices as described in docs
      for boot ordering (disks are sorted by bus order first, device target
      second. Bus order is the order of disk buses appearence in original
      xml. Device targets order is alphabetical). We add devices in the
      same order and SDK designates device indexes sequentially for each
      device type. Thus device index is equal to its boot index. For
      example N-th cdrom in boot specification refers to sdk cdrom with
      it's device index N.
      
      If there is no boot spec in xml the parsing code will add <boot dev='hdd'>
      for HVMs automatically and we backward compatibly set fist hdd as
      bootable.
      Signed-off-by: NNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
      Signed-off-by: NMaxim Nestratov <mnestratov@virtuozzo.com>
      497dcafc
  15. 21 3月, 2016 1 次提交
    • C
      domain: Add virDomainDefAddImplicitDevices · 9a423d18
      Cole Robinson 提交于
      It's just a combination of AddImplicitControllers, and AddConsoleCompat.
      Every caller that wants ImplicitControllers also wants the ConsoleCompat
      AFAICT, so lump them together. We also need it for future patches.
      9a423d18
  16. 17 3月, 2016 5 次提交
  17. 14 3月, 2016 1 次提交
    • M
      vz: fix active domain listing · 8a744987
      Maxim Nestratov 提交于
      Since commit 9c14a9ab we have broken active domain listing
      because reworked prlsdkLoadDomain doesn't set dom->def->id
      propely. It just looses it when a new def structure is set.
      Now we make prlsdkConvertDomainState function return void
      and move calling it after an old dom->def is replaces with
      a new one within prlsdkLoadDomain function.
      Signed-off-by: NMaxim Nestratov <mnestratov@virtuozzo.com>
      8a744987