From nobody Thu May 15 14:05:16 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1526296552480134.46786719217118; Mon, 14 May 2018 04:15:52 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 79606E749E; Mon, 14 May 2018 11:15:50 +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 317F85E7DE; Mon, 14 May 2018 11:15:50 +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 DAEED4CAA0; Mon, 14 May 2018 11:15:49 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w4EBFjj5009752 for ; Mon, 14 May 2018 07:15:45 -0400 Received: by smtp.corp.redhat.com (Postfix) id 678FB26574; Mon, 14 May 2018 11:15:45 +0000 (UTC) Received: from mx1.redhat.com (ext-mx03.extmail.prod.ext.phx2.redhat.com [10.5.110.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 77E2A26575; Mon, 14 May 2018 11:15:43 +0000 (UTC) Received: from mail-pl0-f65.google.com (mail-pl0-f65.google.com [209.85.160.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9BDA5D44CF; Mon, 14 May 2018 11:15:32 +0000 (UTC) Received: by mail-pl0-f65.google.com with SMTP id 30-v6so2342601pld.13; Mon, 14 May 2018 04:15:32 -0700 (PDT) Received: from ps-f25-dev.eng.nutanix.com ([205.209.132.2]) by smtp.gmail.com with ESMTPSA id d4-v6sm13292667pgv.73.2018.05.14.04.15.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 May 2018 04:15:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=pv65zwtlLk4hIMY2Iyy3vUHHYWDWkKvJGvUB7pliPrk=; b=bxdu4UrO1O31EovHQ9M6pXle9dRk5F2nLSNdUa/lg1Wf+BHOIs1SEneKsu3sllEzFP TDBX4yW1E/LtcVMIEc0KHupyEDxXM52Rq/aSsx1J74kHjMlHMxf85iDMgbTev/mX5EY8 IzNtunWWfB6fPJvznSocHLlb6qmsEHrKgoS6CNPdsuwjDEzz8Jy8OmP8cQdLMrzqECBh dr88eeVmrps1GXKpT3tSrvb19l9Lo0QgAaFuqhZdIyiQE6GJosTC/aOcdv6H+NRrLg9v U9MaEwDAibzNouO3xCsRH7/VqoOVI32g5YQad1cMYkzixM5ohkl5xP9OMSiiTamUvKvC GPFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=pv65zwtlLk4hIMY2Iyy3vUHHYWDWkKvJGvUB7pliPrk=; b=rpPrFWjPxcSpZoPmqUI6hZNdMh6lnTLCjUzbVOk7yHVyhShlnlnYnagH0zL9+CSRyw AevgyxQm6TtWY1mw+XpX2UzA0ZKyCS7H5crwSwOinEmlC9Zh+ddndteJK8oy7jIOVycY EzAHyge+2bgI2mhkM6HWOh7paZPFTYTNX6+DMSHeoEg5mb06y/cTuIxQYNlcv4B1AMGC rAgkB8BsNs/6EuHnWpLhArPyTWDzZXTx+1r+s/+UldzdZgPqDtq0UU5uDkBixXCgVvJB V8QzxCv1/O/71ekEtfw22mDTgxXq2iFDiDnyhYTQj/6dbBDy/Jait4vK0s5qf5tv6HFW TInw== X-Gm-Message-State: ALKqPweGwtof+Sme9iENbtLjBMlxLgW1iSjg1ddF8PA6CAkYW6uJGGdL Vuaqev+TJNMWXnwanLHZuQ0/mw== X-Google-Smtp-Source: AB8JxZqpywEteXr2v33UO7+r4Y49e60VC5yN2WE9fwUZbAp7EMxyQ72455OUsNbtGMGmjnQRVoEYjA== X-Received: by 2002:a17:902:8d8e:: with SMTP id v14-v6mr9596228plo.387.1526296531920; Mon, 14 May 2018 04:15:31 -0700 (PDT) From: Prerna Saxena To: libvir-list@redhat.com Date: Mon, 14 May 2018 04:15:12 -0700 Message-Id: <20180514111522.4363-3-saxenap.ltc@gmail.com> In-Reply-To: <20180514111522.4363-1-saxenap.ltc@gmail.com> References: <20180514111522.4363-1-saxenap.ltc@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Mon, 14 May 2018 11:15:32 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Mon, 14 May 2018 11:15:32 +0000 (UTC) for IP:'209.85.160.65' DOMAIN:'mail-pl0-f65.google.com' HELO:'mail-pl0-f65.google.com' FROM:'saxenap.ltc@gmail.com' RCPT:'' X-RedHat-Spam-Score: 1.281 * (DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS, T_DKIM_INVALID) 209.85.160.65 mail-pl0-f65.google.com 209.85.160.65 mail-pl0-f65.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.27 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Cc: pkrempa@redhat.com, mprivozn@redhat.com Subject: [libvirt] [PATCH 02/12] Loader: Add a more elaborate definition. 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: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Mon, 14 May 2018 11:15:51 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Augment definition to include virStorageSourcePtr that more comprehensively describes the nature of backing element. Also include flags for annotating if input XML definition is old-style or new-style. Signed-off-by: Prerna Saxena --- src/conf/domain_conf.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index 15d228b..bbd021b 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -1855,15 +1855,22 @@ typedef enum { =20 VIR_ENUM_DECL(virDomainLoader) =20 +struct _virStorageSource; +typedef struct _virStorageSource* virStorageSourcePtr; + typedef struct _virDomainLoaderDef virDomainLoaderDef; typedef virDomainLoaderDef *virDomainLoaderDefPtr; struct _virDomainLoaderDef { - char *path; + virStorageSourcePtr src; int readonly; /* enum virTristateBool */ virDomainLoader type; int secure; /* enum virTristateBool */ - char *nvram; /* path to non-volatile RAM */ + virStorageSourcePtr nvram; /* path to non-voliatile RAM */ char *templt; /* user override of path to master nvram */ + bool oldStyleLoader; /* is this an old-style XML formatting, + * ie, absolute path is directly specified? */ + bool oldStyleNvram; /* is this an old-style XML formatting, + * ie, absolute path is directly specified? */ }; =20 void virDomainLoaderDefFree(virDomainLoaderDefPtr loader); --=20 1.8.1.2 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list