Blob Blame History Raw
From 511910e1f7e956fb8a032c1c04fd0a983b2108df Mon Sep 17 00:00:00 2001
From: Laszlo Ersek <lersek@redhat.com>
Date: Thu, 6 Jan 2022 15:09:06 +0100
Subject: [PATCH] output/create_json: expose "gcaps_virtio_1_0"

Let CNV / KubeVirt know about the "gcaps_virtio_1_0" field as well, so
that it can make the same determination from "machine" and
"gcaps_virtio_1_0" as virt-v2v does in the libvirt output (from an earlier
patch in this series).

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1942325
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20220106140910.13695-6-lersek@redhat.com>
Acked-by: Richard W.M. Jones <rjones@redhat.com>
---
 output/create_json.ml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/output/create_json.ml b/output/create_json.ml
index b48902b7..985e10a9 100644
--- a/output/create_json.ml
+++ b/output/create_json.ml
@@ -219,6 +219,7 @@ let create_json_metadata source inspect
       "isa-pvpanic", JSON.Bool guestcaps.gcaps_isa_pvpanic;
       "virtio-socket", JSON.Bool guestcaps.gcaps_virtio_socket;
       "acpi", JSON.Bool guestcaps.gcaps_acpi;
+      "virtio-1-0", JSON.Bool guestcaps.gcaps_virtio_1_0;
     ] in
   List.push_back doc ("guestcaps", JSON.Dict guestcaps_dict);
 
-- 
2.31.1