From nobody Sun May 5 10:05:11 2024 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; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1510085961955229.38069499273456; Tue, 7 Nov 2017 12:19:21 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A2740356E4; Tue, 7 Nov 2017 20:19:19 +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 98C0B5C48D; Tue, 7 Nov 2017 20:19:18 +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 5FBAB4BB79; Tue, 7 Nov 2017 20:19:16 +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 vA7KJD7P005249 for ; Tue, 7 Nov 2017 15:19:14 -0500 Received: by smtp.corp.redhat.com (Postfix) id F12CE5D965; Tue, 7 Nov 2017 20:19:13 +0000 (UTC) Received: from mx1.redhat.com (ext-mx05.extmail.prod.ext.phx2.redhat.com [10.5.110.29]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E8F525D9C9 for ; Tue, 7 Nov 2017 20:19:11 +0000 (UTC) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A1441329E for ; Tue, 7 Nov 2017 20:19:09 +0000 (UTC) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 00C76202C3; Tue, 7 Nov 2017 15:19:08 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Tue, 07 Nov 2017 15:19:09 -0500 Received: from narwhal.east.rtk0.net (unknown [208.107.52.58]) by mail.messagingengine.com (Postfix) with ESMTPA id 75FA17FAC9; Tue, 7 Nov 2017 15:19:08 -0500 (EST) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com A2740356E4 Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=bdragon.rtk0.net Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=libvir-list-bounces@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com A2740356E4 Authentication-Results: mx1.redhat.com; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="oGZva3MK" DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com A1441329E Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=bdragon.rtk0.net Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=none smtp.mailfrom=git@bdragon.rtk0.net DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com A1441329E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=paqMzNZBDLszp+4bw3O4/5x9S5zAhPwVCrUZMd4N3a0=; b=oGZva3MK Q94zF/H6Bx/Um5d0XMlH0pVSDkkdYTs7SPFfWQFqjy7hB3gQm3VRL5u0qF+3IT9t lJG0vNyzOkG2Uy8LWBSWJ2yc4qkIzhnqJbiUxdPHR6v+hkDks+Mu6Scs5N5aUY1i DbQcUqBwPR0cVxxOHBgxEgLpQ83BqPgt8KJIonFKN1hPTbc4sNCkFgbQnN6/fqkB 7ay7+DDN3FVn4EoDIQhTZpEpiL/BDd9jch9rVcD5J6FYUQfLvHg/FU/1quke1Lxy 1Z+aWoK6hAY1g7t9jEPnW06OWKv04U3o7okSrlcYA7x1P4L0Q2YGLUhgF46cMh5x 0iTjaDZvBZxtoA== X-ME-Sender: From: Brandon Bergren To: libvir-list@redhat.com Date: Tue, 7 Nov 2017 14:17:41 -0600 Message-Id: <20171107201741.43496-1-git@bdragon.rtk0.net> In-Reply-To: <20171106151112.GJ23361@redhat.com> References: <20171106151112.GJ23361@redhat.com> X-Greylist: Sender passed SPF test, Sender IP whitelisted by DNSRBL, ACL 205 matched, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 07 Nov 2017 20:19:10 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 07 Nov 2017 20:19:10 +0000 (UTC) for IP:'66.111.4.28' DOMAIN:'out4-smtp.messagingengine.com' HELO:'out4-smtp.messagingengine.com' FROM:'git@bdragon.rtk0.net' RCPT:'' X-RedHat-Spam-Score: -0.72 (DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL) 66.111.4.28 out4-smtp.messagingengine.com 66.111.4.28 out4-smtp.messagingengine.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.29 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Cc: Brandon Bergren Subject: [libvirt] [PATCH go-xml] Add support for host paravirt bootloader, used by Xen and bhyve. 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.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Tue, 07 Nov 2017 20:19:20 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" --- domain.go | 2 ++ domain_test.go | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/domain.go b/domain.go index aea54a5..debc5b2 100644 --- a/domain.go +++ b/domain.go @@ -797,6 +797,8 @@ type Domain struct { VCPU *DomainVCPU `xml:"vcpu"` VCPUs *DomainVCPUs `xml:"vcpus"` CPUTune *DomainCPUTune `xml:"cputune"` + Bootloader string `xml:"bootloader,omitempty"` + BootloaderArgs string `xml:"bootloader_args,omitempty"` Resource *DomainResource `xml:"resource"` SysInfo *DomainSysInfo `xml:"sysinfo"` OS *DomainOS `xml:"os"` diff --git a/domain_test.go b/domain_test.go index a7f629e..1ad5125 100644 --- a/domain_test.go +++ b/domain_test.go @@ -1722,6 +1722,22 @@ var domainTestData =3D []struct { ``, }, }, + /* Host Bootloader -- bhyve, Xen */ + { + Object: &Domain{ + Type: "bhyve", + Name: "test", + Bootloader: "/usr/local/sbin/grub-bhyve", + BootloaderArgs: "-r cd0 -m /tmp/test-device.map -M 1024M linuxguest", + }, + Expected: []string{ + ``, + ` test`, + ` /usr/local/sbin/grub-bhyve`, + ` -r cd0 -m /tmp/test-device.map -M 1024M linuxguest<= /bootloader_args>`, + ``, + }, + }, } =20 func TestDomain(t *testing.T) { --=20 2.14.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list