mirror of https://gitee.com/openkylin/libvirt.git
qemu: add virtio-scsi controller model
Adding a new model for virtio-scsi roughly follows the same scheme as the previous patch. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
3482191d12
commit
8dcac770f1
|
@ -1658,7 +1658,7 @@
|
|||
control how many devices can be connected through the
|
||||
controller. A "scsi" controller has an optional
|
||||
attribute <code>model</code>, which is one of "auto", "buslogic",
|
||||
"ibmvscsi", "lsilogic", "lsias1068", or "vmpvscsi".
|
||||
"ibmvscsi", "lsilogic", "lsias1068", "virtio-scsi" or "vmpvscsi".
|
||||
A "usb" controller has an optional attribute <code>model</code>,
|
||||
which is one of "piix3-uhci", "piix4-uhci", "ehci",
|
||||
"ich9-ehci1", "ich9-uhci1", "ich9-uhci2", "ich9-uhci3",
|
||||
|
|
|
@ -1121,6 +1121,7 @@
|
|||
<value>lsisas1068</value>
|
||||
<value>vmpvscsi</value>
|
||||
<value>ibmvscsi</value>
|
||||
<value>virtio-scsi</value>
|
||||
<value>piix3-uhci</value>
|
||||
<value>piix4-uhci</value>
|
||||
<value>ehci</value>
|
||||
|
|
|
@ -239,7 +239,8 @@ VIR_ENUM_IMPL(virDomainControllerModelSCSI, VIR_DOMAIN_CONTROLLER_MODEL_SCSI_LAS
|
|||
"lsilogic",
|
||||
"lsisas1068",
|
||||
"vmpvscsi",
|
||||
"ibmvscsi");
|
||||
"ibmvscsi",
|
||||
"virtio-scsi");
|
||||
|
||||
VIR_ENUM_IMPL(virDomainControllerModelUSB, VIR_DOMAIN_CONTROLLER_MODEL_USB_LAST,
|
||||
"piix3-uhci",
|
||||
|
|
|
@ -453,6 +453,7 @@ enum virDomainControllerModelSCSI {
|
|||
VIR_DOMAIN_CONTROLLER_MODEL_SCSI_LSISAS1068,
|
||||
VIR_DOMAIN_CONTROLLER_MODEL_SCSI_VMPVSCSI,
|
||||
VIR_DOMAIN_CONTROLLER_MODEL_SCSI_IBMVSCSI,
|
||||
VIR_DOMAIN_CONTROLLER_MODEL_SCSI_VIRTIO_SCSI,
|
||||
|
||||
VIR_DOMAIN_CONTROLLER_MODEL_SCSI_LAST
|
||||
};
|
||||
|
|
|
@ -2375,6 +2375,9 @@ qemuBuildControllerDevStr(virDomainDefPtr domainDef,
|
|||
model = qemuDefaultScsiControllerModel(domainDef);
|
||||
}
|
||||
switch (model) {
|
||||
case VIR_DOMAIN_CONTROLLER_MODEL_SCSI_VIRTIO_SCSI:
|
||||
virBufferAddLit(&buf, "virtio-scsi-pci");
|
||||
break;
|
||||
case VIR_DOMAIN_CONTROLLER_MODEL_SCSI_LSILOGIC:
|
||||
virBufferAddLit(&buf, "lsi");
|
||||
break;
|
||||
|
|
|
@ -491,7 +491,8 @@ VIR_ENUM_IMPL(virVMXControllerModelSCSI, VIR_DOMAIN_CONTROLLER_MODEL_SCSI_LAST,
|
|||
"lsilogic",
|
||||
"lsisas1068",
|
||||
"pvscsi",
|
||||
"UNUSED ibmvscsi");
|
||||
"UNUSED ibmvscsi",
|
||||
"UNUSED virtio-scsi");
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue