From nobody Mon Feb 9 11:28:10 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1612534756; cv=none; d=zohomail.com; s=zohoarc; b=C/avPg4duhNlw5b7UVsU9c7KcHQNlNI57QawUQ5wm6FmQ/MotDmPwi/6SnOVw+HWcxIsSOIfqZ6o+StfREtRcZoGzr2Y12uAYCUx77to+t13Z8JMPxd7yfXNnuCETGZVTZDf+S/BmgdJp5P6ZTpE0fzd6GHAF+41kWGPSUz4uvM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612534756; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=YPnagbMtQjOkqmrbGB7BZXvLdouK7n5MFmlJX2bESlk=; b=JjVhF7N9lQDkxgU+hrF5aOw5SnSNKMbo1CP1WpURHAALkLAeERqQp4VCIZvC5mKyTOGW0qJUrbNnJIxo8JXFHGtAKJ/T6jHIjtXwf2nMEijZDQYWiCSWfIf9k+8BfcZyxLkci3dnZ3VW5P0bLiJP3BSbzIDgLs9Ew2G7iuaiVFc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1612534756465384.7526460762184; Fri, 5 Feb 2021 06:19:16 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-161-xlqfh4uEN9e-ysADuGAqxQ-1; Fri, 05 Feb 2021 09:19:11 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9E281100CCC0; Fri, 5 Feb 2021 14:19:05 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6CC7D19C47; Fri, 5 Feb 2021 14:19:05 +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 3425F18095CD; Fri, 5 Feb 2021 14:19:05 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 115EIdLh011878 for ; Fri, 5 Feb 2021 09:18:39 -0500 Received: by smtp.corp.redhat.com (Postfix) id 4EF935C261; Fri, 5 Feb 2021 14:18:39 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-114-212.ams2.redhat.com [10.36.114.212]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6D5B05C1B4; Fri, 5 Feb 2021 14:18:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612534755; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=YPnagbMtQjOkqmrbGB7BZXvLdouK7n5MFmlJX2bESlk=; b=jRRf0u5f3rli52sJOzHrXxYI0DuT7U77YPmKurYLuk1QTSAZYPAF4dFbC6USI6sLPVQ8dH iglEtBsTar/uYorpGEFEwjzci3ga5qKYb9KjzLBLgtrJ6N1DO8c+PxtsnycWTRlk41oBmp eyj0EFib56Ux3BljIhHhmueGAR3zFhM= X-MC-Unique: xlqfh4uEN9e-ysADuGAqxQ-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH 2/6] qemu: record deprecation messages against the domain Date: Fri, 5 Feb 2021 14:18:27 +0000 Message-Id: <20210205141831.1005395-3-berrange@redhat.com> In-Reply-To: <20210205141831.1005395-1-berrange@redhat.com> References: <20210205141831.1005395-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.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.84 on 10.5.11.23 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-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) These messages are only valid while the domain is running. Signed-off-by: Daniel P. Berrang=C3=A9 --- src/qemu/qemu_domain.c | 5 +++++ src/qemu/qemu_process.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index 0f09e321fb..d362764060 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -6236,6 +6236,11 @@ void qemuDomainObjTaintMsg(virQEMUDriverPtr driver, va_end(args); } =20 + if (taint =3D=3D VIR_DOMAIN_TAINT_DEPRECATED_CONFIG && + extramsg) { + virDomainObjDeprecation(obj, extramsg); + } + VIR_WARN("Domain id=3D%d name=3D'%s' uuid=3D%s is tainted: %s%s%s%s", obj->def->id, obj->def->name, diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index 30cfa4d485..91f74b95bb 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -7857,6 +7857,11 @@ void qemuProcessStop(virQEMUDriverPtr driver, } } =20 + for (i =3D 0; i < vm->ndeprecations; i++) + g_free(vm->deprecations[i]); + g_free(vm->deprecations); + vm->ndeprecations =3D 0; + vm->deprecations =3D NULL; vm->taint =3D 0; vm->pid =3D -1; virDomainObjSetState(vm, VIR_DOMAIN_SHUTOFF, reason); --=20 2.29.2