You need to sign in or sign up before continuing.
  1. 27 7月, 2016 1 次提交
  2. 26 7月, 2016 1 次提交
    • T
      add virDomainVirtioSerialAddrSetCreateFromDomain · 40c284f0
      Tomasz Flendrich 提交于
      The address sets (pci, ccw, virtio serial) are currently cached
      in qemu private data, but all the information required to recreate
      these sets is in the domain definition. Therefore I am removing
      the redundant data and adding a way to recalculate these sets.
      
      Add a function that calculates the virtio serial address set
      from the domain definition.
      
      Credit goes to Cole Robinson.
      40c284f0
  3. 21 7月, 2016 7 次提交
    • J
      Auto-add one hub if there are too many USB devices · 815d98ac
      Ján Tomko 提交于
      When parsing a command line with USB devices that have
      no address specified, QEMU automatically adds a USB hub
      if the device would fill up all the available USB ports.
      
      To help most of the users, add one hub if there are more
      USB devices than available ports. For wilder configurations,
      expect the user to provide us with more hubs and/or controllers.
      815d98ac
    • J
      Assign addresses on USB device hotplug · f2a781ce
      Ján Tomko 提交于
      USB disks, redirected devices, host devices and serial devices
      are supported.
      f2a781ce
    • J
      Assign addresses to USB devices · bf182078
      Ján Tomko 提交于
      Automatically assign addresses to USB devices.
      
      Just like reserving, this is only done for newly defined domains.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1215968
      bf182078
    • J
      Reserve existing USB addresses · ddd31fd7
      Ján Tomko 提交于
      Check if they fit on the USB controllers the domain has,
      and error out if two devices try to use the same address.
      ddd31fd7
    • J
      Add functions for adding USB hubs to addrs · 2f081351
      Ján Tomko 提交于
      Walk through all the usb hubs in the domain definition
      that have a USB address specified, create the
      corresponding structures in the virDomainUSBAddressSet
      and mark the port it occupies as used.
      2f081351
    • J
      Add functions for adding USB controllers to addrs · 6b3e4e2b
      Ján Tomko 提交于
      Walk through all the usb controllers in the domain definition
      and create the corresponding structures in the virDomainUSBAddressSet.
      6b3e4e2b
    • J
      Introduce virDomainUSBAddressSet · 82c142b3
      Ján Tomko 提交于
      A new type to track USB addresses.
      
      Every <controller type='usb' index='i'/> is represented by an
      object of type virDomainUSBAddressHub located at buses[i].
      
      Each of these hubs has up to 'nports' ports.
      If a port is occupied, it has the corresponding bit set in
      the 'ports' bitmap, e.g. port 1 would have the 0th bit set.
      If there is a hub on this port, then hubs[i] will point
      to this hub.
      82c142b3
  4. 19 7月, 2016 3 次提交
  5. 18 7月, 2016 3 次提交
  6. 15 7月, 2016 1 次提交
  7. 14 7月, 2016 1 次提交
  8. 13 7月, 2016 1 次提交
  9. 12 7月, 2016 1 次提交
  10. 11 7月, 2016 6 次提交
  11. 07 7月, 2016 4 次提交
    • M
      virDomainHostdevDefFree: Don't leak privateData · 6fcffcb1
      Michal Privoznik 提交于
      After 27726d8c a privateData is allocated in
      virDomainHostdevDefAlloc(). However, the counter part - freeing
      them in Free() is missing which leads to the following memory
      leak:
      
      ==6489== 24 bytes in 1 blocks are definitely lost in loss record 684 of 1,003
      ==6489==    at 0x4C2C070: calloc (vg_replace_malloc.c:623)
      ==6489==    by 0x54B7C94: virAllocVar (viralloc.c:560)
      ==6489==    by 0x5517BE6: virObjectNew (virobject.c:193)
      ==6489==    by 0x1B400121: qemuDomainHostdevPrivateNew (qemu_domain.c:798)
      ==6489==    by 0x5557B24: virDomainHostdevDefAlloc (domain_conf.c:2152)
      ==6489==    by 0x5575578: virDomainHostdevDefParseXML (domain_conf.c:12709)
      ==6489==    by 0x5582292: virDomainDefParseXML (domain_conf.c:16995)
      ==6489==    by 0x5583C98: virDomainDefParseNode (domain_conf.c:17470)
      ==6489==    by 0x5583B07: virDomainDefParse (domain_conf.c:17417)
      ==6489==    by 0x5583B95: virDomainDefParseFile (domain_conf.c:17441)
      ==6489==    by 0x55A3F24: virDomainObjListLoadConfig (virdomainobjlist.c:465)
      ==6489==    by 0x55A43E6: virDomainObjListLoadAllConfigs (virdomainobjlist.c:596)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      6fcffcb1
    • P
      conf: Isolate virDomainLiveConfigHelperMethod to libxl only · f3d3be3d
      Peter Krempa 提交于
      Libxl is the last user and I don't have the toolchain prepared to
      compile the libxl driver. Move it to the libxl driver to avoid having to
      refactor the code.
      f3d3be3d
    • P
      conf: Don't use virDomainLiveConfigHelperMethod in virDomainObjGetMetadata · ef881407
      Peter Krempa 提交于
      Few arguments of the function are not necessary any more which leads to
      some cleanups. The 'uri' argument had a stray ATTRIBUTE_UNUSED.
      ef881407
    • P
  12. 02 7月, 2016 7 次提交
    • L
      conf: support host-side IP/route information in <interface> · 98fa8f3e
      Laine Stump 提交于
      This is place as a sub-element of <source>, where other aspects of the
      host-side connection to the network device are located (network or
      bridge name, udp listen port, etc). It's a bit odd that the interface
      we're configuring with this info is itself named in <target dev='x'/>,
      but that ship sailed long ago:
      
          <interface type='ethernet'>
            <mac address='00:16:3e:0f:ef:8a'/>
            <source>
              <ip address='192.168.122.12' family='ipv4'
                  prefix='24' peer='192.168.122.1'/>
              <ip address='192.168.122.13' family='ipv4' prefix='24'/>
              <route family='ipv4' address='0.0.0.0'
                     gateway='192.168.122.1'/>
              <route family='ipv4' address='192.168.124.0' prefix='24'
                     gateway='192.168.124.1'/>
            </source>
          </interface>
      
      In practice, this will likely only be useful for type='ethernet', so
      its presence in any other type of interface is currently forbidden in
      the generic device Validate function (but it's been put into the
      general population of virDomainNetDef rather than the
      ethernet-specific union member so that 1) we can more easily add the
      capability to other types if needed, and 2) we can retain the info
      when set to an invalid interface type all the way through to
      validation and report a proper error, rather than just ignoring it
      (which is currently what happens for many other type-specific
      settings).
      
      (NB: The already-existing configuration of IP info for the guest-side
      of interfaces is in subelements directly under <interface>, and the
      name of the guest-side interface (when configurable) is in <guest
      dev='x'/>).
      
      (This patch had been pushed earlier in
      commit fe6a7789, but was reverted in
      commit d6584565 because it had been
      accidentally pushed during the freeze for release 2.0.0)
      98fa8f3e
    • V
      conf: allow setting peer address in <ip> element of <interface> · b81cf13e
      Vasiliy Tolstov 提交于
      The peer attribute is used to set the property of the same name in the
      interface IP info:
      
        <interface type='ethernet'>
          ...
          <ip family='ipv4' address='192.168.122.5'
              prefix='32' peer='192.168.122.6'/>
          ...
        </interface>
      
      Note that this element is used to set the IP information on the
      *guest* side interface, not the host side interface - that will be
      supported in an upcoming patch.
      
      (This patch now has quite a history: it was originally pushed in
      commit 690969af, which was subsequently reverted in commit 1d14b13f,
      then reworked and pushed (along with a lot of other related/supporting
      patches) in commit 93135abf; however *that* commit had been
      accidentally pushed during dev. freeze for release 2.0.0, so it was
      again reverted in commit f6acf039).
      Signed-off-by: NVasiliy Tolstov <v.tolstov@selfip.ru>
      Signed-off-by: NLaine Stump <laine@laine.org>
      b81cf13e
    • J
      encryption: Add <cipher> and <ivgen> to encryption · 2552fec2
      John Ferlan 提交于
      For a luks device, allow the configuration of a specific cipher to be
      used for encrypting the volume.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      2552fec2
    • J
      conf: Add new secret type "passphrase" · c8438010
      John Ferlan 提交于
      Add a new secret type known as "passphrase" - it will handle adding the
      secret objects that need a passphrase without a specific username.
      
      The format is:
      
         <secret ...>
           <uuid>...</uuid>
           ...
           <usage type='passphrase'>
             <name>mumblyfratz</name>
           </usage>
         </secret>
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      c8438010
    • J
      conf: No need to check for usage fields during Format · 3977c386
      John Ferlan 提交于
      Since the virSecretDefParseUsage ensures each of the fields is present,
      no need to check during virSecretDefFormatUsage (also virBufferEscapeString
      is a no-op with a NULL argument).
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      3977c386
    • B
      Allow custom metadata in network configuration XML · 47a0866b
      Brandon Bennett 提交于
          This replicates the metadata field found in the domain configuration
          and adds it to the network configuration XML.
      47a0866b
    • L
      util: new function virXMLNodeSanitizeNamespaces() · b874f26b
      Laine Stump 提交于
      This is a generic version of virDomainDefMetadataSanitize() - the same
      functionality is now needed for network metadata.
      b874f26b
  13. 01 7月, 2016 4 次提交