[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 0/10]virtio-scsi: New device address logic for SCSI devices



This patch series completed the support for the first 3 parts
of Paolo's proposal:

http://permalink.gmane.org/gmane.comp.emulators.libvirt/50428

The 3 parts are:
  * SCSI controller models
  * Stable addressing for SCSI devices
  * LUN passthrough: block devices

[PATCH 1/10] and [PATCH 2/10] add two new "scsi" controllers,
"ibmvscsi" and "virtio-scsi".

[PATCH 3/10] is to set the default controller model for scsi
controller when parsing and implicit controller addtion.

[PATCH 4/10] adds a helper functions to get a disk controller's
model.

[PATCH 5/10] introduces attribute "target" for device addressing
XML. "target" is useless for model "lsilogic", for which it's not
printed out when formating XML.

[PATCH 7/10] builds the qemu command line for the new addressing
format. The logic is:
  1) If the disk controller model is "lsilogic":

     -drive file=/dev/sda,if=none,id=drive-scsi0-0-3,\
     format=raw -device scsi-disk,bus=scsi0.0,\
     scsi-id=0,drive=drive-scsi0-0-3-0,id=scsi0-0-3-0

     libvirt attrs --> qdev properties:
       bus=scsi<controller>.0
       scsi-id=<unit>

  2) If the disk controller model is other else:
     The command line will be like:

     -drive file=/dev/sda,if=none,id=drive-scsi0-0-3-0,\
     format=raw -device scsi-disk,bus=scsi0.0,channel=0,\
     scsi-id=3,lun=0,drive=drive-scsi0-0-3-0,id=scsi0-0-3-0

     libvirt attrs --> qdev properties:
       bus=scsi<controller>.0
       channel=<bus>
       scsi-id=<target>
       lun=<unit>

[PATCH 01/10] qemu: Add ibmvscsi controller model
[PATCH 02/10] qemu: Add virtio-scsi controller model
[PATCH 03/10] conf: Set default scsi controller model when parsing
[PATCH 04/10] conf: Add helper function to look up disk controller
[PATCH 05/10] conf: Introduce new attribute for device address
[PATCH 06/10] qemu: New cap flag to indicate if channel is supported
[PATCH 07/10] qemu: Build command line for the new address format
[PATCH 08/10] tests: Update qemu tests to be consistent with new
[PATCH 09/10] tests: Update vmx tests to be consistent with new
[PATCH 10/10] tests: Add tests for virtio-scsi and ibmvscsi

Regards,
Osier


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]