8f756c33df
- qemu: add support for 288 VCPUS aeda1b8c-qemu-no-error-shutdown.patch, 8023b21a-conf-ioapic.patch, 6b5c6314-qemu-irqchip.patch, 2020e2c6-conf-intremap.patch, 04028a9d-qemu-intremap.patch, d12781b4-conf-iommu-cache-mode-attr.patch, a5691448-qemu-iommu-cache-mode.patch, 3a276c65-conf-iommu-def-stability-check.patch, 935d927a-conf-iommu-ABI-stability-check.patch FATE#321335 - revert commit 2841e675: qemu: propagate bridge MTU into qemu "host_mtu" revert-2841e675-mtu.patch bsc#1037774 OBS-URL: https://build.opensuse.org/request/show/495125 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=602
50 lines
1.8 KiB
Diff
50 lines
1.8 KiB
Diff
commit 3a276c6524026b661ed7bee4539fc5387b963611
|
|
Author: Ján Tomko <jtomko@redhat.com>
|
|
Date: Fri May 12 16:59:09 2017 +0200
|
|
|
|
conf: split out virDomainIOMMUDefCheckABIStability
|
|
|
|
Index: libvirt-3.3.0/src/conf/domain_conf.c
|
|
===================================================================
|
|
--- libvirt-3.3.0.orig/src/conf/domain_conf.c
|
|
+++ libvirt-3.3.0/src/conf/domain_conf.c
|
|
@@ -19819,6 +19819,22 @@ virDomainMemoryDefCheckABIStability(virD
|
|
|
|
|
|
static bool
|
|
+virDomainIOMMUDefCheckABIStability(virDomainIOMMUDefPtr src,
|
|
+ virDomainIOMMUDefPtr dst)
|
|
+{
|
|
+ if (src->model != dst->model) {
|
|
+ virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
|
+ _("Target domain IOMMU device model '%s' "
|
|
+ "does not match source '%s'"),
|
|
+ virDomainIOMMUModelTypeToString(dst->model),
|
|
+ virDomainIOMMUModelTypeToString(src->model));
|
|
+ return false;
|
|
+ }
|
|
+ return true;
|
|
+}
|
|
+
|
|
+
|
|
+static bool
|
|
virDomainDefVcpuCheckAbiStability(virDomainDefPtr src,
|
|
virDomainDefPtr dst)
|
|
{
|
|
@@ -20284,14 +20300,8 @@ virDomainDefCheckABIStabilityFlags(virDo
|
|
}
|
|
|
|
if (src->iommu &&
|
|
- src->iommu->model != dst->iommu->model) {
|
|
- virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
|
- _("Target domain IOMMU device model '%s' "
|
|
- "does not match source '%s'"),
|
|
- virDomainIOMMUModelTypeToString(dst->iommu->model),
|
|
- virDomainIOMMUModelTypeToString(src->iommu->model));
|
|
+ !virDomainIOMMUDefCheckABIStability(src->iommu, dst->iommu))
|
|
goto error;
|
|
- }
|
|
|
|
/* Coverity is not very happy with this - all dead_error_condition */
|
|
#if !STATIC_ANALYSIS
|