|
|
51d9a2 |
From 580641d2514592b4e21f49309c9f852165788fc7 Mon Sep 17 00:00:00 2001
|
|
|
51d9a2 |
Message-Id: <580641d2514592b4e21f49309c9f852165788fc7@dist-git>
|
|
|
51d9a2 |
From: Michal Privoznik <mprivozn@redhat.com>
|
|
|
51d9a2 |
Date: Tue, 4 Sep 2018 10:41:02 +0200
|
|
|
51d9a2 |
Subject: [PATCH] virDomainNetDefCheckABIStability: Check for MTU change too
|
|
|
51d9a2 |
MIME-Version: 1.0
|
|
|
51d9a2 |
Content-Type: text/plain; charset=UTF-8
|
|
|
51d9a2 |
Content-Transfer-Encoding: 8bit
|
|
|
51d9a2 |
|
|
|
51d9a2 |
RHEL-7.6: https://bugzilla.redhat.com/show_bug.cgi?id=1623157
|
|
|
51d9a2 |
RHEL-8.0: https://bugzilla.redhat.com/show_bug.cgi?id=1623158
|
|
|
51d9a2 |
|
|
|
51d9a2 |
Changing MTU on a running guest is not possible and trying to do
|
|
|
51d9a2 |
so made us face many problems. That's why we forbid it in
|
|
|
51d9a2 |
5f44d7e357f61f7. However, there is still one possible path where
|
|
|
51d9a2 |
users can sneak in change: migration XML.
|
|
|
51d9a2 |
|
|
|
51d9a2 |
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
|
51d9a2 |
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
|
|
|
51d9a2 |
(cherry picked from commit 4ea3693104c03ac40a6595f5b9bcda58fa18afe7)
|
|
|
51d9a2 |
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
|
51d9a2 |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
51d9a2 |
---
|
|
|
51d9a2 |
src/conf/domain_conf.c | 7 +++++++
|
|
|
51d9a2 |
1 file changed, 7 insertions(+)
|
|
|
51d9a2 |
|
|
|
51d9a2 |
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
|
|
|
51d9a2 |
index 49b0a59918..ed9687fde9 100644
|
|
|
51d9a2 |
--- a/src/conf/domain_conf.c
|
|
|
51d9a2 |
+++ b/src/conf/domain_conf.c
|
|
|
51d9a2 |
@@ -21609,6 +21609,13 @@ virDomainNetDefCheckABIStability(virDomainNetDefPtr src,
|
|
|
51d9a2 |
return false;
|
|
|
51d9a2 |
}
|
|
|
51d9a2 |
|
|
|
51d9a2 |
+ if (src->mtu != dst->mtu) {
|
|
|
51d9a2 |
+ virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
|
|
51d9a2 |
+ _("Target network card MTU %d does not match source %d"),
|
|
|
51d9a2 |
+ dst->mtu, src->mtu);
|
|
|
51d9a2 |
+ return false;
|
|
|
51d9a2 |
+ }
|
|
|
51d9a2 |
+
|
|
|
51d9a2 |
if (src->virtio && dst->virtio &&
|
|
|
51d9a2 |
!virDomainVirtioOptionsCheckABIStability(src->virtio, dst->virtio))
|
|
|
51d9a2 |
return false;
|
|
|
51d9a2 |
--
|
|
|
51d9a2 |
2.18.0
|
|
|
51d9a2 |
|