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

Osier Yang jyang at redhat.com
Fri Feb 17 17:17:57 UTC 2012

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


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

[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,\

     libvirt attrs --> qdev properties:

  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,\

     libvirt attrs --> qdev properties:

[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


More information about the libvir-list mailing list