1. 15 9月, 2017 1 次提交
  2. 05 9月, 2017 1 次提交
  3. 01 9月, 2017 1 次提交
  4. 20 7月, 2017 1 次提交
  5. 18 7月, 2017 1 次提交
  6. 15 7月, 2017 2 次提交
  7. 28 6月, 2017 2 次提交
  8. 21 6月, 2017 1 次提交
  9. 20 6月, 2017 1 次提交
  10. 16 6月, 2017 1 次提交
  11. 13 6月, 2017 2 次提交
  12. 12 6月, 2017 1 次提交
  13. 08 6月, 2017 2 次提交
  14. 07 6月, 2017 1 次提交
  15. 23 5月, 2017 1 次提交
    • L
      Revert "qemu: propagate bridge MTU into qemu "host_mtu" option" · 77780a29
      Laine Stump 提交于
      This reverts commit 2841e675.
      
      It turns out that adding the host_mtu field to the PCI capabilities in
      the guest bumps the length of PCI capabilities beyond the 32 byte
      boundary, so the virtio-net device gets 64 bytes of ioport space
      instead of 32, which offsets the address of all the other following
      devices. Migration doesn't work very well when the location and length
      of PCI capabilities of devices is changed between source and
      destination.
      
      This means that we need to make sure that the absence/presence of
      host_mtu on the qemu commandline always matches between source and
      destination, which means that we need to make setting of host_mtu an
      opt-in thing (it can't happen automatically when the bridge being used
      has a non-default MTU, which is what commit 2841e675 implemented).
      
      I do want to re-implement this feature with an <mtu auto='on'/>
      setting, but probably won't backport that to any stable branches, so
      I'm first reverting the original commit, and that revert can be pushed
      to the few releases that have been made since the original (3.1.0 -
      3.3.0)
      
      Resolves: https://bugzilla.redhat.com/1449346
      77780a29
  16. 22 5月, 2017 2 次提交
  17. 11 5月, 2017 1 次提交
  18. 27 4月, 2017 3 次提交
    • E
      qemu: Remove extra messages for vhost-scsi hotplug · 6ff38cee
      Eric Farman 提交于
      As with virtio-scsi, the "internal error" messages after
      preparing a vhost-scsi hostdev overwrites more meaningful
      error messages deeper in the callchain.  Remove it too.
      Signed-off-by: NEric Farman <farman@linux.vnet.ibm.com>
      6ff38cee
    • E
      qemu: Remove extra messages from virtio-scsi hotplug · 33c1fc43
      Eric Farman 提交于
      I tried to attach a SCSI LUN to two different guests, and forgot
      to specify "shareable" in the hostdev XML.  Attaching the device
      to the second guest failed, but the message was not helpful in
      telling me what I was doing wrong:
      
        $ cat scsi_scratch_disk.xml
          <hostdev mode='subsystem' type='scsi'>
            <source>
              <adapter name='scsi_host3'/>
              <address bus='0' target='15' unit='1074151456'/>
            </source>
          </hostdev>
      
        $ virsh attach-device dasd_sles_d99c scsi_scratch_disk.xml
        Device attached successfully
      
        $ virsh attach-device dasd_fedora_0e1e scsi_scratch_disk.xml
        error: Failed to attach device from scsi_scratch_disk.xml
        error: internal error: Unable to prepare scsi hostdev: scsi_host3:0:15:1074151456
      
      I eventually discovered my error, but thought it was weird that
      Libvirt doesn't provide something more helpful in this case.
      Looking over the code we had just gone through, I commented out
      the "internal error" message, and got something more useful:
      
        $ virsh attach-device dasd_fedora_0e1e scsi_scratch_disk.xml
        error: Failed to attach device from scsi_scratch_disk.xml
        error: Requested operation is not valid: SCSI device 3:0:15:1074151456 is already in use by other domain(s) as 'non-shareable'
      
      Looking over the error paths here, we seem to issue better
      messages deeper in the callchain so these "internal error"
      messages overwrite any of them.  Remove them, so that the
      more detailed errors are seen.
      Signed-off-by: NEric Farman <farman@linux.vnet.ibm.com>
      33c1fc43
    • E
      2dc94c3c
  19. 25 4月, 2017 1 次提交
  20. 20 4月, 2017 2 次提交
  21. 18 4月, 2017 1 次提交
    • P
      qemu: refactor qemuDomainMachine* functions · ac97658d
      Pavel Hrdina 提交于
      Introduce new wrapper functions without *Machine* in the function
      name that take the whole virDomainDef structure as argument and
      call the existing functions with *Machine* in the function name.
      
      Change the arguments of existing functions to *machine* and *arch*
      because they don't need the whole virDomainDef structure and they
      could be used in places where we don't have virDomainDef.
      Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      ac97658d
  22. 04 4月, 2017 5 次提交
  23. 27 3月, 2017 1 次提交
    • E
      conf: Introduce new hostdev device type mdev · ec783d7c
      Erik Skultety 提交于
      A mediated device will be identified by a UUID (with 'model' now being
      a mandatory <hostdev> attribute to represent the mediated device API) of
      the user pre-created mediated device. We also need to make sure that if
      user explicitly provides a guest address for a mdev device, the address
      type will be matching the device API supported on that specific mediated
      device and error out with an incorrect XML message.
      
      The resulting device XML:
      <devices>
        <hostdev mode='subsystem' type='mdev' model='vfio-pci'>
          <source>
            <address uuid='c2177883-f1bb-47f0-914d-32a22e3a8804'>
          </source>
        </hostdev>
      </devices>
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      ec783d7c
  24. 25 3月, 2017 1 次提交
  25. 16 3月, 2017 1 次提交
  26. 15 3月, 2017 3 次提交
    • M
      qemu: Allow nvdimm in devices CGroups · 6e95abb4
      Michal Privoznik 提交于
      Some users might want to pass a blockdev or a chardev as a
      backend for NVDIMM. In fact, this is expected to be the mostly
      used configuration. Therefore libvirt should allow the device in
      devices CGroup then.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      6e95abb4
    • M
      qemu_hotplug: Relabel memdev · 78612aa5
      Michal Privoznik 提交于
      Now that we have APIs for relabel memdevs on hotplug, fill in the
      missing implementation in qemu hotplug code.
      
      The qemuSecurity wrappers might look like overkill for now,
      because qemu namespace code does not deal with the nvdimms yet.
      Nor does our cgroup code.  But hey, there's cgroup_device_acl
      variable in qemu.conf. If users add their /dev/pmem* device in
      there, the device is allowed in cgroups and created in the
      namespace so they can successfully passthrough it to the domain.
      It doesn't look like overkill after all, does it?
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      78612aa5
    • M
      qemuBuildMemoryBackendStr: Reorder args and update comment · 8cbdd2ca
      Michal Privoznik 提交于
      Frankly, this function is one big mess. A lot of arguments,
      complicated behaviour. It's really surprising that arguments were
      in random order (input and output arguments were mixed together),
      the documentation was outdated, the description of return values
      was bogus.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      8cbdd2ca