[libvirt] [PATCH] conf: Remove iothreads restriction in virDomainDefCheckABIStabilityFlags

Jie Wang posted 1 patch 5 years, 2 months ago
Test syntax-check passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/1548939031-64804-1-git-send-email-wangjie88@huawei.com
src/conf/domain_conf.c | 8 --------
1 file changed, 8 deletions(-)
[libvirt] [PATCH] conf: Remove iothreads restriction in virDomainDefCheckABIStabilityFlags
Posted by Jie Wang 5 years, 2 months ago
The number of iothreads is not part of the vm state sent during
migration, nor exposed to the guest ABI, so this restriction is
a mistaken in libvirt. Let's remove that bit of code.

Signed-off-by: Jie Wang <wangjie88@huawei.com>
---
 src/conf/domain_conf.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index ae8fb5a501..ac4eeaec5e 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -22927,14 +22927,6 @@ virDomainDefCheckABIStabilityFlags(virDomainDefPtr src,
     if (!virDomainDefVcpuCheckAbiStability(src, dst))
         goto error;
 
-    if (src->niothreadids != dst->niothreadids) {
-        virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
-                       _("Target domain iothreads count %zu does not "
-                         "match source %zu"),
-                       dst->niothreadids, src->niothreadids);
-        goto error;
-    }
-
     if (src->os.type != dst->os.type) {
         virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
                        _("Target domain OS type %s does not match source %s"),
-- 
2.16.2.windows.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH] conf: Remove iothreads restriction in virDomainDefCheckABIStabilityFlags
Posted by Cole Robinson 5 years, 2 months ago
On 1/31/19 7:50 AM, Jie Wang wrote:
> The number of iothreads is not part of the vm state sent during
> migration, nor exposed to the guest ABI, so this restriction is
> a mistaken in libvirt. Let's remove that bit of code.
> 
> Signed-off-by: Jie Wang <wangjie88@huawei.com>
> ---
>  src/conf/domain_conf.c | 8 --------
>  1 file changed, 8 deletions(-)
> 
> diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
> index ae8fb5a501..ac4eeaec5e 100644
> --- a/src/conf/domain_conf.c
> +++ b/src/conf/domain_conf.c
> @@ -22927,14 +22927,6 @@ virDomainDefCheckABIStabilityFlags(virDomainDefPtr src,
>      if (!virDomainDefVcpuCheckAbiStability(src, dst))
>          goto error;
>  
> -    if (src->niothreadids != dst->niothreadids) {
> -        virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
> -                       _("Target domain iothreads count %zu does not "
> -                         "match source %zu"),
> -                       dst->niothreadids, src->niothreadids);
> -        goto error;
> -    }
> -
>      if (src->os.type != dst->os.type) {
>          virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
>                         _("Target domain OS type %s does not match source %s"),
> 

Fixed s/mistaken/mistake/ in the commit message and pushed

Thanks,
Cole

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list