You need to sign in or sign up before continuing.
  1. 05 6月, 2018 10 次提交
  2. 21 5月, 2018 1 次提交
  3. 16 5月, 2018 2 次提交
  4. 11 5月, 2018 1 次提交
    • M
      qemu: Generate pr cmd line at startup · 13fe558f
      Michal Privoznik 提交于
      For command line we need two things:
      
      1) -object pr-manager-helper,id=$alias,path=$socketPath
      2) -drive file.pr-manager=$alias
      
      In -object pr-manager-helper we tell qemu which socket to connect
      to, then in -drive file-pr-manager we just reference the object
      the drive in question should use.
      
      For managed PR helper the alias is always "pr-helper0" and socket
      path "${vm->priv->libDir}/pr-helper0.sock".
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      13fe558f
  5. 12 2月, 2018 1 次提交
  6. 02 2月, 2018 1 次提交
  7. 01 2月, 2018 1 次提交
    • J
      qemu: Update qemuDomainFindSCSIControllerModel return · 5b5bff35
      John Ferlan 提交于
      Now that the controller model is updated during post parse callback,
      this code no longer needs to fetch the model based on the capabilities
      and can just return the model directly if the controller is found.
      
      Removal of @qemuCaps cascades through various callers which are now
      updated to not pass the capabilities.
      5b5bff35
  8. 25 11月, 2017 1 次提交
    • J
      qemu: Use secret objects to pass iSCSI passwords · c5c96545
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1425757
      
      The blockdev-add code provides a mechanism to sanely provide user
      and password-secret arguments for iscsi without placing them on the
      command line to be viewable by a 'ps -ef' type command or needing
      to create separate -iscsi devices for each disk/volume found.
      
      So modify the iSCSI command line building to check for the presence
      of the capability in order properly setup and use the domain master
      secret object to encrypt the password in a secret object and alter
      the parameters for the command line to utilize.
      
      Modify the xml2argvtest to exhibit the syntax for both disk and
      hostdev configurations.
      c5c96545
  9. 24 11月, 2017 1 次提交
    • P
      qemu: command: Properly format disk 'debug' attribute · 1455a91b
      Peter Krempa 提交于
      Move the setup of the disk attribute to the disk source prepare function
      which will allow proper usage with JSON props and move the fallback
      (legacy) generating code into the block which is executed with legacy
      options.
      
      As a side-effect of this change we can clean up propagation of 'cfg'
      into the command generator.
      
      Also it's nice to see that the test output is the same even when the
      value is generated in a different place.
      1455a91b
  10. 07 11月, 2017 1 次提交
  11. 19 10月, 2017 3 次提交
  12. 05 10月, 2017 1 次提交
  13. 15 7月, 2017 1 次提交
  14. 16 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. 27 3月, 2017 1 次提交
  17. 15 3月, 2017 2 次提交
  18. 08 2月, 2017 1 次提交
    • L
      qemu: propagate bridge MTU into qemu "host_mtu" option · 2841e675
      Laine Stump 提交于
      libvirt was able to set the host_mtu option when an MTU was explicitly
      given in the interface config (with <mtu size='n'/>), set the MTU of a
      libvirt network in the network config (with the same named
      subelement), and would automatically set the MTU of any tap device to
      the MTU of the network.
      
      This patch ties that all together (for networks based on tap devices
      and either Linux host bridges or OVS bridges) by learning the MTU of
      the network (i.e. the bridge) during qemuInterfaceBridgeConnect(), and
      returning that value so that it can then be passed to
      qemuBuildNicDevStr(); qemuBuildNicDevStr() then sets host_mtu in the
      interface's commandline options.
      
      The result is that a higher MTU for all guests connecting to a
      particular network will be plumbed top to bottom by simply changing
      the MTU of the network (in libvirt's config for libvirt-managed
      networks, or directly on the bridge device for simple host bridges or
      OVS bridges managed outside of libvirt).
      
      One question I have about this - it occurred to me that in the case of
      migrating a guest from a host with an older libvirt to one with a
      newer libvirt, the guest may have *not* had the host_mtu option on the
      older machine, but *will* have it on the newer machine. I'm curious if
      this could lead to incompatibilities between source and destination (I
      guess it all depends on whether or not the setting of host_mtu has a
      practical effect on a guest that is already running - Maxime?)
      
      Likewise, we could run into problems when migrating from a newer
      libvirt to older libvirt - The guest would have been told of the
      higher MTU on the newer libvirt, then migrated to a host that didn't
      understand <mtu size='blah'/>. (If this really is a problem, it would
      be a problem with or without the current patch).
      2841e675
  19. 25 11月, 2016 1 次提交
    • E
      qemu: Add vhost-scsi string for -device parameter · 9cc26dc6
      Eric Farman 提交于
      Open /dev/vhost-scsi, and record the resulting file descriptor, so that
      the guest has access to the host device outside of the libvirt daemon.
      Pass this information, along with data parsed from the XML file, to build
      a device string for the qemu command line.  That device string will be
      for either a vhost-scsi-ccw device in the case of an s390 machine, or
      vhost-scsi-pci for any others.
      Signed-off-by: NEric Farman <farman@linux.vnet.ibm.com>
      9cc26dc6
  20. 09 11月, 2016 1 次提交
  21. 03 11月, 2016 1 次提交
  22. 26 10月, 2016 1 次提交
    • J
      qemu: Add a secret object to/for a char source dev · daf5c651
      John Ferlan 提交于
      Add the secret object so the 'passwordid=' can be added if the command line
      if there's a secret defined in/on the host for TCP chardev TLS objects.
      
      Preparation for the secret involves adding the secinfo to the char source
      device prior to command line processing. There are multiple possibilities
      for TCP chardev source backend usage.
      
      Add test for at least a serial chardev as an example.
      daf5c651
  23. 20 9月, 2016 1 次提交
  24. 12 9月, 2016 1 次提交
  25. 09 9月, 2016 1 次提交
    • J
      qemu: Add the ability to hotplug the TLS X.509 environment · 2c322378
      John Ferlan 提交于
      If the incoming XML defined a path to a TLS X.509 certificate environment,
      add the necessary 'tls-creds-x509' object to the VIR_DOMAIN_CHR_TYPE_TCP
      character device.
      
      Likewise, if the environment exists the hot unplug needs adjustment as
      well.  Note that all the return ret were changed to goto cleanup since
      the cfg needs to be unref'd
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      2c322378
  26. 25 8月, 2016 1 次提交
  27. 02 8月, 2016 1 次提交
    • J
      qemu: Use qemuAliasFromDisk instead of qemuDeviceDriveHostAlias · 13effcaf
      John Ferlan 提交于
      Since we already have a function that will generate the drivestr from
      the alias, let's use it and remove the qemuDeviceDriveHostAlias.
      
      Move the QEMU_DRIVE_HOST_PREFIX definition into qemu_alias.h
      
      Also alter qemuAliasFromDisk to use the QEMU_DRIVE_HOST_PREFIX instead
      of "drive-%s".
      13effcaf