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