diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index 6a524dfdb9..16f7eae253 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -3283,7 +3283,14 @@
scsi
SCSI devices are described by both the adapter - and address elements. + and address elements. The address + element includes a bus attribute (a 2-digit bus + number), a target attribute (a 10-digit target + number), and a unit attribute (a 20-digit unit + number on the bus). Not all hypervisors support larger + target and unit values. It is up + to each hypervisor to determine the maximum value supported + for the adapter.

Since 1.2.8, the source element of a SCSI device may contain the protocol diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index ca3bcfcb8d..3014365bb5 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -3833,10 +3833,10 @@ - + - + @@ -5152,11 +5152,21 @@ [0-9]{1,2} + + + [0-9]{1,10} + + [0-9]{1,2} + + + [0-9]{1,20} + + [a-zA-Z0-9\-_\.]+ diff --git a/tests/qemuxml2argvdata/qemuxml2argv-hostdev-scsi-large-unit.xml b/tests/qemuxml2argvdata/qemuxml2argv-hostdev-scsi-large-unit.xml new file mode 100644 index 0000000000..b5efb408ee --- /dev/null +++ b/tests/qemuxml2argvdata/qemuxml2argv-hostdev-scsi-large-unit.xml @@ -0,0 +1,35 @@ + + QEMUGuest2 + c7a5fdbd-edaf-9466-926a-d65c16db1809 + 219100 + 219100 + 1 + + hvm + + + + destroy + restart + destroy + + /usr/bin/qemu + + + +

+ + + + + + + + +
+ +
+ + + + diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c index 3287ea37d5..711827dfe6 100644 --- a/tests/qemuxml2xmltest.c +++ b/tests/qemuxml2xmltest.c @@ -577,6 +577,7 @@ mymain(void) DO_TEST("hostdev-scsi-rawio"); DO_TEST_DIFFERENT("hostdev-scsi-autogen-address"); + DO_TEST("hostdev-scsi-large-unit"); DO_TEST("hostdev-scsi-lsi-iscsi"); DO_TEST("hostdev-scsi-lsi-iscsi-auth");