From nobody Mon Feb 9 12:44:15 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; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.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=1639583661; cv=none; d=zohomail.com; s=zohoarc; b=fcBIOb4aj5DJqix40iQ1dp27PSfHOSPTDP6C5Lhk1rAlnjebploUmn4sPiw3hZEAeUjfaxtyDXRBFXd5gWvre0ELu3NRRjRZ9iIqbiIzFiZQOF6cxLVJhVwVZ68xiMbap+SWU2V6wSudigKAk2wIcFVkWMlodabFtYbL/fC7T1U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1639583661; 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=hEa5CgHGpuWzSAzA1PG1VDSC8ka5CTCRtFpCpQ6uXgQ=; b=gBvyM2+yOk1awYFmy93lli2wYprCt0YPN4QMvNNGzwy8d/4WbHd6ZpxQjpqYYlMZtIRkbzZ0cj7U8qO/0p5YyNDBAjmOLFc0D/7nq/9CTJuZdP0GkogWoS4IEI2HGhHs2lrdLRZrC/34kD49qGySabyJSG8NR7oA65qwy19NCnc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) 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 1639583661426503.4344681168117; Wed, 15 Dec 2021 07:54:21 -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-301-jFUYZJIOOtuOJNAdzRJE7w-1; Wed, 15 Dec 2021 10:54:16 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0AD89801B2A; Wed, 15 Dec 2021 15:54:11 +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 E12115BE14; Wed, 15 Dec 2021 15:54:10 +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 ADEB81809CB9; Wed, 15 Dec 2021 15:54:10 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1BFFqrBn009297 for ; Wed, 15 Dec 2021 10:52:53 -0500 Received: by smtp.corp.redhat.com (Postfix) id 2EF9360CC9; Wed, 15 Dec 2021 15:52:53 +0000 (UTC) Received: from maggie.brq.redhat.com (unknown [10.34.247.1]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7FE84610A7 for ; Wed, 15 Dec 2021 15:52:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1639583660; 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=hEa5CgHGpuWzSAzA1PG1VDSC8ka5CTCRtFpCpQ6uXgQ=; b=KiIaWnjZWq+RXpK8X6O0z5rytHEBXofm5BuLjuTgSI5CZbq5woY5WdbrlBYaMp3c2H1flG tJsKlqXVDXRGrXXS55hJfru2unlkXOVXxlqDHzCHUWwYZA6tq3w62X2odJh1rXP9RndFrO 80EaX2hkLXMZ6UIJEnpCY1RbHfz/Re0= X-MC-Unique: jFUYZJIOOtuOJNAdzRJE7w-1 From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 1/3] qemu: Allow VIR_DOMAIN_NUMATUNE_MEM_RESTRICTIVE in qemuDomainSetNumaParamsLive() Date: Wed, 15 Dec 2021 16:52:12 +0100 Message-Id: <5674d858b0f8faf1103d5b266b0a7801f464245b.1639583509.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 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.79 on 10.5.11.15 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-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1639583662975100005 Content-Type: text/plain; charset="utf-8" The whole idea of VIR_DOMAIN_NUMATUNE_MEM_RESTRICTIVE is that the memory location is restricted only via CGroups and thus can be changed on the fly (which is exactly what qemuDomainSetNumaParamsLive() does. Allow this mode there then. Signed-off-by: Michal Privoznik --- src/qemu/qemu_driver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index bae8b7c39b..e884dde721 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -8777,10 +8777,10 @@ qemuDomainSetNumaParamsLive(virDomainObj *vm, size_t i =3D 0; =20 if (virDomainNumatuneGetMode(vm->def->numa, -1, &mode) =3D=3D 0 && - mode !=3D VIR_DOMAIN_NUMATUNE_MEM_STRICT) { + mode !=3D VIR_DOMAIN_NUMATUNE_MEM_STRICT && + mode !=3D VIR_DOMAIN_NUMATUNE_MEM_RESTRICTIVE) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", - _("change of nodeset for running domain " - "requires strict numa mode")); + _("change of nodeset for running domain requires st= rict or restrictive numa mode")); return -1; } =20 --=20 2.32.0