From nobody Thu May 15 14:07:26 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 1526296573951222.11805851886925; Mon, 14 May 2018 04:16:13 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 587F6D81B8; Mon, 14 May 2018 11:16:12 +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 226B75D757; Mon, 14 May 2018 11:16:12 +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 CE6643FCF9; Mon, 14 May 2018 11:16:11 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w4EBFqix009819 for ; Mon, 14 May 2018 07:15:52 -0400 Received: by smtp.corp.redhat.com (Postfix) id 7041D1001948; Mon, 14 May 2018 11:15:52 +0000 (UTC) Received: from mx1.redhat.com (ext-mx08.extmail.prod.ext.phx2.redhat.com [10.5.110.32]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0D33810018F8; Mon, 14 May 2018 11:15:50 +0000 (UTC) Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) (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 F01C9C0CD16E; Mon, 14 May 2018 11:15:38 +0000 (UTC) Received: by mail-pf0-f196.google.com with SMTP id p14-v6so5859423pfh.9; Mon, 14 May 2018 04:15:38 -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.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 May 2018 04:15:37 -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=wn0pTd2cqTGlr4+6bvdW3CbWOs40+030llYkBOdo20Q=; b=k55pkc1kxFh83gkGbeV2BORe9upaNvd8qOscHqiN6KYqei21JDp2Gmi2spnGzTM8LB M4wjWNiKIAWDDh7C0eXPLR2V+q0sDO3ewjPqGVTdKQvaw0/4msOf0yYdzMEOV8FuuDGM L5pOqcl+LtWKHvpjEz2Omo1G61C+Qk3lj8mE0/xG+jqqiIBTgZpyxiFA+QuBKGGq8j4D qW+T4BUj77VaroA3fXnM2vYgWdlTcer42XyBM6frzAyjEvaJxDxYXWU48GlX96CLaR5R G/F79vdZwqB3ab+rIwNdpNGUeKDPhxVNGGnzTyQ3ZMHKqQjU0mt8X4mxQvSf0GyfPcrG f8gA== 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=wn0pTd2cqTGlr4+6bvdW3CbWOs40+030llYkBOdo20Q=; b=Na2HlAyr4h5MBBATNEx0q9FCt3xDqQsgutJlR6aVxuIkdqVlePTbywxNyMwT4H4YiO /YGiFofdmjuMoMc5Uafv952G4O7jUyhw+WfT/doyQVNncHkt+XQJ0nIoIlOplls0OawI t4VGlGKpycVtsaHbPvrDUxgPWBQgTobSlNB1fSdALdrGOhPJAGOoYKhjWqHf/PbsHrni bluabOy7YEAUaZBCXU+J+KMN7v7gMyeii8RHpWIv5/pWPENNl4xGXkeEnE7zcjyYY1hm kEOwYelpLieTJFLcbwt2R2MZr4PcEeqS9uAQDM3tqz/tA3YXQR4kVxWr6iuMerYNnwal qD+g== X-Gm-Message-State: ALKqPwej1QV2lyU5jcNFT3YgFem3hVSOycH3ndCDBUpWGYbINbYWELD8 h+SNWDWSXtVwpTBaBPkJdQItyg== X-Google-Smtp-Source: AB8JxZothnZVcHJEDP5S32Qbdc3m7BihMm5k+QI0l3mMUy7kmg2ag11Kui65M08zHuNgcZb9zi34mA== X-Received: by 2002:a62:469b:: with SMTP id o27-v6mr9959401pfi.124.1526296538326; Mon, 14 May 2018 04:15:38 -0700 (PDT) From: Prerna Saxena To: libvir-list@redhat.com Date: Mon, 14 May 2018 04:15:19 -0700 Message-Id: <20180514111522.4363-10-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.32]); Mon, 14 May 2018 11:15:39 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Mon, 14 May 2018 11:15:39 +0000 (UTC) for IP:'209.85.192.196' DOMAIN:'mail-pf0-f196.google.com' HELO:'mail-pf0-f196.google.com' FROM:'saxenap.ltc@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.696 (DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_PASS, T_DKIM_INVALID) 209.85.192.196 mail-pf0-f196.google.com 209.85.192.196 mail-pf0-f196.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.32 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Cc: pkrempa@redhat.com, mprivozn@redhat.com Subject: [libvirt] [PATCH 09/12] Vbox: Adjust references to 'loader' and 'nvram' elements given that these are now represented by virStorageSourcePtr. 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.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Mon, 14 May 2018 11:16:13 +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" Signed-off-by: Prerna Saxena --- src/vbox/vbox_common.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c index 72a24a3..60451a3 100644 --- a/src/vbox/vbox_common.c +++ b/src/vbox/vbox_common.c @@ -998,11 +998,16 @@ vboxSetBootDeviceOrder(virDomainDefPtr def, vboxDrive= rPtr data, VIR_DEBUG("def->os.initrd %s", def->os.initrd); VIR_DEBUG("def->os.cmdline %s", def->os.cmdline); VIR_DEBUG("def->os.root %s", def->os.root); - if (def->os.loader) { - VIR_DEBUG("def->os.loader->path %s", def->os.loader->path); + if (def->os.loader && + def->os.loader->src && + def->os.loader->src->type =3D=3D VIR_STORAGE_TYPE_FILE) { + + VIR_DEBUG("def->os.loader->src->path %s", def->os.loader->src-= >path); VIR_DEBUG("def->os.loader->readonly %d", def->os.loader->readonly); VIR_DEBUG("def->os.loader->type %d", def->os.loader->type); - VIR_DEBUG("def->os.loader->nvram %s", def->os.loader->nvram); + if (def->os.loader->nvram && + def->os.loader->nvram->type =3D=3D VIR_STORAGE_TYPE_FILE) + VIR_DEBUG("def->os.loader->nvram->path %s", def->os.loader-= >nvram->path); } VIR_DEBUG("def->os.bootloader %s", def->os.bootloader); VIR_DEBUG("def->os.bootloaderArgs %s", def->os.bootloaderArgs); --=20 1.8.1.2 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list