From nobody Fri Oct 18 08:39:44 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=1717620237; cv=none; d=zohomail.com; s=zohoarc; b=k5Z2ON6R6cIMmww9zvFOyGPhKiuQxg+mB5Q1ga0Q/A2mSM4kJAWCnxT1HTuLLOyQs5Srym8DTBErGTDlqWW9A7lEB0IAaRcX2fQ/V/fHB2BaK8BD2IRmC9z9aLMIqgboCW5n7vEiUjX02Nvkwa4LhBR5CI3D674DtF4pSuqOYAo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1717620237; 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=SFsMgFWllQUeiqyo5Ua98dhCGkTQ2VScAOXAfxmUZQZW9HIZdGQHVJDouQZE9JlzmxPqmP4D9cDnpky7dsfZp6g/A/rcbOavnSk13ZZRvb/dSpsq11JWTxPGeajOKrCKkFdibdmVXSG1likBOEJfU7ey+IwsVYXraVMxVNN60sw= 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 1717620237981584.8720796023662; Wed, 5 Jun 2024 13:43:57 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id EAB7E216F; Wed, 5 Jun 2024 16:43:56 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id AE1272161; Wed, 5 Jun 2024 16:38:42 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 690552185; Wed, 5 Jun 2024 16:38:26 -0400 (EDT) Received: from mx0b-00190b01.pphosted.com (mx0b-00190b01.pphosted.com [67.231.157.127]) (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 20BEB2196 for ; Wed, 5 Jun 2024 16:38:01 -0400 (EDT) Received: from pps.filterd (m0122330.ppops.net [127.0.0.1]) by mx0b-00190b01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 455BqORi015135; Wed, 5 Jun 2024 21:38:00 +0100 Received: from prod-mail-ppoint1 (prod-mail-ppoint1.akamai.com [184.51.33.18] (may be forged)) by mx0b-00190b01.pphosted.com (PPS) with ESMTPS id 3yfw478jc5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 05 Jun 2024 21:38:00 +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 455K9kK1005273; Wed, 5 Jun 2024 16:37:59 -0400 Received: from prod-mail-relay10.akamai.com ([172.27.118.251]) by prod-mail-ppoint1.akamai.com (PPS) with ESMTP id 3yjeg0bfbw-1; Wed, 05 Jun 2024 16:37:59 -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 60D2665191; Wed, 5 Jun 2024 20:37:59 +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=2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,RCVD_IN_SBL_CSS,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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=QG9O3LNG5Z9qTYQ0NQQxDL8Li ipc/jze3H1Sk0hcktmaGfvpO5Yl69PAO27fbCu2Ycp5qFCg8W7CNtsJbowSzl35S X75jMmFePYU6Kj84Oxxt5/Hyqos2rhaJt8TP6Z3Kyy7rV5czSo/R6fJWK/mprV4c J3sxrbwqhbCwn+tYxxAXX9MerinTGpvhd3Drx1QxdxCA/X3Jl4If7hPeBHZRYCCk YMNo2Ug28RPnZ6yld7UrktY5d8+pN8dL2KzbUIxpwb5/Dbsjxt5jXKKK9Gdctr0g eVqE0LLefHeSTnBsOoG+85HeOWLpnOPn9mMAQ3f98OBsiucSqSKJXM6HAoENQ== To: devel@lists.libvirt.org Subject: [PATCH v2 4/4] Update documentation to reflect memory_backing_dir change in qemu.conf Date: Wed, 5 Jun 2024 16:37:38 -0400 Message-Id: <20240605203738.1880333-5-mgalaxy@akamai.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240605203738.1880333-1-mgalaxy@akamai.com> References: <20240605203738.1880333-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-06-05_02,2024-06-05_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 suspectscore=0 spamscore=0 phishscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2406050156 X-Proofpoint-ORIG-GUID: rfeAQsFEloFB4M08f3mlthvcyQR3RhBK X-Proofpoint-GUID: rfeAQsFEloFB4M08f3mlthvcyQR3RhBK 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-06-05_02,2024-06-05_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 lowpriorityscore=0 bulkscore=0 mlxscore=0 spamscore=0 impostorscore=0 clxscore=1015 suspectscore=0 phishscore=0 malwarescore=0 priorityscore=1501 mlxlogscore=901 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406050156 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: ZTKHR5SMA6S55MUIPV5KBMJHJEEGIAD4 X-Message-ID-Hash: ZTKHR5SMA6S55MUIPV5KBMJHJEEGIAD4 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, Michael Galaxy 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: 1717620238466100001 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