From nobody Sun Feb 8 22:07:25 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=1610719986; cv=none; d=zohomail.com; s=zohoarc; b=bF0S0aUrEjb92MVyw1fSWmaNulanJojf0eBxvU6QQJ+6h+nbJ/Ykq7mp7sOtL8JNKQ6U+yYAeGf1nBGR4+htgnqyTbYpZUQy3+FqE9IRoKh1cbNLDWyKQcztsxwKu1LVvjpGmuX1VKf/wazs9eNJLJhUSsleGO2lMP/bLEusWg8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610719986; 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=FtaBEs2Hde2Cvu9dkf4+dH46nBup26dyNYwx5/DbNCs=; b=cqrdd3OWXjXGohghSzNwOv3m2JuoMTg8F1bkb1ZmdZaXDF/WZPSEeKLddGmFKO2pQkbZdWjpVzBeZxD+0RmAvlwDnBR5CE+9yGeAip173a14TBaqbTDucsg5SJtoh1CNu2NHyI/NnklUPFlBSFAklzZ9Xnb5Gb/P/Ux2jDS0NlI= 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 161071998651186.08862349211074; Fri, 15 Jan 2021 06:13:06 -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-130-Qb_I5mVxOkCI6qjNQk4nTQ-1; Fri, 15 Jan 2021 09:12:54 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E8798192296A; Fri, 15 Jan 2021 14:12:47 +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 C6BFC60C7C; Fri, 15 Jan 2021 14:12:47 +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 91A771809CA2; Fri, 15 Jan 2021 14:12:47 +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 10FECUX2025952 for ; Fri, 15 Jan 2021 09:12:30 -0500 Received: by smtp.corp.redhat.com (Postfix) id 37A1A60C6E; Fri, 15 Jan 2021 14:12:30 +0000 (UTC) Received: from localhost.localdomain (unknown [10.40.194.52]) by smtp.corp.redhat.com (Postfix) with ESMTP id AE6CC60BF3 for ; Fri, 15 Jan 2021 14:12:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1610719985; 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=FtaBEs2Hde2Cvu9dkf4+dH46nBup26dyNYwx5/DbNCs=; b=aH6Bripgr1QL9sDy1HqkV7qOU9LoEph+YX8HVWn6Gj3H8jdD0/9ZBQPmHcgPyyH1QcImU/ gcDsTcb6CTG6tFjxzS85RwSKRm4KGylyG+TRtP4u8OQ4oFBZlDk8tO78Vp0/qqFMYGMSjv dR6ruCUI4G/Jzeeemwt+gxywtBJ3pXc= X-MC-Unique: Qb_I5mVxOkCI6qjNQk4nTQ-1 From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 5/6] qemu: Create virtio-pmem in namespace Date: Fri, 15 Jan 2021 15:12:19 +0100 Message-Id: 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.12 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) Content-Type: text/plain; charset="utf-8" Some users might want to have virtio-pmem backed by a block device in which case we have to create the device in the domain private namespace. Signed-off-by: Michal Privoznik --- src/qemu/qemu_namespace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qemu/qemu_namespace.c b/src/qemu/qemu_namespace.c index 1002455ddf..35fe177bef 100644 --- a/src/qemu/qemu_namespace.c +++ b/src/qemu/qemu_namespace.c @@ -351,7 +351,8 @@ static int qemuDomainSetupMemory(virDomainMemoryDefPtr mem, char ***paths) { - if (mem->model !=3D VIR_DOMAIN_MEMORY_MODEL_NVDIMM) + if (mem->model !=3D VIR_DOMAIN_MEMORY_MODEL_NVDIMM && + mem->model !=3D VIR_DOMAIN_MEMORY_MODEL_VIRTIO_PMEM) return 0; =20 return virStringListAdd(paths, mem->nvdimmPath); --=20 2.26.2