From nobody Sun Feb 8 15:53:55 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.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 63.128.21.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=1611847387; cv=none; d=zohomail.com; s=zohoarc; b=b+ELBkz1dKaLPvzK2UPG50J7v4PWVAqCWtVrwrzJtIt4ELmJQPOxXQZpL9lO54JKOGkm5aUUKSbtv2sNmO669cbkBMwEEkSW6BJYDDL0dTkyLuTxR2VBbseeLutYTpA/d6SAvZYmxF2h7qeiH/jCzyGwRvNyZWG30S9kVzI2YOc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1611847387; h=Content-Type:Content-Transfer-Encoding:Cc: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=iB6/Pbo6a781h/3IvwwRgsSlO3KH6bhJ+gLZHam90AA=; b=bJeeYW02xJo70S7O5WuxHbgVk6SSUNUXHkK1oyv+d+zXzfzR7kUjeAOjrT6WLeLPfFjVMaQCzHKVYibC3BtOMaDIdfgjjpDo5tOgVdE8ejl2zwT15ZjRiS0G6VrXEXOQIDSGLga2VjrOmMIHTm6bh8E28uNysgNWKavMnvvn+Lk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.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 [63.128.21.124]) by mx.zohomail.com with SMTPS id 1611847387152328.5297200525441; Thu, 28 Jan 2021 07:23:07 -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-323-QhwtyqlsMea6Rml7Cu4CvA-1; Thu, 28 Jan 2021 10:22:35 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6B12B1005513; Thu, 28 Jan 2021 15:22:28 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 477175C1BB; Thu, 28 Jan 2021 15:22:28 +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 11FAD5002D; Thu, 28 Jan 2021 15:22:28 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 10SFFpoC029936 for ; Thu, 28 Jan 2021 10:15:51 -0500 Received: by smtp.corp.redhat.com (Postfix) id AC4995D9F4; Thu, 28 Jan 2021 15:15:51 +0000 (UTC) Received: from lpt.redhat.com (unknown [10.40.208.52]) by smtp.corp.redhat.com (Postfix) with ESMTP id D481C5D9F1; Thu, 28 Jan 2021 15:15:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611847386; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=iB6/Pbo6a781h/3IvwwRgsSlO3KH6bhJ+gLZHam90AA=; b=JQMo+YzE9+dqODpkopKzPYaL5qLiP89GjZxDDanrh4BDQ5osPEdN3pb6r/vdKWl3OU+IJQ zx6+SkEx/hwxQERqCqunQKctcqoBhT+MR6eHB7Pdoho8v9Hk9iJkxDvdlZuEijOys3N943 vrJREkIP+lWHf5ddoGSCGfYOxB6JAg8= X-MC-Unique: QhwtyqlsMea6Rml7Cu4CvA-1 From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Subject: [libvirt PATCH 2/7] conf: add boot order to filesystem Date: Thu, 28 Jan 2021 16:15:35 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Cc: lersek@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.16 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-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Signed-off-by: J=C3=A1n Tomko --- docs/schemas/domaincommon.rng | 3 +++ src/conf/domain_conf.c | 5 +++-- tests/qemuxml2argvdata/vhost-user-fs-hugepages.xml | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index a4bddcf132..09e7747787 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -2812,6 +2812,9 @@ + + + diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index dab4f10326..b8cfadb70c 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -10345,7 +10345,8 @@ virDomainFSDefParseXML(virDomainXMLOptionPtr xmlopt, def->src->path =3D g_steal_pointer(&source); def->dst =3D g_steal_pointer(&target); =20 - if (virDomainDeviceInfoParseXML(xmlopt, node, &def->info, flags) < 0) + if (virDomainDeviceInfoParseXML(xmlopt, node, &def->info, + flags | VIR_DOMAIN_DEF_PARSE_ALLOW_BOO= T) < 0) goto error; =20 return def; @@ -24896,7 +24897,7 @@ virDomainFSDefFormat(virBufferPtr buf, if (def->readonly) virBufferAddLit(buf, "\n"); =20 - virDomainDeviceInfoFormat(buf, &def->info, flags); + virDomainDeviceInfoFormat(buf, &def->info, flags | VIR_DOMAIN_DEF_FORM= AT_ALLOW_BOOT); =20 if (def->space_hard_limit) virBufferAsprintf(buf, "" diff --git a/tests/qemuxml2argvdata/vhost-user-fs-hugepages.xml b/tests/qem= uxml2argvdata/vhost-user-fs-hugepages.xml index e9982150c7..3f130dd152 100644 --- a/tests/qemuxml2argvdata/vhost-user-fs-hugepages.xml +++ b/tests/qemuxml2argvdata/vhost-user-fs-hugepages.xml @@ -66,6 +66,7 @@ +
--=20 2.29.2