1. 01 2月, 2018 6 次提交
    • J
      qemu: Fetch/save the default SCSI controller model during hotplug · 13d21661
      John Ferlan 提交于
      If we're going to add a controller to the domain, let's set the
      default SCSI model value if we cannot find another SCSI controller
      already present.
      
      NB: Requires updating the live output test data since the model
      will now be formatted.
      13d21661
    • J
      qemu: Introduce qemuDomainGetSCSIControllerModel · fadfb4f9
      John Ferlan 提交于
      Rename and rework qemuDomainSetSCSIControllerModel since we're
      really not setting the SCSI controller model. Instead the code
      is either returning the existing SCSI controller model value, the
      default value based on the capabilities, or -1 with the error set.
      fadfb4f9
    • J
      qemu: Introduce qemuDomainFindSCSIControllerModel · 6ae6ffd8
      John Ferlan 提交于
      Rather than repeat multiple steps in order to find the SCSI
      controller model, let's combine them into one helper that will
      return either the model from the definition or the default
      model based on the capabilities.
      
      This patch adds an extra check/error that the controller
      that's being found actually exists. This just clarifies that
      the error was because the controller doesn't exist rather
      than the more generic error that we were unable to determine
      the model from qemuDomainSetSCSIControllerModel when a -1
      was passed in and the capabilities were unable to find one.
      6ae6ffd8
    • J
      conf: Rework and rename virDomainDeviceFindControllerModel · 932862b8
      John Ferlan 提交于
      As it turns out virDomainDeviceFindControllerModel was only ever
      called for SCSI controllers using VIR_DOMAIN_CONTROLLER_TYPE_SCSI
      as a parameter.
      
      So rename to virDomainDeviceFindSCSIController and rather than
      return a model, let's return a virDomainControllerDefPtr to let
      the caller reference whatever it wants.
      932862b8
    • J
      qemu: Split qemuDomainSetSCSIControllerModel · e37540f4
      John Ferlan 提交于
      Rather than one function serving two purposes, let's split out the
      else condition which is checking whether the model can be used
      during command line building based on the capabilities.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      e37540f4
    • M
      virUSBDeviceNew: Construct vroot path properly · 7b0ea999
      Michal Privoznik 提交于
      When starting an LXC container, the /dev entries are created
      under temp root (/var/run/libvirt/lxc/$name.dev), relabelled and
      then the root is pivoted. However, when it comes to USB devices
      which keep path to the device in the structure we need a way to
      override the default /dev/usb/... path because we want to work
      with the one under temp root. That's what @vroot argument is for
      in virUSBDeviceNew. However, what is being passed there is:
      
        vroot = /var/run/libvirt/lxc/lxc_0.dev/bus/usb
      
      Therefore, constructed path is wrong:
      
        dev->path = //var/run/libvirt/lxc/lxc_0.dev/bus/usb//dev/bus/usb/002/002
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      7b0ea999
  2. 31 1月, 2018 24 次提交
  3. 30 1月, 2018 9 次提交
  4. 29 1月, 2018 1 次提交