1. 18 6月, 2013 8 次提交
    • O
      virsh: Support SCSI_GENERIC cap flag for nodedev-list · 9046b80d
      Osier Yang 提交于
      Document for nodedev-list is also updated.
      9046b80d
    • O
      4a7b3e58
    • O
      nodedev_hal: Enumerate scsi generic device · dd451f3a
      Osier Yang 提交于
      The xml outputed by HAL backend for scsi generic device:
      
      <device>
        <name>pci_8086_2922_scsi_host_scsi_device_lun0_scsi_generic</name>
        <path>/sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/scsi_generic/sg0</path>
        <parent>pci_8086_2922_scsi_host_scsi_device_lun0</parent>
        <capability type='scsi_generic'>
          <char>/dev/sg0</char>
        </capability>
      </device>
      dd451f3a
    • O
      nodedev_udev: Enumerate scsi generic device · 92fd4c09
      Osier Yang 提交于
      Since scsi generic device doesn't have DEVTYPE property set, the
      only way to know if it's a  scsi generic device or not is to read
      the "SUBSYSTEM" property.
      
      The XML of the scsi generic device will be like:
      
      <device>
        <name>scsi_generic_sg0</name>
        <path>/sys/devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/scsi_generic/sg0</path>
        <parent>scsi_0_0_0_0</parent>
        <capability type='scsi_generic'>
          <char>/dev/sg0</char>
        </capability>
      </device>
      92fd4c09
    • G
      qemu: set QEMU_CAPS_DEVICE_VIDEO_PRIMARY cap flag in QMP detection · 0ad9025e
      Guannan Ren 提交于
      When qemu >= 1.20, it is safe to use -device for primary video
      device as described in 4c993d8a.
      So, we are missing the cap flag in QMP capabilities detection, this
      flag can be initialized safely in virQEMUCapsInitQMPBasic.
      0ad9025e
    • O
      nodedev_udev: changes missed by commit 1aa0ba3c · bf5fbf8f
      Osier Yang 提交于
      bf5fbf8f
    • O
      nodedev_udev: Refactor udevGetDeviceType · 1aa0ba3c
      Osier Yang 提交于
      Checking if the "devtype" is NULL along with each "if" statements
      is bad. It wastes the performance, and also not good for reading.
      And also when the "devtype" is NULL, the logic is also not clear.
      
      This reorgnizes the logic of with "if...else" and a bunch of "else if".
      
      Other changes:
         * Change the function style.
         * Remove the useless debug statement.
         * Get rid of the goto
         * New helper udevDeviceHasProperty to simplify the logic for checking
           if a property is existing for the device.
         * Add comment to clarify "PCI devices don't set the DEVTYPE property"
         * s/sysfs path/sysfs name/, as udev_device_get_sysname returns the
           name instead of the full path. E.g. "sg0"
         * Refactor the comment for setting VIR_NODE_DEV_CAP_NET cap type
           a bit.
      1aa0ba3c
    • O
      nodedev: Expose sysfs path of device · c4a4603d
      Osier Yang 提交于
      The name format is constructed by libvirt, it's not that clear to
      get what the device's sysfs path should be. This exposes the device's
      sysfs path by a new tag <path>.
      
      Since the sysfspath is filled during enumerating the devices by
      either udev or HAL. It's an output-only tag.
      c4a4603d
  2. 17 6月, 2013 1 次提交
  3. 14 6月, 2013 9 次提交
  4. 13 6月, 2013 1 次提交
  5. 12 6月, 2013 6 次提交
  6. 11 6月, 2013 5 次提交
  7. 10 6月, 2013 4 次提交
  8. 09 6月, 2013 1 次提交
    • C
      spec: Drop Requires: vbox · db459dbd
      Cole Robinson 提交于
      Since this package isn't provided by any stock RH based distro. The
      upstream RPMs are called VirtualBox anyways.
      db459dbd
  9. 08 6月, 2013 1 次提交
    • R
      Fix ordering of file open in virProcessGetNamespaces · 68eea850
      Richard Weinberger 提交于
      virProcessGetNamespaces() opens files in /proc/XXX/ns/ which will
      later be passed to setns(). We have to make sure that the file
      descriptors in the array are in the correct order. In particular
      the 'user' namespace must be first otherwise setns() may fail
      for other namespaces.
      
      The order has been taken from util-linux's sys-utils/nsenter.c
      
      Also we must ignore EINVAL in setns() which occurs if the
      namespace associated with the fd, matches the calling process'
      current namespace.
      Signed-off-by: NRichard Weinberger <richard@nod.at>
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      68eea850
  10. 07 6月, 2013 4 次提交