From 0f4f5cb26d977d4edcb1d37a15d83fce025ea486 Mon Sep 17 00:00:00 2001 From: Laine Stump Date: Thu, 18 Apr 2013 00:25:18 -0400 Subject: [PATCH] rng: tighten up domain schema The rng schema for had been non-specific about which types of controllers allowed which models, and also allowed the num_queues attribute (since that hasn't been released yet, should we rename it to "numQueues"?) and subelement to be included for any controller type. In reality, half of the models are allowed only for type='scsi', and the other half only for type='usb', num_queues is allowed only for type='scsi', and only for type='usb'. This patch makes a separate for type='scsi' and type='usb', with each group allowing only the appropriate model values, and allowing num_queue and only when appropriate. also hadn't been specified, forcing a specific order of subelements, which should never be done. (Note that the had to surround the main element attributes that are in the subelements, due to one of the s containing a subelement). --- docs/schemas/domaincommon.rng | 145 +++++++++++++++++++--------------- 1 file changed, 81 insertions(+), 64 deletions(-) diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 468c49c84f..3976b82952 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -1402,80 +1402,97 @@ - - - + + + + + + + + + + + + + fdc ide - scsi sata ccid - usb - - - - - - virtio-serial - - - - + + + + + scsi - - - - + + + + auto + buslogic + lsilogic + lsisas1068 + vmpvscsi + ibmvscsi + virtio-scsi + lsisas1078 + + + + + + + + + + + + + usb - - - - - - - - - - auto - buslogic - lsilogic - lsisas1068 - vmpvscsi - ibmvscsi - virtio-scsi - lsisas1078 - piix3-uhci - piix4-uhci - ehci - ich9-ehci1 - ich9-uhci1 - ich9-uhci2 - ich9-uhci3 - vt82c686b-uhci - pci-ohci - nec-xhci - none - - - - - - - - - - - - - - - - - + + + + piix3-uhci + piix4-uhci + ehci + ich9-ehci1 + ich9-uhci1 + ich9-uhci2 + ich9-uhci3 + vt82c686b-uhci + pci-ohci + nec-xhci + none + + + + + + + + + + + virtio-serial + + + + + + + + + + + + + +