1. 05 6月, 2018 4 次提交
  2. 01 6月, 2018 1 次提交
  3. 29 5月, 2018 1 次提交
  4. 25 5月, 2018 1 次提交
    • J
      conf: Add VM Generation ID parse/format support · b50efe97
      John Ferlan 提交于
      The VM Generation ID is a mechanism to provide a unique 128-bit,
      cryptographically random, and integer value identifier known as
      the GUID (Globally Unique Identifier) to the guest OS. The value
      is used to help notify the guest operating system when the virtual
      machine is executed with a different configuration.
      
      This patch adds support for a new "genid" XML element similar to
      the "uuid" element. The "genid" element can have two forms "<genid/>"
      or "<genid>$GUID</genid>". If the $GUID is not provided, libvirt
      will generate one and save it in the XML.
      
      Since adding support for a generated GUID (or UUID like) value to
      be displayed modifying the xml2xml test to include virrandommock.so
      is necessary since it will generate a "known" value.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      ACKed-by: NMichal Privoznik <mprivozn@redhat.com>
      b50efe97
  5. 23 5月, 2018 1 次提交
  6. 16 5月, 2018 1 次提交
  7. 15 5月, 2018 1 次提交
  8. 14 5月, 2018 1 次提交
  9. 11 5月, 2018 1 次提交
  10. 04 5月, 2018 1 次提交
    • C
      conf: format/parse <vmcoreinfo> as tristate · c84be081
      Cole Robinson 提交于
      <features><vmcoreinfo/> is a bare boolean XML property. We don't really
      use this format anymore and instead prefer tristate <X state=on|off/>
      since it's required for modeling on/off/default. If for example future
      qemu started enabling vmcoreinfo by default we wouldn't have any way
      for the user to turn this off.
      
      Convert it to tristate. For writing XML this is semanticly the same,
      <vmcoreinfo/> is processed as <vmcoreinfo state='on'/>.
      
      For apps reading guest XML this is technically an API change,
      as they might misinterpret <vmcoreinfo state='off'/>, however this
      has only been present in libvirt since 3.10.0 and I don't think any
      apps are dependent on this yet
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      Signed-off-by: NCole Robinson <crobinso@redhat.com>
      c84be081
  11. 03 5月, 2018 1 次提交
  12. 23 4月, 2018 2 次提交
  13. 06 4月, 2018 2 次提交
  14. 24 3月, 2018 3 次提交
  15. 22 3月, 2018 1 次提交
  16. 13 3月, 2018 2 次提交
  17. 09 3月, 2018 2 次提交
  18. 17 2月, 2018 1 次提交
    • Z
      conf: Add support for setting Chassis SMBIOS data fields · c8fec256
      Zhuang Yanying 提交于
      This type of information defines attributes of a system
      chassis, such as SMBIOS Chassis Asset Tag.
      
      access inside VM (for example)
      Linux:   /sys/class/dmi/id/chassis_asset_tag.
      Windows: (Get-WmiObject Win32_SystemEnclosure).SMBIOSAssetTag
                wirhin Windows PowerShell.
      
      As an example, add the following to the guest XML
      
          <chassis>
            <entry name='manufacturer'>Dell Inc.</entry>
            <entry name='version'>2.12</entry>
            <entry name='serial'>65X0XF2</entry>
            <entry name='asset'>40000101</entry>
            <entry name='sku'>Type3Sku1</entry>
          </chassis>
      Signed-off-by: NZhuang Yanying <ann.zhuangyanying@huawei.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      c8fec256
  19. 13 2月, 2018 3 次提交
  20. 01 2月, 2018 2 次提交
  21. 29 1月, 2018 1 次提交
  22. 25 1月, 2018 1 次提交
  23. 21 1月, 2018 1 次提交
    • L
      qemu: assign correct type of PCI address for vhost-scsi when using pcie-root · 18c24bc6
      Laine Stump 提交于
      Commit 10c73bf1 fixed a bug that I had introduced back in commit
      70249927 - if a vhost-scsi device had no manually assigned PCI
      address, one wouldn't be assigned automatically. There was a slight
      problem with the logic of the fix though - in the case of domains with
      pcie-root (e.g. those with a q35 machinetype),
      qemuDomainDeviceCalculatePCIConnectFlags() will attempt to determine
      if the host-side PCI device is Express or legacy by examining sysfs
      based on the host-side PCI address stored in
      hostdev->source.subsys.u.pci.addr, but that part of the union is only
      valid for PCI hostdevs, *not* for SCSI hostdevs. So we end up trying
      to read sysfs for some probably-non-existent device, which fails, and
      the function virPCIDeviceIsPCIExpress() returns failure (-1).
      
      By coincidence, the return value is being examined as a boolean, and
      since -1 is true, we still end up assigning the vhost-scsi device to
      an Express slot, but that is just by chance (and could fail in the
      case that the gibberish in the "hostside PCI address" was the address
      of a real device that happened to be legacy PCI).
      
      Since (according to Paolo Bonzini) vhost-scsi devices appear just like
      virtio-scsi devices in the guest, they should follow the same rules as
      virtio devices when deciding whether they should be placed in an
      Express or a legacy slot. That's accomplished in this patch by
      returning early with virtioFlags, rather than erroneously using
      hostdev->source.subsys.u.pci.addr. It also adds a test case for PCIe
      to assure it doesn't get broken in the future.
      18c24bc6
  24. 04 1月, 2018 1 次提交
    • J
      conf: Use existing SCSI hostdev model to create new · c52dbafe
      John Ferlan 提交于
      In virDomainDefMaybeAddHostdevSCSIcontroller when we add a new
      controller because someone neglected to add one or we're adding
      one because the existing one is full, we should copy over the
      model number from the existing controller since whatever we
      create should at least have the same characteristics as the one
      we cannot use because it's full.
      
      NB: This affects the existing hostdev-scsi-autogen-address test
      which would add a default ('lsi') SCSI controller for the various
      scsi_host's that would create a controller for the hostdev.
      c52dbafe
  25. 14 12月, 2017 1 次提交
    • J
      qemu: Need to assign PCI address to vhost-scsi · 10c73bf1
      John Ferlan 提交于
      Commit id '70249927' neglected to cover this case because the test
      had taken the "shortcut" to already add the <address>; however, when
      the PCI address assignment code was adjusted by commit id '70249927'
      the vhost-scsi (VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_SCSI_HOST) wasn't
      covered thus returning a 0 for pciFlags. So I altered the tests too
      to make sure it doesn't happen again.
      
      Previously the qemuxml2xmloutdata was a softlink to the source
      qemuxml2argvdata, so I unlinked and recreated the output file to
      force generation of the adddress. Without the test changes, an
      address generation returns:
      
          libvirt: Domain Config error : internal error: Cannot automatically
          add a new PCI bus for a device with connect flags 00
      
      if an address was supplied in the test, a restart of libvirtd or
      edit of a guest would display the following opaque message:
      
          warning : qemuDomainCollectPCIAddress:1237 :
          qemuDomainDeviceCalculatePCIConnectFlags() thinks that the device
           with PCI address 0000:00:09.0 should not have a PCI address
      
      where the address is related to the guest PCI address provided.
      10c73bf1
  26. 05 12月, 2017 2 次提交
  27. 28 11月, 2017 1 次提交