From nobody Thu Apr 25 00:01:54 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.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.133.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=1684490215; cv=none; d=zohomail.com; s=zohoarc; b=mBOxUO9WMVVyrH/ZXY0ml0o08ofZAcuUrDBcwCamoRvqD7LIPJrGCwEq/I6F4c0wZ3ET4muUMdeVPY9jyJgrLE3zt/5oQlotC7tqOv4HBixXj+ExYZG3dWFF/X+jzy5u+7QSK7gFnlImiGe9F+Z94scEUvR9QmArR5R9xBD+aW0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1684490215; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=uhgtu4ItbuqqYag8V2OopQhTz1uM5prTwi7UmXeYY1c=; b=K9rqzp712vLWVob5EtVmH7q2Ycwz4dmjKuBxK7o4pnzRp2uWP2W/jIwby6Z18+g/eNKcJG/WqMr/s4utpEYipgsVNGdCGDi9UHYU4TpEXETbZ9ICcAQvFu65WzwLW0smJetnSovZsL8YEn1KvIw6FxzNG2Vko5PcFcj/wiIKBXs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.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.133.124]) by mx.zohomail.com with SMTPS id 1684490215297408.04075195512314; Fri, 19 May 2023 02:56:55 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-168-pXVGnI8NNI-vnEdXLPDfGg-1; Fri, 19 May 2023 05:56:49 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B93F53C01DE4; Fri, 19 May 2023 09:56:46 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4A3227C2A; Fri, 19 May 2023 09:56:46 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id EC71219465B2; Fri, 19 May 2023 09:56:45 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 92E0319465A4 for ; Fri, 19 May 2023 09:56:44 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 84D192026D6A; Fri, 19 May 2023 09:56:44 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast07.extmail.prod.ext.rdu2.redhat.com [10.11.55.23]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7D0FB2026D49 for ; Fri, 19 May 2023 09:56:44 +0000 (UTC) Received: from us-smtp-inbound-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (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 5D4983C021B8 for ; Fri, 19 May 2023 09:56:44 +0000 (UTC) Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-127-ZVcmvy9gMimEtkFRAL7C6g-1; Fri, 19 May 2023 05:56:42 -0400 Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-96f4d917e06so93656266b.1 for ; Fri, 19 May 2023 02:56:42 -0700 (PDT) Received: from wheatley.localdomain (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id rp20-20020a170906d97400b0096f641c6167sm657267ejb.181.2023.05.19.02.56.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 02:56:41 -0700 (PDT) Received: from wheatley.. (wheatley.k8r.cz [127.0.0.1]) by wheatley.localdomain (Postfix) with ESMTP id C773C110237C9 for ; Fri, 19 May 2023 11:56:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1684490214; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=uhgtu4ItbuqqYag8V2OopQhTz1uM5prTwi7UmXeYY1c=; b=PTy0ow0UzcRwgGi7BnSLAL7W4igcbt2sbPM68G1x5kJ0omY5ElWTluvSg1MT2KoLqeB9EJ ZJYv4AF6vfO1yTiuvrC/0AQwY8ClZUZOiaX+adoC9jDvNRIBGp8JQqOdUjYcYcZk/8Rw2X 2wJ2D+b94xm88AiMXnMExo7bwSNocm4= X-MC-Unique: pXVGnI8NNI-vnEdXLPDfGg-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: ZVcmvy9gMimEtkFRAL7C6g-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684490202; x=1687082202; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=uhgtu4ItbuqqYag8V2OopQhTz1uM5prTwi7UmXeYY1c=; b=HtMWIJ3BsHJz0x2QC+JtHSjllDjRoMD6a5NLxrpFmQjh+Y/HnAFu82RP0u49XwmE0R uLaCIyAQWL9qGOX3EWZbod5IMhqrJ9Ri6o0mALpkj6URF3GL8/cdqqhcQLbTpiJ9uJiQ n88od8BdTHBZaLsUE4UQaJKeFB9qrx2EzNWRsCrSn7xGrFX1yB++XjU5d5yl8mI9n0be 9w7EXapq0/u9z818Eu56Hl4S7N5XLFGScUxAJm9pdS2fyLTW5FtbUiY19PtqOk4WwJNz V+uxmEJWlFNP6aKWZ5TwD34PXP+ld7OUyhNwuy+x3NVvtOnDNenuB+OWaj3gaTUmliTV 9FLw== X-Gm-Message-State: AC+VfDxmSp2LPES4+a1Xnj75vwLS+hyTpLqknvxIfZGQWPXkUT3ZOApn mgouGNT+0DbshmPezgy+wwdBEp8Xo2k34VVl+qPHirWgdmur7R1MXYs6BbYgrM9vOBHQMxuUH47 1TEq1MZg8gI2rnHDMWFdL1TEe0U83Z7Ti5fK6H41r3kv41NJp8tiJRO07UtykP+i6mVSsJVI2f/ 6Jrjt9bw== X-Received: by 2002:a17:907:2d0a:b0:94a:6229:8fc1 with SMTP id gs10-20020a1709072d0a00b0094a62298fc1mr1316141ejc.31.1684490201833; Fri, 19 May 2023 02:56:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4mSI+hlW9ZTvJeSxE/r4ljqfZv4nKT6ulUmkfBY3D8WD2IEjhPSNdOEo75yhwRFuTkX9si0g== X-Received: by 2002:a17:907:2d0a:b0:94a:6229:8fc1 with SMTP id gs10-20020a1709072d0a00b0094a62298fc1mr1316128ejc.31.1684490201498; Fri, 19 May 2023 02:56:41 -0700 (PDT) From: Martin Kletzander To: libvir-list@redhat.com Subject: [PATCH] qemu: Use thread-context even with numatune's restrive mode Date: Fri, 19 May 2023 11:56:37 +0200 Message-Id: <15bb752e9226852ded4969562cbe9847c82c6f01.1684490196.git.mkletzan@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 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: 1684490216140100001 Content-Type: text/plain; charset="utf-8"; x-default="true" We cannot use host-nodes attribute for it, but there is no reason for us to skip the preallocation optimisation using thread-context in such case. Thankfully returning the proper nodemask from qemuBuildMemoryBackendProps is enough to trigger this. Signed-off-by: Martin Kletzander Reviewed-by: J=C3=A1n Tomko --- src/qemu/qemu_command.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 9b993c3aad76..cb09fed0676a 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -3245,7 +3245,7 @@ qemuBuildMemoryGetPagesize(virQEMUDriverConfig *cfg, * @def: domain definition object * @mem: memory definition object * @force: forcibly use one of the backends - * @nodemaskRet: [out] bitmap used to format .host-nodes attribute + * @nodemaskRet: [out] bitmap where the memory should be allocated * * Creates a configuration object that represents memory backend of given = guest * NUMA node (domain @def and @mem). Use @priv->autoNodeset to fine tune t= he @@ -3458,10 +3458,10 @@ qemuBuildMemoryBackendProps(virJSONValue **backendP= rops, "S:policy", qemuNumaPolicyTypeToStri= ng(mode), NULL) < 0) return -1; - - if (nodemaskRet) - *nodemaskRet =3D nodemask; } + + if (nodemaskRet) + *nodemaskRet =3D nodemask; } =20 /* If none of the following is requested... */ --=20 2.40.1