From nobody Sun Feb 8 16:05:00 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1642686812521825.0444720458293; Thu, 20 Jan 2022 05:53:32 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-647--3oGTq94OzWyHxA-yNCG-Q-1; Thu, 20 Jan 2022 08:53:27 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id BD4931966323; Thu, 20 Jan 2022 13:53:21 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9B5867E2C7; Thu, 20 Jan 2022 13:53:21 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 67E2A4A70A; Thu, 20 Jan 2022 13:53:21 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 20KDrHZw008936 for ; Thu, 20 Jan 2022 08:53:17 -0500 Received: by smtp.corp.redhat.com (Postfix) id AE98676D0; Thu, 20 Jan 2022 13:53:17 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast10.extmail.prod.ext.rdu2.redhat.com [10.11.55.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A97B776C8 for ; Thu, 20 Jan 2022 13:53:08 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 969D91C00F68 for ; Thu, 20 Jan 2022 13:53:08 +0000 (UTC) Received: from mail-ot1-f52.google.com (mail-ot1-f52.google.com [209.85.210.52]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-36-65fYdOsGN3umtuxLyrP1Eg-1; Thu, 20 Jan 2022 08:53:06 -0500 Received: by mail-ot1-f52.google.com with SMTP id m8-20020a9d4c88000000b00592bae7944bso7670152otf.1 for ; Thu, 20 Jan 2022 05:53:06 -0800 (PST) Received: from rekt.COMFAST ([191.8.61.226]) by smtp.gmail.com with ESMTPSA id a26sm1574102oiy.26.2022.01.20.05.53.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jan 2022 05:53:05 -0800 (PST) X-MC-Unique: -3oGTq94OzWyHxA-yNCG-Q-1 X-MC-Unique: 65fYdOsGN3umtuxLyrP1Eg-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=cQGnJqo9OH+povuYi1dDHM4WiB6KiqVzhMgwe/8jBUM=; b=SUGFh+cRi6Laa9w5dvxNDpR3XU+JkHFVwwMC6yD7Woul29iF/omFS91D7Fzkkr8IYH PiEYgXvVpQcPEx7cHd0kneGhT7/Ipbk+3ldMt7xhJviS3UtNavgvSLxZihm8SZD75ZxN ukAaLqwjyO8Z8nVQ5RpaEcvaWQahmQPB9rLIMCrLlaCXpDuZh0JJPQrgpDRVqdaaff7w C4yMMQG9Im/Us3DGqQKNi35A9vhviTorkkvuN0UygJkR4YVVe+W/UxpnetI9Sjfjyu1K qcqQVYFcFH1gBr8uJ0o6Pr/dIMece2mRXh902pGyIiATlPY3diQTxqKyY3DmPYVVsbln xaHQ== X-Gm-Message-State: AOAM531Zp5R+woy1jpKHMxbRJH5rJScZJ8NodxYgFHbOrxPzUizlatLN BkNrGHO4OGu1E3ls4gmcxbJ1L2yQVvE= X-Google-Smtp-Source: ABdhPJzy//o7GHvtGwHyd52Hg9Esc6ToXlFlFnew6b/bzjC05Vxuekp300Z4njL9K0DJ3Hz+u07RCA== X-Received: by 2002:a05:6830:25c1:: with SMTP id d1mr20024947otu.2.1642686786109; Thu, 20 Jan 2022 05:53:06 -0800 (PST) From: Daniel Henrique Barboza To: libvir-list@redhat.com Subject: [PATCH 09/33] qemu_migration.c: forbid powernv domains migration Date: Thu, 20 Jan 2022 10:52:12 -0300 Message-Id: <20220120135236.719924-10-danielhb413@gmail.com> In-Reply-To: <20220120135236.719924-1-danielhb413@gmail.com> References: <20220120135236.719924-1-danielhb413@gmail.com> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-loop: libvir-list@redhat.com Cc: fbarrat@linux.ibm.com, danielhb413@gmail.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1642686813543100003 Content-Type: text/plain; charset="utf-8" The PowerNV machine does not implement any form of migration. Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_migration.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c index 2635ef1162..dc2fe92e9b 100644 --- a/src/qemu/qemu_migration.c +++ b/src/qemu/qemu_migration.c @@ -1332,6 +1332,12 @@ qemuMigrationSrcIsAllowed(virQEMUDriver *driver, int pauseReason; size_t i; =20 + if (qemuDomainIsPowerNV(vm->def)) { + virReportError(VIR_ERR_OPERATION_INVALID, "%s", + _("Powernv domains are not migratable")); + return false; + } + /* perform these checks only when migrating to remote hosts */ if (remote) { nsnapshots =3D virDomainSnapshotObjListNum(vm->snapshots, NULL, 0); --=20 2.34.1