From patchwork Wed Mar 6 23:37:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 159775 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp6773987jad; Wed, 6 Mar 2019 15:37:45 -0800 (PST) X-Google-Smtp-Source: APXvYqxmuXfJkKdw30ce8+J6dLIotRC0w7Az4nvCPy7DRAxPUk8kv6b7czjzWonpGu08k3vwS5i8 X-Received: by 2002:ac8:3332:: with SMTP id t47mr7778454qta.52.1551915465230; Wed, 06 Mar 2019 15:37:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551915465; cv=none; d=google.com; s=arc-20160816; b=lVGPF17AaN0rpsZX6UPFVgLoGFERCtEA144YTqhmWrHk7HqJtr4I5RsV1By2X2/7pF eOxGfxRwH3lY5SgG/3BDNxhb6KRIrJKNr+oMIoF19uDwKLJc2SsDVdW5jlwwpuJWjkya xUKHUpfShx++wDxB+nRnu+v8WyDXGtX4FjkYDopBjnxNM2a5dbxV9ImFKBx+qb6bfG+N V/hJpVRExmR/YZfbcCzH88k/9wuh6ub1JIv/gABXp1Ldow48JuHZ5cPNiuC6dMqp7mNX QwVfGGubTihPdJGqFgmkdLG2kU6Nr9J6Yld90rqRdX3bhA+hwUMfvIBCou3ctkeAK5ha ggkQ== 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=jeTo4QK51au2z1xQyRHtlgoeLhfbIYtVgNMwQ1SSMPI=; b=gs+Ap6d9PgVYJZOOyEEcN75DJrTk/jnINazmaiWqMrawJBlnps2kuJO225pkvcc2jI v0J9HSp17kV929WhLHPyU2YBqOgTPE5FOuOjSuBnvyXZ4SMeZwUsNmIdP5da77GTgLRH vYCjHV1TYZ/TKC5M7tBvEI35AZmzSoXCai/6gFoBktDIgSnnPWKuBmLT3Q65J5R0y681 CUWEHPiISLQ74vjyl2aTjqJOci45aRhhC7eF6PD9PUJxN9w5PcMUGyvNDGbhCmi0gA/y Sw1tiaQ+w3TRUjFU1i7BBXkQGZjCQ6exTtkQZ5Qm6v5WHUTltU4J+N8G/rEMfJMLmXNO +HeA== 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 y53si1916933qth.156.2019.03.06.15.37.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Mar 2019 15:37:45 -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 EFD262D807; Wed, 6 Mar 2019 23:37:43 +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 C3CB91001E61; Wed, 6 Mar 2019 23:37:43 +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 839113FAF4; Wed, 6 Mar 2019 23:37:43 +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 x26NbNcw005261 for ; Wed, 6 Mar 2019 18:37:23 -0500 Received: by smtp.corp.redhat.com (Postfix) id 292B71001DF1; Wed, 6 Mar 2019 23:37:23 +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 B97B51001DD9; Wed, 6 Mar 2019 23:37:22 +0000 (UTC) From: Cole Robinson To: libvirt-list@redhat.com Date: Wed, 6 Mar 2019 18:37:02 -0500 Message-Id: <4e6f97a2cee5c5bf09f95040324b932207dc09e8.1551914794.git.crobinso@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 13/16] libxl: 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.30]); Wed, 06 Mar 2019 23:37:44 +0000 (UTC) Set report=true for all enums currently formatted in the XML Signed-off-by: Cole Robinson --- src/libxl/libxl_capabilities.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) -- 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list diff --git a/src/libxl/libxl_capabilities.c b/src/libxl/libxl_capabilities.c index 672c1c7c66..19f90ba181 100644 --- a/src/libxl/libxl_capabilities.c +++ b/src/libxl/libxl_capabilities.c @@ -605,6 +605,8 @@ libxlMakeDomainOSCaps(const char *machine, os->supported = VIR_TRISTATE_BOOL_YES; capsLoader->supported = VIR_TRISTATE_BOOL_NO; + capsLoader->type.report = true; + capsLoader->readonly.report = true; if (STREQ(machine, "xenpv") || STREQ(machine, "xenpvh")) return 0; @@ -633,6 +635,9 @@ static int libxlMakeDomainDeviceDiskCaps(virDomainCapsDeviceDiskPtr dev) { dev->supported = VIR_TRISTATE_BOOL_YES; + dev->diskDevice.report = true; + dev->bus.report = true; + dev->model.report = true; VIR_DOMAIN_CAPS_ENUM_SET(dev->diskDevice, VIR_DOMAIN_DISK_DEVICE_DISK, @@ -650,6 +655,7 @@ static int libxlMakeDomainDeviceGraphicsCaps(virDomainCapsDeviceGraphicsPtr dev) { dev->supported = VIR_TRISTATE_BOOL_YES; + dev->type.report = true; VIR_DOMAIN_CAPS_ENUM_SET(dev->type, VIR_DOMAIN_GRAPHICS_TYPE_SDL, @@ -663,6 +669,7 @@ static int libxlMakeDomainDeviceVideoCaps(virDomainCapsDeviceVideoPtr dev) { dev->supported = VIR_TRISTATE_BOOL_YES; + dev->modelType.report = true; VIR_DOMAIN_CAPS_ENUM_SET(dev->modelType, VIR_DOMAIN_VIDEO_TYPE_VGA, @@ -685,6 +692,12 @@ static int libxlMakeDomainDeviceHostdevCaps(virDomainCapsDeviceHostdevPtr dev) { dev->supported = VIR_TRISTATE_BOOL_YES; + dev->mode.report = true; + dev->startupPolicy.report = true; + dev->subsysType.report = true; + dev->capsType.report = true; + dev->pciBackend.report = true; + /* VIR_DOMAIN_HOSTDEV_MODE_CAPABILITIES is for containers only */ VIR_DOMAIN_CAPS_ENUM_SET(dev->mode, VIR_DOMAIN_HOSTDEV_MODE_SUBSYS);