diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index 6a524dfdb9511890b95e742c55cf034f2fc6031a..16f7eae253d4f3b5e4c106c226c22977d3e2d557 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 ca3bcfcb8d94d0978ff2cca355f8d30f0d43102e..3014365bb5bd08639b48d993b1b1a0fff0110296 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 0000000000000000000000000000000000000000..b5efb408eeaf4f66b238b62bec51c50abdef5fe8 --- /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 3287ea37d5f4ea0ecc9e4162ea6a155ec248fe1a..711827dfe66d8e757bd66c77de652a5c6e3b86b8 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");