From patchwork Wed Mar 6 23:38:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 159780 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp6774730jad; Wed, 6 Mar 2019 15:38:39 -0800 (PST) X-Google-Smtp-Source: APXvYqzyuZbsrcwYPBTs11Q2SoxtkulD315nqpjJn5jD5MGKMY1lBEr9ZCD5/uz1rSvA2PkKnJjK X-Received: by 2002:ac8:3855:: with SMTP id r21mr7426195qtb.91.1551915519514; Wed, 06 Mar 2019 15:38:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551915519; cv=none; d=google.com; s=arc-20160816; b=1AqbwXX0SYSUD2j45jgCD6O6hhgQNz41vGL7gkysaRFIMhqnJh/7jOhqkjpF7Hyrey OfYL55YJ7BhXiuPuKzO6nYY71G66MWkL9yeCNFHH7k7OWu2V1q+n+YFKvvso+xKwCxtN oXLYMt+YH9O8+uTHj8GvW5yRYlAyea0XfPpjwL+Aum9lvPEiMod/7CQ0ajQEpfYL7K9N Ie6acbGrLYPmaFG9g650XpUrUUPrhb9fDDcXzenRtBcYzmIJENWkMv5RiKzQwUVFlu9N E3F7Nwwl1a3yR875GQv8a9AjRVVTNunnTmOq1L4IAb+YDV2YG6dGKqWmbOmAh/rhMsOZ m2YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :delivered-to; bh=4AxFcW7F9hCNuUgOdDDv7rqsGenz9D0ANEFSfFCem/I=; b=TbGanXZgXL8hayo6WvTCgWrnagrt/m+K6fOUi3enk/GGiCn4UNrcsA4AOUYYeSzeX8 hcemwYavPz9bFitdbjfyQY7kUdqTtbxE5dONfVIncJHRBdpUfqNIuLD5wxAsbPDSkn8h rWRmmWpFP05ZxCDYVyBAC/Ucaz5YYRXe9aJS7VXmKX/RbCXRgbmue1SIyWCrqyRIlpB9 +aPz4fZrx3w4GH0FyF96oJ6Z8RYkChBnu2W/U0Zy9qY9M7BQiUXyjDbJKr+00NULhWdb XD2w44xll8WiYekZc1S1gj5U6AYssu+hped89ElOH7Xji/qrYYJTmGY0Nf+U0HPXK3oN OMUw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id o7si1872351qtk.377.2019.03.06.15.38.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Mar 2019 15:38:39 -0800 (PST) Received-SPF: pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; Authentication-Results: mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4D019307E052; Wed, 6 Mar 2019 23:38:38 +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 201B41001DFB; Wed, 6 Mar 2019 23:38:38 +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 DDEA23FA46; Wed, 6 Mar 2019 23:38:37 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x26NcasV005925 for ; Wed, 6 Mar 2019 18:38:36 -0500 Received: by smtp.corp.redhat.com (Postfix) id C5E09611C0; Wed, 6 Mar 2019 23:38:36 +0000 (UTC) Delivered-To: libvirt-list@redhat.com Received: from worklaptop.redhat.com (ovpn-121-104.rdu2.redhat.com [10.10.121.104]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4EBF160C1B; Wed, 6 Mar 2019 23:38:32 +0000 (UTC) From: Cole Robinson To: libvirt-list@redhat.com Date: Wed, 6 Mar 2019 18:38:23 -0500 Message-Id: <5635495511dbb75da3a81418c686621845cd35ab.1551914794.git.crobinso@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 14/16] bhyve: fill in virCapsEnum 'report' 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.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Wed, 06 Mar 2019 23:38:38 +0000 (UTC) Set report=true for all enums currently formatted in the XML Signed-off-by: Cole Robinson --- src/bhyve/bhyve_capabilities.c | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list diff --git a/src/bhyve/bhyve_capabilities.c b/src/bhyve/bhyve_capabilities.c index ff78023895..27fa8ee5ef 100644 --- a/src/bhyve/bhyve_capabilities.c +++ b/src/bhyve/bhyve_capabilities.c @@ -76,6 +76,9 @@ virBhyveDomainCapsFill(virDomainCapsPtr caps, virDomainCapsStringValuesPtr firmwares) { caps->disk.supported = VIR_TRISTATE_BOOL_YES; + caps->disk.diskDevice.report = true; + caps->disk.bus.report = true; + caps->disk.model.report = true; VIR_DOMAIN_CAPS_ENUM_SET(caps->disk.diskDevice, VIR_DOMAIN_DISK_DEVICE_DISK, VIR_DOMAIN_DISK_DEVICE_CDROM); @@ -88,6 +91,8 @@ virBhyveDomainCapsFill(virDomainCapsPtr caps, caps->os.loader.supported = VIR_TRISTATE_BOOL_NO; if (bhyvecaps & BHYVE_CAP_LPC_BOOTROM) { + caps->os.loader.type.report = true; + caps->os.loader.readonly.report = true; caps->os.loader.supported = VIR_TRISTATE_BOOL_YES; VIR_DOMAIN_CAPS_ENUM_SET(caps->os.loader.type, VIR_DOMAIN_LOADER_TYPE_PFLASH); @@ -103,7 +108,9 @@ virBhyveDomainCapsFill(virDomainCapsPtr caps, caps->video.supported = VIR_TRISTATE_BOOL_NO; if (bhyvecaps & BHYVE_CAP_FBUF) { caps->graphics.supported = VIR_TRISTATE_BOOL_YES; + caps->graphics.type.report = true; caps->video.supported = VIR_TRISTATE_BOOL_YES; + caps->video.modelType.report = true; VIR_DOMAIN_CAPS_ENUM_SET(caps->graphics.type, VIR_DOMAIN_GRAPHICS_TYPE_VNC); VIR_DOMAIN_CAPS_ENUM_SET(caps->video.modelType, VIR_DOMAIN_VIDEO_TYPE_GOP); }