From nobody Sat Nov 23 17:54:40 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=reject dis=none) header.from=lists.libvirt.org ARC-Seal: i=1; a=rsa-sha256; t=1722978882; cv=none; d=zohomail.com; s=zohoarc; b=LaSv8K2YS1McVMQW8stAFhCZ6N7ca/rNJ3MIRjpqL9zqYhwQKYrosQccXjp/pJh9plTNYRh+pRSyKN+eoJQZIlDuMFMO/IsqVel20vOb7IW7zkAdrWDMYX48/tOsv/gjsOmDFqRBorzH8DZf/y+DcfOa7nEu7CsMNm/8ZR8Yds4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1722978882; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Subject:Subject:To:To:Message-Id; bh=Zl9q7E/dxuQg+LEqf/eQDNDMsPw6Uo0TuD9MaAHuP9c=; b=L4vAorzpNIV521ueMZBsL7gqtq/y5vX4CA1pDDiqUBkrNEcRo5pFxUUzKh5rWDe/JcyZ5lRPJbbU7mqqSTj4T1gdDKH8VENZMjUn6zW0Bwp2D7FXthZiUclQMoGrPHKDo88NBJnoEpVMji+lh1pvs3bmHBOyI/hYaqEBFp2D5Ms= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1722978882583785.5097110128349; Tue, 6 Aug 2024 14:14:42 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 51FE0D32; Tue, 6 Aug 2024 17:14:41 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id B2A8AC2F; Tue, 6 Aug 2024 17:14:21 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 4F7F2C17; Tue, 6 Aug 2024 17:14:18 -0400 (EDT) Received: from mx0a-00190b01.pphosted.com (mx0a-00190b01.pphosted.com [67.231.149.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id A7C2FBF8 for ; Tue, 6 Aug 2024 17:14:17 -0400 (EDT) Received: from pps.filterd (m0409408.ppops.net [127.0.0.1]) by m0409408.ppops.net-00190b01. (8.18.1.2/8.18.1.2) with ESMTP id 476GxAlb026823; Tue, 6 Aug 2024 21:32:33 +0100 Received: from prod-mail-ppoint1 (prod-mail-ppoint1.akamai.com [184.51.33.18] (may be forged)) by m0409408.ppops.net-00190b01. (PPS) with ESMTPS id 40u9xvqfbq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 06 Aug 2024 21:32:33 +0100 (BST) Received: from pps.filterd (prod-mail-ppoint1.akamai.com [127.0.0.1]) by prod-mail-ppoint1.akamai.com (8.17.1.19/8.17.1.19) with ESMTP id 476IGP39027917; Tue, 6 Aug 2024 16:32:32 -0400 Received: from prod-mail-relay10.akamai.com ([172.27.118.251]) by prod-mail-ppoint1.akamai.com (PPS) with ESMTP id 40sfvybdds-1; Tue, 06 Aug 2024 16:32:32 -0400 Received: from bos-lhvcg5.bos01.corp.akamai.com (bos-lhvcg5.bos01.corp.akamai.com [172.28.222.58]) by prod-mail-relay10.akamai.com (Postfix) with ESMTP id E5A726588A; Tue, 6 Aug 2024 20:32:31 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akamai.com; h=cc :content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=jan2016.eng; bh=KTYgYE8x5 1+UhoU4CwFLVREC7LIh/pRJ9OPgHQL0bM4=; b=pMCuV7YgcLzesiXqSvQ7ForAv ThsMs5Xb/RPwP3Hu9rhUh9z2J35++IwTA+vwNzelIWxxeGI/ggwT0ckzSmc9ypjX K1c5CdL9yannXwnEuWUUMaoZIw7f88fUO0ub/dxdhhYKSKXBP15OpHzLPYv6m6kK fTFwRQREydFz3O9csPAwT24VS32n/z/Fd7cKNVx3RgpQpau/LjptYEA2ivi+oLvv CEHN4DyGoFcww8hFg44itG22DU/0QBQeGeYYMBCoOLYQp3z8l3hGuTUcsQVZsXLf 1YGuucu39huWe8swNNUk1wn9sxTFPaKkVfSn18ml8Vlg0YX5sAgkrLZfdOp4Q== To: devel@lists.libvirt.org Subject: [PATCH RESEND v2 4/4] Update documentation to reflect memory_backing_dir change in qemu.conf Date: Tue, 6 Aug 2024 16:32:21 -0400 Message-Id: <20240806203221.3673616-5-mgalaxy@akamai.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240806203221.3673616-1-mgalaxy@akamai.com> References: <20240806203221.3673616-1-mgalaxy@akamai.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-08-06_16,2024-08-06_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxlogscore=999 mlxscore=0 phishscore=0 suspectscore=0 adultscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2407110000 definitions=main-2408060143 X-Proofpoint-GUID: qA98Fv3prCYxoU20hOVtwihjBhlwouG4 X-Proofpoint-ORIG-GUID: qA98Fv3prCYxoU20hOVtwihjBhlwouG4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-08-06_16,2024-08-06_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 lowpriorityscore=0 malwarescore=0 adultscore=0 mlxlogscore=894 priorityscore=1501 impostorscore=0 mlxscore=0 clxscore=1015 spamscore=0 bulkscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2407110000 definitions=main-2408060143 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: M3L3NCXKHEQ4S4HZITMOPVW4RKQAZLNP X-Message-ID-Hash: M3L3NCXKHEQ4S4HZITMOPVW4RKQAZLNP X-MailFrom: mgalaxy@akamai.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: steven.sistare@oracle.com, johunt@akamai.com, cweng@akamai.com, bchaney@akamai.com, trakotoz@akamai.com, mkletzan@redhat.com, anthony.yznaga@oracle.com, mprivozn@redhat.com, mgalaxy@akamai.com X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: From: Michael Galaxy via Devel Reply-To: mgalaxy@akamai.com X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1722978884727116600 Content-Type: text/plain; charset="utf-8" From: Michael Galaxy Update the documentation and changelog accordingly to reflect that the syntax of the memory_backing_dir setting has changed. Signed-off-by: Michael Galaxy --- NEWS.rst | 7 +++++++ docs/kbase/virtiofs.rst | 2 ++ src/qemu/qemu.conf.in | 2 ++ 3 files changed, 11 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index f3ca29443a..64be9a9509 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -54,6 +54,13 @@ v10.4.0 (2024-06-03) ebtables/iptables). =20 * **Improvements** + * qemu: memory backing directories now support NUMA + + The primary use case of this is when persistent memory is used on + NUMA-aware systems. The setting ``memory_backing_dir`` in qemu.conf + now supports either an array or the original string. This allows + you to provide a array of locations to use that are NUMA-compatible + if needed. =20 * qemu: add zstd to supported compression formats =20 diff --git a/docs/kbase/virtiofs.rst b/docs/kbase/virtiofs.rst index 457c15da7f..931ba96104 100644 --- a/docs/kbase/virtiofs.rst +++ b/docs/kbase/virtiofs.rst @@ -144,6 +144,8 @@ memobject interface). =20 # This directory is used for memoryBacking source if configured as = file. # NOTE: big files will be stored here + # NOTE: In the case of a NUMA-aware system (such has shm/tmpfs or P= MEM), + # one can also do: memory_backing_dir =3D [ "/path/to/node/0"= , "/path/to/node/1" ] memory_backing_dir =3D "/dev/shm/" =20 * Use hugepage-backed memory diff --git a/src/qemu/qemu.conf.in b/src/qemu/qemu.conf.in index 6bc2140dcb..e6d1f8a675 100644 --- a/src/qemu/qemu.conf.in +++ b/src/qemu/qemu.conf.in @@ -897,6 +897,8 @@ =20 # This directory is used for memoryBacking source if configured as file. # NOTE: big files will be stored here +# NOTE: In the case of a NUMA-aware system (such has shm/tmpfs or PMEM), +# one can also do: memory_backing_dir =3D [ "/path/to/node/0", "/pat= h/to/node/1" ] #memory_backing_dir =3D "/var/lib/libvirt/qemu/ram" =20 # Path to the SCSI persistent reservations helper. This helper is --=20 2.34.1