conf: Accept QCOW2 firmware format

All of the drivers will reject this value, at least for now.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Andrea Bolognani 2023-01-27 19:12:33 +01:00
parent d283e1bd19
commit 807e4c375a
2 changed files with 5 additions and 2 deletions

View File

@ -16778,7 +16778,8 @@ virDomainLoaderDefParseXMLNvram(virDomainLoaderDef *loader,
&format, VIR_STORAGE_FILE_RAW) < 0) {
return -1;
}
if (format != VIR_STORAGE_FILE_RAW) {
if (format != VIR_STORAGE_FILE_RAW &&
format != VIR_STORAGE_FILE_QCOW2) {
virReportError(VIR_ERR_XML_ERROR,
_("Unsupported nvram format '%s'"),
virStorageFileFormatTypeToString(format));
@ -16866,7 +16867,8 @@ virDomainLoaderDefParseXMLLoader(virDomainLoaderDef *loader,
&format, VIR_STORAGE_FILE_RAW) < 0) {
return -1;
}
if (format != VIR_STORAGE_FILE_RAW) {
if (format != VIR_STORAGE_FILE_RAW &&
format != VIR_STORAGE_FILE_QCOW2) {
virReportError(VIR_ERR_XML_ERROR,
_("Unsupported loader format '%s'"),
virStorageFileFormatTypeToString(format));

View File

@ -7548,6 +7548,7 @@
<attribute name="format">
<choice>
<value>raw</value>
<value>qcow2</value>
</choice>
</attribute>
</define>