From nobody Wed May 1 11:43:59 2024
Delivered-To: importer@patchew.org
Received-SPF: pass (zohomail.com: domain of redhat.com designates
205.139.110.61 as permitted sender) client-ip=205.139.110.61;
envelope-from=libvir-list-bounces@redhat.com;
helo=us-smtp-delivery-1.mimecast.com;
Authentication-Results: mx.zohomail.com;
dkim=pass;
spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass(p=none dis=none) header.from=redhat.com
ARC-Seal: i=1; a=rsa-sha256; t=1577855227; cv=none;
d=zohomail.com; s=zohoarc;
b=NI+JYldvsvwzSraAUHUsmubRYQHouIWkpPxjiJPir6YNQpC5MCtktWY8bG1/4bp0NkN3z9F0LmaGfIy5OQZvsTlCNDFbN6WJNoIhpq7IKAZrmvhGaCYT4QmqqKxhaINz8twyoDg3GpOb9KiHd8FrFvxPOXZVVBtcIIUZBQOT5Xg=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
s=zohoarc;
t=1577855227;
h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To;
bh=BlyH3+yYQfrCqxcT4EAMEtfuGx0Owh6t84eQueCWn90=;
b=i6MItCw+HuGa1zFastyvBed6a5GbnIURYzJKNpjub/CreLuHWVTpeh4x+TUOdLPLv1wTjSNpRXZAjbJ+MtsLYFitfTDS4kxTa7BDvvfNqasUjL8DiSP8W2Er8zuotvgQj/pB49zFVbvxUKxRL4ROeo34KX6cWAaCUf3YwNDeWqI=
ARC-Authentication-Results: i=1; mx.zohomail.com;
dkim=pass;
spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass header.from= (p=none dis=none)
header.from=
Return-Path:
Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com
[205.139.110.61]) by mx.zohomail.com
with SMTPS id 1577855227658168.75626886802127;
Tue, 31 Dec 2019 21:07:07 -0800 (PST)
Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com
[209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id
us-mta-180-dh1vN8nsMVyMQ_WB8l8sJA-1; Wed, 01 Jan 2020 00:07:03 -0500
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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id BAB18800D41;
Wed, 1 Jan 2020 05:06:57 +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 ACA58101F942;
Wed, 1 Jan 2020 05:06:56 +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 3B3F64E193;
Wed, 1 Jan 2020 05:06:52 +0000 (UTC)
Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com
[10.5.11.12])
by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
id 00156ps9012278 for ;
Wed, 1 Jan 2020 00:06:51 -0500
Received: by smtp.corp.redhat.com (Postfix)
id 4739460C87; Wed, 1 Jan 2020 05:06:51 +0000 (UTC)
Received: from localhost.localdomain.com (ovpn-12-42.pek2.redhat.com
[10.72.12.42])
by smtp.corp.redhat.com (Postfix) with ESMTP id 338B660BEC;
Wed, 1 Jan 2020 05:06:49 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
s=mimecast20190719; t=1577855226;
h=from:from:sender:sender:reply-to:subject:subject:date:date:
message-id:message-id:to:to:cc:cc:mime-version:mime-version:
content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:list-id:list-help:
list-unsubscribe:list-subscribe:list-post;
bh=BlyH3+yYQfrCqxcT4EAMEtfuGx0Owh6t84eQueCWn90=;
b=Q52qvAlQz8qiChmweRYtijnPxSSk8oUo4oh98FhUWpofi9R/rQ08/Z3nTc8lJzcU7ZUw6s
PWfQIp+dB7sXDx7DmEpZDbkigrw4fzDFEReUAY5en/RZ0RXsCuxGyNoJcUxRRsb9hHF5PD
bd5YU/uGieGnPyqp5Zx3cjW6xdUkLnI=
From: Han Han
To: libvir-list@redhat.com
Date: Wed, 1 Jan 2020 13:06:31 +0800
Message-Id: <20200101050637.1292037-2-hhan@redhat.com>
In-Reply-To: <20200101050637.1292037-1-hhan@redhat.com>
References: <20200101050637.1292037-1-hhan@redhat.com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12
X-loop: libvir-list@redhat.com
Cc: Han Han
Subject: [libvirt] [PATCH 1/7] qemu_capabilities: Introduce
QEMU_CAPS_OBJECT_RNG_BUILTIN
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-MC-Unique: dh1vN8nsMVyMQ_WB8l8sJA-1
X-Mimecast-Spam-Score: 0
Content-Transfer-Encoding: quoted-printable
X-ZohoMail-DKIM: pass (identity @redhat.com)
Content-Type: text/plain; charset="utf-8"
It is used to check if qemu is capable of rng-builtin object:
-object rng-builtin,id=3Did
This object is added since qemu-4.2.0-rc0, commit 6c4e9d48.
Signed-off-by: Han Han
---
src/qemu/qemu_capabilities.c | 4 ++++
src/qemu/qemu_capabilities.h | 1 +
2 files changed, 5 insertions(+)
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
index 0929fd3e..19edaa67 100644
--- a/src/qemu/qemu_capabilities.c
+++ b/src/qemu/qemu_capabilities.c
@@ -553,6 +553,7 @@ VIR_ENUM_IMPL(virQEMUCaps,
"blockdev-file-dynamic-auto-read-only",
"savevm-monitor-nodes",
"drive-nvme",
+ "rng-builtin",
);
=20
=20
@@ -1245,6 +1246,7 @@ struct virQEMUCapsStringFlags virQEMUCapsObjectTypes[=
] =3D {
{ "vhost-user-vga", QEMU_CAPS_DEVICE_VHOST_USER_VGA },
{ "ramfb", QEMU_CAPS_DEVICE_RAMFB },
{ "max-arm-cpu", QEMU_CAPS_ARM_MAX_CPU },
+ { "rng-builtin", QEMU_CAPS_OBJECT_RNG_BUILTIN },
};
=20
static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsVirtioBalloon[]=
=3D {
@@ -5719,6 +5721,8 @@ virQEMUCapsFillDomainDeviceRNGCaps(virQEMUCapsPtr qem=
uCaps,
VIR_DOMAIN_CAPS_ENUM_SET(rng->backendModel, VIR_DOMAIN_RNG_BACKEND=
_EGD);
if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_OBJECT_RNG_RANDOM))
VIR_DOMAIN_CAPS_ENUM_SET(rng->backendModel, VIR_DOMAIN_RNG_BACKEND=
_RANDOM);
+ if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_OBJECT_RNG_BUILTIN))
+ VIR_DOMAIN_CAPS_ENUM_SET(rng->backendModel, VIR_DOMAIN_RNG_BACKEND=
_BUILTIN);
}
=20
=20
diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h
index 193c19fc..f25b60a2 100644
--- a/src/qemu/qemu_capabilities.h
+++ b/src/qemu/qemu_capabilities.h
@@ -534,6 +534,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for =
syntax-check */
QEMU_CAPS_BLOCK_FILE_AUTO_READONLY_DYNAMIC, /* the auto-read-only prop=
erty of block backends for files is dynamic */
QEMU_CAPS_SAVEVM_MONITOR_NODES, /* 'savevm' handles monitor-owned node=
s properly */
QEMU_CAPS_DRIVE_NVME, /* -drive file.driver=3Dnvme */
+ QEMU_CAPS_OBJECT_RNG_BUILTIN, /* -object rng-builtin */
=20
QEMU_CAPS_LAST /* this must always be the last item */
} virQEMUCapsFlags;
--=20
2.23.0
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
From nobody Wed May 1 11:43:59 2024
Delivered-To: importer@patchew.org
Received-SPF: pass (zohomail.com: domain of redhat.com designates
207.211.31.120 as permitted sender) client-ip=207.211.31.120;
envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com;
Authentication-Results: mx.zohomail.com;
dkim=pass;
spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass(p=none dis=none) header.from=redhat.com
ARC-Seal: i=1; a=rsa-sha256; t=1577855248; cv=none;
d=zohomail.com; s=zohoarc;
b=N/3dRz6S9XSffoGK35akmP7l1QHY0iJ1eoMgpJuEnOeMqIzad4wKl8w/yiSN4E3DChfny4o9gW9F9v2p+3Jjk3FRUQb/CmYJX342rS6+TR393fuYNfexGdfbM86S6RZ4rwDD7M8vuoZy4S2PGHG5bPzR5KrbCPWK+uhHAXC2Kvg=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
s=zohoarc;
t=1577855248;
h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To;
bh=A1rTfyccFHzt9PcUeEuw+L7hxlIIvzjeVaM1434HG2c=;
b=mNWKKYdYvdtJ1xB27kCi7EEzRGeKFjDgz9YyaEuL6PYrH85Tzh5xynwa0wwKFXzCZ2quX98bvhFJMH01nPwGVUyRQXlN64/bC+p8uWsu3MfpkQqWFgD91ncm8PMQJlwQmj8uJ8/o76a25v8jKGGXBHGAFMr8qhrmRG+vOdakfOU=
ARC-Authentication-Results: i=1; mx.zohomail.com;
dkim=pass;
spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass header.from= (p=none dis=none)
header.from=
Return-Path:
Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com
[207.211.31.120]) by mx.zohomail.com
with SMTPS id 1577855248248375.4977949029178;
Tue, 31 Dec 2019 21:07:28 -0800 (PST)
Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com
[209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id
us-mta-277--ragc8MIOxSUorQRz2SFBA-1; Wed, 01 Jan 2020 00:07:25 -0500
Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com
[10.5.11.16])
(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
(No client certificate requested)
by mimecast-mx01.redhat.com (Postfix) with ESMTPS id F27AA801E7E;
Wed, 1 Jan 2020 05:07:19 +0000 (UTC)
Received: from colo-mx.corp.redhat.com
(colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20])
by smtp.corp.redhat.com (Postfix) with ESMTPS id CE56B5C1B2;
Wed, 1 Jan 2020 05:07:19 +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 8BFA518089CF;
Wed, 1 Jan 2020 05:07:19 +0000 (UTC)
Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com
[10.5.11.12])
by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
id 00156rp8012290 for ;
Wed, 1 Jan 2020 00:06:53 -0500
Received: by smtp.corp.redhat.com (Postfix)
id 8F26960BF4; Wed, 1 Jan 2020 05:06:53 +0000 (UTC)
Received: from localhost.localdomain.com (ovpn-12-42.pek2.redhat.com
[10.72.12.42])
by smtp.corp.redhat.com (Postfix) with ESMTP id C9BD260BEC;
Wed, 1 Jan 2020 05:06:51 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
s=mimecast20190719; t=1577855247;
h=from:from:sender:sender:reply-to:subject:subject:date:date:
message-id:message-id:to:to:cc:cc:mime-version:mime-version:
content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:list-id:list-help:
list-unsubscribe:list-subscribe:list-post;
bh=A1rTfyccFHzt9PcUeEuw+L7hxlIIvzjeVaM1434HG2c=;
b=N2rjUXwoRJcaCYu1+zVraZpDAm2f433vidaR4KNOaTeMLvr+fbZjHOPm5HAg7uST5Aubjp
PO6V5XVKeL+yZLx52hBaasXpe9KG0owXKLIheipLgJR0I6HxR4HuzaOZDJ0304t3T/6I1S
TgT63LrO+gwyu/nj8um5SCaWIBUtZuU=
From: Han Han
To: libvir-list@redhat.com
Date: Wed, 1 Jan 2020 13:06:32 +0800
Message-Id: <20200101050637.1292037-3-hhan@redhat.com>
In-Reply-To: <20200101050637.1292037-1-hhan@redhat.com>
References: <20200101050637.1292037-1-hhan@redhat.com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12
X-loop: libvir-list@redhat.com
Cc: Han Han , Han Han
Subject: [libvirt] [PATCH 2/7] util: Do not assume comma after object id
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.79 on 10.5.11.16
X-MC-Unique: -ragc8MIOxSUorQRz2SFBA-1
X-Mimecast-Spam-Score: 0
Content-Transfer-Encoding: quoted-printable
X-ZohoMail-DKIM: pass (identity @redhat.com)
Content-Type: text/plain; charset="utf-8"
From: Han Han
For qemu object like rng-builtin, there are no properties after id
property. We should always set comma after object id. Otherwise it will
cause trailing comma on object:
-object rng-builtin,id=3DID,
Signed-off-by: Han Han
---
src/util/virqemu.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/util/virqemu.c b/src/util/virqemu.c
index f3a233af..72151e43 100644
--- a/src/util/virqemu.c
+++ b/src/util/virqemu.c
@@ -239,12 +239,13 @@ virQEMUBuildObjectCommandlineFromJSONInternal(virBuff=
erPtr buf,
return -1;
}
=20
- virBufferAsprintf(buf, "%s,id=3D%s,", type, alias);
-
- if (props &&
- virQEMUBuildCommandLineJSON(props, buf,
- virQEMUBuildCommandLineJSONArrayBitmap=
) < 0)
- return -1;
+ virBufferAsprintf(buf, "%s,id=3D%s", type, alias);
+ if (props) {
+ virBufferAsprintf(buf, ",");
+ if (virQEMUBuildCommandLineJSON(props, buf,
+ virQEMUBuildCommandLineJSONArrayBitmap) < =
0)
+ return -1;
+ }
=20
return 0;
}
--=20
2.23.0
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
From nobody Wed May 1 11:43:59 2024
Delivered-To: importer@patchew.org
Received-SPF: pass (zohomail.com: domain of redhat.com designates
207.211.31.81 as permitted sender) client-ip=207.211.31.81;
envelope-from=libvir-list-bounces@redhat.com;
helo=us-smtp-delivery-1.mimecast.com;
Authentication-Results: mx.zohomail.com;
dkim=pass;
spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass(p=none dis=none) header.from=redhat.com
ARC-Seal: i=1; a=rsa-sha256; t=1577855226; cv=none;
d=zohomail.com; s=zohoarc;
b=ZLq7t3lrOg1k4hVb1ygQqSLco9+hI88NorEQ5rnFp3Rz2VqVF5KRmHv6L5p5LBZ+fmjaGP44G7AD+8haAt5iAQEOrqcDjX7lM/ShoBLfMArpuG2h1yG2+pBMzw9NGfnL3SrfkMub8F42aHxQFId3JRsXPijcXyWc4pwyFhCpWqY=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
s=zohoarc;
t=1577855226;
h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To;
bh=Bx88JpBsRqz9aBruxH00Uv2b+xz3ixTV1s2kNqPVFE4=;
b=HyS2OoiO85oszZx/JadUCz2+cdqswldLp6NzTc8lx3NZvIgHFvbRY/Gt65/GSXVTrYjhBK5Kk7wgXymKd2xajw/iEZWKVh8300/tm30QYiozpzZG1tjJGQi56MjBsfJBT37Bax1pk27I2wHWzPJQEnzMvw4cmJbXguSCTAD0wdo=
ARC-Authentication-Results: i=1; mx.zohomail.com;
dkim=pass;
spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass header.from= (p=none dis=none)
header.from=
Return-Path:
Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com
[207.211.31.81]) by mx.zohomail.com
with SMTPS id 1577855226689424.14182163979274;
Tue, 31 Dec 2019 21:07:06 -0800 (PST)
Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com
[209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id
us-mta-359-ddHnoL-jM8WSqGtInDNYxg-1; Wed, 01 Jan 2020 00:07:03 -0500
Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com
[10.5.11.13])
(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
(No client certificate requested)
by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E3E18107ACE8;
Wed, 1 Jan 2020 05:06:57 +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 C19FA82070;
Wed, 1 Jan 2020 05:06:57 +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 4C4BA81E18;
Wed, 1 Jan 2020 05:06:57 +0000 (UTC)
Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com
[10.5.11.12])
by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
id 00156uBA012300 for ;
Wed, 1 Jan 2020 00:06:56 -0500
Received: by smtp.corp.redhat.com (Postfix)
id E20B760C85; Wed, 1 Jan 2020 05:06:56 +0000 (UTC)
Received: from localhost.localdomain.com (ovpn-12-42.pek2.redhat.com
[10.72.12.42])
by smtp.corp.redhat.com (Postfix) with ESMTP id 9FD8360BEC;
Wed, 1 Jan 2020 05:06:53 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
s=mimecast20190719; t=1577855225;
h=from:from:sender:sender:reply-to:subject:subject:date:date:
message-id:message-id:to:to:cc:cc:mime-version:mime-version:
content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:list-id:list-help:
list-unsubscribe:list-subscribe:list-post;
bh=Bx88JpBsRqz9aBruxH00Uv2b+xz3ixTV1s2kNqPVFE4=;
b=XqgJBFsHsjj1NO2a/YmH6OTFNJ3d4GX5BFdadvaWp3YjzlGjnBEkbRTfn3fkhjN0a6XEG+
euDkLnBOV+SUZGT78HBn0mJhUj1nuCtt/hIQw0LSPHq/ajLK7BY0AbUD2wz8Tw3seyQmSW
lgCbNB+2rWOjGR5JwQ1aBp5j1LW+VJU=
From: Han Han
To: libvir-list@redhat.com
Date: Wed, 1 Jan 2020 13:06:33 +0800
Message-Id: <20200101050637.1292037-4-hhan@redhat.com>
In-Reply-To: <20200101050637.1292037-1-hhan@redhat.com>
References: <20200101050637.1292037-1-hhan@redhat.com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12
X-loop: libvir-list@redhat.com
Cc: Han Han
Subject: [libvirt] [PATCH 3/7] qemu: Implement builtin rng backend
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.79 on 10.5.11.13
X-MC-Unique: ddHnoL-jM8WSqGtInDNYxg-1
X-Mimecast-Spam-Score: 0
Content-Transfer-Encoding: quoted-printable
X-ZohoMail-DKIM: pass (identity @redhat.com)
Content-Type: text/plain; charset="utf-8"
Since v4.2-rc0, QEMU introduced a builtin rng backend that uses
getrandom() syscall to generate random. Add it to libvirt with the
backend model 'builtin'.
https://bugzilla.redhat.com/show_bug.cgi?id=3D1785091
Signed-off-by: Han Han
---
src/conf/domain_audit.c | 2 ++
src/conf/domain_conf.c | 9 +++++++++
src/conf/domain_conf.h | 1 +
src/qemu/qemu_command.c | 15 +++++++++++++++
src/qemu/qemu_domain.c | 3 +++
5 files changed, 30 insertions(+)
diff --git a/src/conf/domain_audit.c b/src/conf/domain_audit.c
index fdccc585..138f2701 100644
--- a/src/conf/domain_audit.c
+++ b/src/conf/domain_audit.c
@@ -227,6 +227,7 @@ virDomainAuditRNG(virDomainObjPtr vm,
newsrcpath =3D virDomainChrSourceDefGetPath(newDef->source.cha=
rdev);
break;
=20
+ case VIR_DOMAIN_RNG_BACKEND_BUILTIN:
case VIR_DOMAIN_RNG_BACKEND_LAST:
break;
}
@@ -242,6 +243,7 @@ virDomainAuditRNG(virDomainObjPtr vm,
oldsrcpath =3D virDomainChrSourceDefGetPath(oldDef->source.cha=
rdev);
break;
=20
+ case VIR_DOMAIN_RNG_BACKEND_BUILTIN:
case VIR_DOMAIN_RNG_BACKEND_LAST:
break;
}
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index afa072e1..76599806 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -1112,6 +1112,7 @@ VIR_ENUM_IMPL(virDomainRNGBackend,
VIR_DOMAIN_RNG_BACKEND_LAST,
"random",
"egd",
+ "builtin",
);
=20
VIR_ENUM_IMPL(virDomainTPMModel,
@@ -14821,6 +14822,7 @@ virDomainRNGDefParseXML(virDomainXMLOptionPtr xmlop=
t,
goto error;
break;
=20
+ case VIR_DOMAIN_RNG_BACKEND_BUILTIN:
case VIR_DOMAIN_RNG_BACKEND_LAST:
break;
}
@@ -17764,6 +17766,7 @@ virDomainRNGFind(virDomainDefPtr def,
continue;
break;
=20
+ case VIR_DOMAIN_RNG_BACKEND_BUILTIN:
case VIR_DOMAIN_RNG_BACKEND_LAST:
break;
}
@@ -26443,6 +26446,11 @@ virDomainRNGDefFormat(virBufferPtr buf,
return -1;
virBufferAdjustIndent(buf, -2);
virBufferAddLit(buf, "\n");
+ break;
+
+ case VIR_DOMAIN_RNG_BACKEND_BUILTIN:
+ virBufferAddLit(buf, "/>\n");
+ break;
=20
case VIR_DOMAIN_RNG_BACKEND_LAST:
break;
@@ -26474,6 +26482,7 @@ virDomainRNGDefFree(virDomainRNGDefPtr def)
case VIR_DOMAIN_RNG_BACKEND_EGD:
virObjectUnref(def->source.chardev);
break;
+ case VIR_DOMAIN_RNG_BACKEND_BUILTIN:
case VIR_DOMAIN_RNG_BACKEND_LAST:
break;
}
diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
index e012975f..ac1db682 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -2103,6 +2103,7 @@ typedef enum {
typedef enum {
VIR_DOMAIN_RNG_BACKEND_RANDOM,
VIR_DOMAIN_RNG_BACKEND_EGD,
+ VIR_DOMAIN_RNG_BACKEND_BUILTIN,
=20
VIR_DOMAIN_RNG_BACKEND_LAST
} virDomainRNGBackend;
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index a8137b3a..d372d289 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -5579,6 +5579,7 @@ qemuBuildRNGBackendChrdevStr(virLogManagerPtr logMana=
ger,
=20
switch ((virDomainRNGBackend) rng->backend) {
case VIR_DOMAIN_RNG_BACKEND_RANDOM:
+ case VIR_DOMAIN_RNG_BACKEND_BUILTIN:
case VIR_DOMAIN_RNG_BACKEND_LAST:
/* no chardev backend is needed */
return 0;
@@ -5640,6 +5641,20 @@ qemuBuildRNGBackendProps(virDomainRNGDefPtr rng,
=20
break;
=20
+ case VIR_DOMAIN_RNG_BACKEND_BUILTIN:
+ if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_OBJECT_RNG_BUILTIN)) {
+ virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
+ _("this qemu doesn't support the rng-builtin "
+ "backend"));
+ return -1;
+ }
+
+ if (qemuMonitorCreateObjectProps(props, "rng-builtin", objAlias,
+ NULL) < 0)
+ return -1;
+
+ break;
+
case VIR_DOMAIN_RNG_BACKEND_LAST:
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
_("unknown rng-random backend"));
diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
index ff87720f..19636e6f 100644
--- a/src/qemu/qemu_domain.c
+++ b/src/qemu/qemu_domain.c
@@ -14807,6 +14807,7 @@ qemuDomainSetupRNG(virQEMUDriverConfigPtr cfg G_GNU=
C_UNUSED,
return -1;
=20
case VIR_DOMAIN_RNG_BACKEND_EGD:
+ case VIR_DOMAIN_RNG_BACKEND_BUILTIN:
case VIR_DOMAIN_RNG_BACKEND_LAST:
/* nada */
break;
@@ -15786,6 +15787,7 @@ qemuDomainNamespaceSetupRNG(virDomainObjPtr vm,
break;
=20
case VIR_DOMAIN_RNG_BACKEND_EGD:
+ case VIR_DOMAIN_RNG_BACKEND_BUILTIN:
case VIR_DOMAIN_RNG_BACKEND_LAST:
break;
}
@@ -15809,6 +15811,7 @@ qemuDomainNamespaceTeardownRNG(virDomainObjPtr vm,
break;
=20
case VIR_DOMAIN_RNG_BACKEND_EGD:
+ case VIR_DOMAIN_RNG_BACKEND_BUILTIN:
case VIR_DOMAIN_RNG_BACKEND_LAST:
break;
}
--=20
2.23.0
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
From nobody Wed May 1 11:43:59 2024
Delivered-To: importer@patchew.org
Received-SPF: pass (zohomail.com: domain of redhat.com designates
207.211.31.120 as permitted sender) client-ip=207.211.31.120;
envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com;
Authentication-Results: mx.zohomail.com;
dkim=pass;
spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass(p=none dis=none) header.from=redhat.com
ARC-Seal: i=1; a=rsa-sha256; t=1577855258; cv=none;
d=zohomail.com; s=zohoarc;
b=dUuQHejqEsuxLwsj5B4+MEvrZhNmF3GbEFUi2ih80ZJujL9c8bAWl5EuLmKlhcEI51pfKy9W1vgN2TeBZd+LaVrOQDHcBMjbdB+We75fwbG/plkfqer3YpdCmpAZ5c2A4oHabZuZu3DWtEwgwt93PluVw5J2kyyRMHghlpvd5mM=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
s=zohoarc;
t=1577855258;
h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To;
bh=Qd91NNLKYOjQSFFbdoykLmhSq7QFXNtxQGGqhOC2ogs=;
b=m+Iq9uYZi1TpJestb9PCmo+OkUPzUDwDLbO3aLoi8+qTwp/5t4pUzvh2iRCsI32n7idGSYoLhGRxKd+HBM5Qdk0UXjEwmpNJE17oMWIlpRYxHE75VWvvC9liLPt6CkTYvA018IFaV2VOT8EtbN0YIracGYBb+7jeOAs9swEutqw=
ARC-Authentication-Results: i=1; mx.zohomail.com;
dkim=pass;
spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass header.from= (p=none dis=none)
header.from=
Return-Path:
Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com
[207.211.31.120]) by mx.zohomail.com
with SMTPS id 1577855258850155.9167356539375;
Tue, 31 Dec 2019 21:07:38 -0800 (PST)
Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com
[209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id
us-mta-87-P2eM7ptzMwiyJf75Odb24g-1; Wed, 01 Jan 2020 00:07:36 -0500
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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id A5DC8800D48;
Wed, 1 Jan 2020 05:07:29 +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 83E5D782A1;
Wed, 1 Jan 2020 05:07:29 +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 45358819F6;
Wed, 1 Jan 2020 05:07:29 +0000 (UTC)
Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com
[10.5.11.12])
by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
id 001571DF012311 for ;
Wed, 1 Jan 2020 00:07:01 -0500
Received: by smtp.corp.redhat.com (Postfix)
id 495EA60C87; Wed, 1 Jan 2020 05:07:01 +0000 (UTC)
Received: from localhost.localdomain.com (ovpn-12-42.pek2.redhat.com
[10.72.12.42])
by smtp.corp.redhat.com (Postfix) with ESMTP id 1D74A60BF4;
Wed, 1 Jan 2020 05:06:57 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
s=mimecast20190719; t=1577855257;
h=from:from:sender:sender:reply-to:subject:subject:date:date:
message-id:message-id:to:to:cc:cc:mime-version:mime-version:
content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:list-id:list-help:
list-unsubscribe:list-subscribe:list-post;
bh=Qd91NNLKYOjQSFFbdoykLmhSq7QFXNtxQGGqhOC2ogs=;
b=XonlNV1cmhRGhMmUFnyCvSM9mtFCcnyFuyH7W0MqDVQ7mHHyutAF/YSVoZiOUGobvLjM6x
OVQmc9estfC2v1F669AWSULAG/i4DleG81Lc3SiIYUOBPDx4G2a6mtt0r6lrHEgUPb6oyc
GC7keVsazCPx/9NsD9+7xZJdxCo8t8U=
From: Han Han
To: libvir-list@redhat.com
Date: Wed, 1 Jan 2020 13:06:34 +0800
Message-Id: <20200101050637.1292037-5-hhan@redhat.com>
In-Reply-To: <20200101050637.1292037-1-hhan@redhat.com>
References: <20200101050637.1292037-1-hhan@redhat.com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12
X-loop: libvir-list@redhat.com
Cc: Han Han
Subject: [libvirt] [PATCH 4/7] docs: Add schemas for rng backend builtin
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.79 on 10.5.11.15
X-MC-Unique: P2eM7ptzMwiyJf75Odb24g-1
X-Mimecast-Spam-Score: 0
Content-Transfer-Encoding: quoted-printable
X-ZohoMail-DKIM: pass (identity @redhat.com)
Content-Type: text/plain; charset="utf-8"
Signed-off-by: Han Han
---
docs/schemas/domaincommon.rng | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index 9b555d6a..bbcf6ce8 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -5681,6 +5681,12 @@
[
][
+
+
+ builtin
+
+
+
--=20
2.23.0
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
From nobody Wed May 1 11:43:59 2024
Delivered-To: importer@patchew.org
Received-SPF: pass (zohomail.com: domain of redhat.com designates
205.139.110.61 as permitted sender) client-ip=205.139.110.61;
envelope-from=libvir-list-bounces@redhat.com;
helo=us-smtp-delivery-1.mimecast.com;
Authentication-Results: mx.zohomail.com;
dkim=pass;
spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass(p=none dis=none) header.from=redhat.com
ARC-Seal: i=1; a=rsa-sha256; t=1577855262; cv=none;
d=zohomail.com; s=zohoarc;
b=lzPU6gBS39y/+4gRxGAo0bvwQIR078HsXcuRGm5YiNN8sB+zua5PUsDZe8wKwtgXyFPQUAPtfb/wpC+z/Bwbbifn1vmxFiPC+QdzT+ngIs7RcqsoPG6/0IRDyAS6Gokz8yOo1zvZXKgJ/ckq1+epK4yh01AT2eMjJZmfzwImQsQ=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
s=zohoarc;
t=1577855262;
h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To;
bh=ktMxHdVxLxzEzndI8m80npNwU1eRq3OAoAdzHKrf2ms=;
b=ccr7fZHSXKWgDrURgX2nqvwlUTR/fMZ8hB0g0VwweqDYhn/4PIT94N2Cht601C46f+ARURFIYsC+xBOToLUXUhu2WAowEwAq4rIpnNKQdrovbCz9gI2SW+vnaj/jpTNbRunfQBwJD8aCBAxXT1Wm+mi32AWFRYQ2aZWoevZEbb4=
ARC-Authentication-Results: i=1; mx.zohomail.com;
dkim=pass;
spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass header.from= (p=none dis=none)
header.from=
Return-Path:
Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com
[205.139.110.61]) by mx.zohomail.com
with SMTPS id 1577855262044845.1039177167307;
Tue, 31 Dec 2019 21:07:42 -0800 (PST)
Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com
[209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id
us-mta-188-M1QLG9ufO4WqlQyus9Sh1w-1; Wed, 01 Jan 2020 00:07:38 -0500
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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id 950B1107ACCC;
Wed, 1 Jan 2020 05:07:33 +0000 (UTC)
Received: from colo-mx.corp.redhat.com
(colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20])
by smtp.corp.redhat.com (Postfix) with ESMTPS id 71A5F78E71;
Wed, 1 Jan 2020 05:07:33 +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 3226318089D5;
Wed, 1 Jan 2020 05:07:33 +0000 (UTC)
Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com
[10.5.11.12])
by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
id 001577K5012325 for ;
Wed, 1 Jan 2020 00:07:07 -0500
Received: by smtp.corp.redhat.com (Postfix)
id AC22860C87; Wed, 1 Jan 2020 05:07:07 +0000 (UTC)
Received: from localhost.localdomain.com (ovpn-12-42.pek2.redhat.com
[10.72.12.42])
by smtp.corp.redhat.com (Postfix) with ESMTP id 97AF260C85;
Wed, 1 Jan 2020 05:07:01 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
s=mimecast20190719; t=1577855260;
h=from:from:sender:sender:reply-to:subject:subject:date:date:
message-id:message-id:to:to:cc:cc:mime-version:mime-version:
content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:list-id:list-help:
list-unsubscribe:list-subscribe:list-post;
bh=ktMxHdVxLxzEzndI8m80npNwU1eRq3OAoAdzHKrf2ms=;
b=Kk6t6hm3xjylKGsT/b4iZl6dRP6EC7ovU2L+SGA2zxr0l48MGmDs66LWEmD6XIIwZ/dgBc
wzPEx+SHrcu8gpKxlY8ilt1qtIX9as9UDUYkRZxJLTNn8V/ain7D0BvR5BGVF+nxfCo/p5
36lRvDisknmIH/I2q0+s6MMxsyaVxk0=
From: Han Han
To: libvir-list@redhat.com
Date: Wed, 1 Jan 2020 13:06:35 +0800
Message-Id: <20200101050637.1292037-6-hhan@redhat.com>
In-Reply-To: <20200101050637.1292037-1-hhan@redhat.com>
References: <20200101050637.1292037-1-hhan@redhat.com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12
X-loop: libvir-list@redhat.com
Cc: Han Han
Subject: [libvirt] [PATCH 5/7] tests: Add tests fr virtio-rng backend builtin
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.79 on 10.5.11.11
X-MC-Unique: M1QLG9ufO4WqlQyus9Sh1w-1
X-Mimecast-Spam-Score: 0
Content-Transfer-Encoding: quoted-printable
X-ZohoMail-DKIM: pass (identity @redhat.com)
Content-Type: text/plain; charset="utf-8"
Signed-off-by: Han Han
---
.../domaincapsdata/qemu_4.2.0-q35.x86_64.xml | 1 +
.../domaincapsdata/qemu_4.2.0-tcg.x86_64.xml | 1 +
.../qemu_4.2.0-virt.aarch64.xml | 1 +
tests/domaincapsdata/qemu_4.2.0.aarch64.xml | 1 +
tests/domaincapsdata/qemu_4.2.0.ppc64.xml | 1 +
tests/domaincapsdata/qemu_4.2.0.s390x.xml | 1 +
tests/domaincapsdata/qemu_4.2.0.x86_64.xml | 1 +
.../caps_4.2.0.aarch64.xml | 1 +
.../qemucapabilitiesdata/caps_4.2.0.ppc64.xml | 1 +
.../qemucapabilitiesdata/caps_4.2.0.s390x.xml | 1 +
.../caps_4.2.0.x86_64.xml | 1 +
.../qemuxml2argvdata/virtio-rng-builtin.args | 30 ++++++++++++++++++
tests/qemuxml2argvdata/virtio-rng-builtin.xml | 26 ++++++++++++++++
tests/qemuxml2argvtest.c | 3 ++
.../qemuxml2xmloutdata/virtio-rng-builtin.xml | 31 +++++++++++++++++++
tests/qemuxml2xmltest.c | 2 ++
16 files changed, 103 insertions(+)
create mode 100644 tests/qemuxml2argvdata/virtio-rng-builtin.args
create mode 100644 tests/qemuxml2argvdata/virtio-rng-builtin.xml
create mode 100644 tests/qemuxml2xmloutdata/virtio-rng-builtin.xml
diff --git a/tests/domaincapsdata/qemu_4.2.0-q35.x86_64.xml b/tests/domainc=
apsdata/qemu_4.2.0-q35.x86_64.xml
index c4c6bfb5..eaa3b756 100644
--- a/tests/domaincapsdata/qemu_4.2.0-q35.x86_64.xml
+++ b/tests/domaincapsdata/qemu_4.2.0-q35.x86_64.xml
@@ -167,6 +167,7 @@
random
egd
+ builtin
diff --git a/tests/domaincapsdata/qemu_4.2.0-tcg.x86_64.xml b/tests/domainc=
apsdata/qemu_4.2.0-tcg.x86_64.xml
index a7f8d9c5..af482e38 100644
--- a/tests/domaincapsdata/qemu_4.2.0-tcg.x86_64.xml
+++ b/tests/domaincapsdata/qemu_4.2.0-tcg.x86_64.xml
@@ -178,6 +178,7 @@
random
egd
+ builtin
diff --git a/tests/domaincapsdata/qemu_4.2.0-virt.aarch64.xml b/tests/domai=
ncapsdata/qemu_4.2.0-virt.aarch64.xml
index e5954717..908406bf 100644
--- a/tests/domaincapsdata/qemu_4.2.0-virt.aarch64.xml
+++ b/tests/domaincapsdata/qemu_4.2.0-virt.aarch64.xml
@@ -136,6 +136,7 @@
random
egd
+ builtin
diff --git a/tests/domaincapsdata/qemu_4.2.0.aarch64.xml b/tests/domaincaps=
data/qemu_4.2.0.aarch64.xml
index bb02b1d8..c66550ce 100644
--- a/tests/domaincapsdata/qemu_4.2.0.aarch64.xml
+++ b/tests/domaincapsdata/qemu_4.2.0.aarch64.xml
@@ -134,6 +134,7 @@
random
egd
+ builtin
diff --git a/tests/domaincapsdata/qemu_4.2.0.ppc64.xml b/tests/domaincapsda=
ta/qemu_4.2.0.ppc64.xml
index 6d3ada37..7906482e 100644
--- a/tests/domaincapsdata/qemu_4.2.0.ppc64.xml
+++ b/tests/domaincapsdata/qemu_4.2.0.ppc64.xml
@@ -100,6 +100,7 @@
random
egd
+ builtin
diff --git a/tests/domaincapsdata/qemu_4.2.0.s390x.xml b/tests/domaincapsda=
ta/qemu_4.2.0.s390x.xml
index c6d92542..0cdfd435 100644
--- a/tests/domaincapsdata/qemu_4.2.0.s390x.xml
+++ b/tests/domaincapsdata/qemu_4.2.0.s390x.xml
@@ -191,6 +191,7 @@
random
egd
+ builtin
diff --git a/tests/domaincapsdata/qemu_4.2.0.x86_64.xml b/tests/domaincapsd=
ata/qemu_4.2.0.x86_64.xml
index f0e0f182..c82d12d3 100644
--- a/tests/domaincapsdata/qemu_4.2.0.x86_64.xml
+++ b/tests/domaincapsdata/qemu_4.2.0.x86_64.xml
@@ -167,6 +167,7 @@
random
egd
+ builtin
diff --git a/tests/qemucapabilitiesdata/caps_4.2.0.aarch64.xml b/tests/qemu=
capabilitiesdata/caps_4.2.0.aarch64.xml
index a6469073..b4363670 100644
--- a/tests/qemucapabilitiesdata/caps_4.2.0.aarch64.xml
+++ b/tests/qemucapabilitiesdata/caps_4.2.0.aarch64.xml
@@ -175,6 +175,7 @@
+
4001050
0
61700242
diff --git a/tests/qemucapabilitiesdata/caps_4.2.0.ppc64.xml b/tests/qemuca=
pabilitiesdata/caps_4.2.0.ppc64.xml
index ee9fb236..9b22e3fe 100644
--- a/tests/qemucapabilitiesdata/caps_4.2.0.ppc64.xml
+++ b/tests/qemucapabilitiesdata/caps_4.2.0.ppc64.xml
@@ -176,6 +176,7 @@
+
4001050
0
42900242
diff --git a/tests/qemucapabilitiesdata/caps_4.2.0.s390x.xml b/tests/qemuca=
pabilitiesdata/caps_4.2.0.s390x.xml
index fdf5cb4c..4c13f672 100644
--- a/tests/qemucapabilitiesdata/caps_4.2.0.s390x.xml
+++ b/tests/qemucapabilitiesdata/caps_4.2.0.s390x.xml
@@ -135,6 +135,7 @@
+
4001050
0
39100242
diff --git a/tests/qemucapabilitiesdata/caps_4.2.0.x86_64.xml b/tests/qemuc=
apabilitiesdata/caps_4.2.0.x86_64.xml
index 4857e2f5..93de5c37 100644
--- a/tests/qemucapabilitiesdata/caps_4.2.0.x86_64.xml
+++ b/tests/qemucapabilitiesdata/caps_4.2.0.x86_64.xml
@@ -218,6 +218,7 @@
+
4002000
0
43100242
diff --git a/tests/qemuxml2argvdata/virtio-rng-builtin.args b/tests/qemuxml=
2argvdata/virtio-rng-builtin.args
new file mode 100644
index 00000000..242129ee
--- /dev/null
+++ b/tests/qemuxml2argvdata/virtio-rng-builtin.args
@@ -0,0 +1,30 @@
+LC_ALL=3DC \
+PATH=3D/bin \
+HOME=3D/tmp/lib/domain--1-QEMUGuest1 \
+USER=3Dtest \
+LOGNAME=3Dtest \
+XDG_DATA_HOME=3D/tmp/lib/domain--1-QEMUGuest1/.local/share \
+XDG_CACHE_HOME=3D/tmp/lib/domain--1-QEMUGuest1/.cache \
+XDG_CONFIG_HOME=3D/tmp/lib/domain--1-QEMUGuest1/.config \
+QEMU_AUDIO_DRV=3Dnone \
+/usr/bin/qemu-system-i386 \
+-name QEMUGuest1 \
+-S \
+-machine pc,accel=3Dtcg,usb=3Doff,dump-guest-core=3Doff \
+-m 214 \
+-realtime mlock=3Doff \
+-smp 1,sockets=3D1,cores=3D1,threads=3D1 \
+-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
+-display none \
+-no-user-config \
+-nodefaults \
+-chardev socket,id=3Dcharmonitor,path=3D/tmp/lib/domain--1-QEMUGuest1/moni=
tor.sock,\
+server,nowait \
+-mon chardev=3Dcharmonitor,id=3Dmonitor,mode=3Dcontrol \
+-rtc base=3Dutc \
+-no-shutdown \
+-no-acpi \
+-usb \
+-device virtio-balloon-pci,id=3Dballoon0,bus=3Dpci.0,addr=3D0x3 \
+-object rng-builtin,id=3Dobjrng0 \
+-device virtio-rng-pci,rng=3Dobjrng0,id=3Drng0,bus=3Dpci.0,addr=3D0x4
diff --git a/tests/qemuxml2argvdata/virtio-rng-builtin.xml b/tests/qemuxml2=
argvdata/virtio-rng-builtin.xml
new file mode 100644
index 00000000..39bad092
--- /dev/null
+++ b/tests/qemuxml2argvdata/virtio-rng-builtin.xml
@@ -0,0 +1,26 @@
+
+ QEMUGuest1
+ c7a5fdbd-edaf-9455-926a-d65c16db1809
+ 219100
+ 219100
+ 1
+
+ hvm
+
+
+
+ destroy
+ restart
+ destroy
+
+ /usr/bin/qemu-system-i386
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c
index bfbed5c3..e3579b2e 100644
--- a/tests/qemuxml2argvtest.c
+++ b/tests/qemuxml2argvtest.c
@@ -2119,6 +2119,9 @@ mymain(void)
DO_TEST("virtio-rng-egd",
QEMU_CAPS_DEVICE_VIRTIO_RNG,
QEMU_CAPS_OBJECT_RNG_EGD);
+ DO_TEST("virtio-rng-builtin",
+ QEMU_CAPS_DEVICE_VIRTIO_RNG,
+ QEMU_CAPS_OBJECT_RNG_BUILTIN);
DO_TEST_CAPS_VER("virtio-rng-egd-unix", "2.5.0");
DO_TEST_CAPS_LATEST("virtio-rng-egd-unix");
DO_TEST("virtio-rng-multiple",
diff --git a/tests/qemuxml2xmloutdata/virtio-rng-builtin.xml b/tests/qemuxm=
l2xmloutdata/virtio-rng-builtin.xml
new file mode 100644
index 00000000..ba5b0cad
--- /dev/null
+++ b/tests/qemuxml2xmloutdata/virtio-rng-builtin.xml
@@ -0,0 +1,31 @@
+
+ QEMUGuest1
+ c7a5fdbd-edaf-9455-926a-d65c16db1809
+ 219100
+ 219100
+ 1
+
+ hvm
+
+
+
+ destroy
+ restart
+ destroy
+
+ /usr/bin/qemu-system-i386
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c
index 34c2ec8c..a18682e3 100644
--- a/tests/qemuxml2xmltest.c
+++ b/tests/qemuxml2xmltest.c
@@ -629,6 +629,8 @@ mymain(void)
QEMU_CAPS_DEVICE_VIRTIO_RNG);
DO_TEST("virtio-rng-egd",
QEMU_CAPS_DEVICE_VIRTIO_RNG);
+ DO_TEST("virtio-rng-builtin",
+ QEMU_CAPS_DEVICE_VIRTIO_RNG);
=20
DO_TEST("pseries-nvram",
QEMU_CAPS_DEVICE_SPAPR_PCI_HOST_BRIDGE,
--=20
2.23.0
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
From nobody Wed May 1 11:43:59 2024
Delivered-To: importer@patchew.org
Received-SPF: pass (zohomail.com: domain of redhat.com designates
207.211.31.120 as permitted sender) client-ip=207.211.31.120;
envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com;
Authentication-Results: mx.zohomail.com;
dkim=pass;
spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass(p=none dis=none) header.from=redhat.com
ARC-Seal: i=1; a=rsa-sha256; t=1577855248; cv=none;
d=zohomail.com; s=zohoarc;
b=WrNXxkxW2fTyAOU1AM6tGordbCzfr28KJDnMUTolBJAiBygkUN8of6lb9OgivSYWO1fjr9PdGjYFvgEkDl7ZbHI32leuwyJ/hikpDEZ0PLdLbWQIlm/54rW00YTi6TqvRAVTqkqSrVD9TyksNiEFLv6WazU5+lHp4JxV1LYGyBA=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
s=zohoarc;
t=1577855248;
h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To;
bh=RxJ8eygQccfSELGMPZjFwDNnU8YSsezJ3DlzUNSbsuI=;
b=XuReRElNMztdC4aGu+Lj9uajuvFF+jNhwTEs8iyLdYkXd7DX0kYq8U8Sm7b0u0Dn/XyelHKhvEOSVVPnk2GrwsaGGh3BKhhcdivV9sy3s+qzY6i6zps9yrcL+l3f6EyidkMs0E41GHHycmvB2qCRx9QYeqnZyv3lImZEZz1tHIk=
ARC-Authentication-Results: i=1; mx.zohomail.com;
dkim=pass;
spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass header.from= (p=none dis=none)
header.from=
Return-Path:
Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com
[207.211.31.120]) by mx.zohomail.com
with SMTPS id 1577855248807894.7852851539765;
Tue, 31 Dec 2019 21:07:28 -0800 (PST)
Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com
[209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id
us-mta-279-z3O-0EwhOUuyKPYAzm-8uQ-1; Wed, 01 Jan 2020 00:07:25 -0500
Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com
[10.5.11.12])
(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
(No client certificate requested)
by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 150F0107ACC5;
Wed, 1 Jan 2020 05:07:20 +0000 (UTC)
Received: from colo-mx.corp.redhat.com
(colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20])
by smtp.corp.redhat.com (Postfix) with ESMTPS id DBCE960BF4;
Wed, 1 Jan 2020 05:07:19 +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 95AFA18089D0;
Wed, 1 Jan 2020 05:07:19 +0000 (UTC)
Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com
[10.5.11.12])
by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
id 0015796M012335 for ;
Wed, 1 Jan 2020 00:07:09 -0500
Received: by smtp.corp.redhat.com (Postfix)
id 4CB6B60CD1; Wed, 1 Jan 2020 05:07:09 +0000 (UTC)
Received: from localhost.localdomain.com (ovpn-12-42.pek2.redhat.com
[10.72.12.42])
by smtp.corp.redhat.com (Postfix) with ESMTP id 38B7460BF4;
Wed, 1 Jan 2020 05:07:07 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
s=mimecast20190719; t=1577855247;
h=from:from:sender:sender:reply-to:subject:subject:date:date:
message-id:message-id:to:to:cc:cc:mime-version:mime-version:
content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:list-id:list-help:
list-unsubscribe:list-subscribe:list-post;
bh=RxJ8eygQccfSELGMPZjFwDNnU8YSsezJ3DlzUNSbsuI=;
b=iOIMN1a6lkXFix8900hq/sc+JeN9DyESdt5ctg4OgcgNlGi2jEUf2493+kJuxJK3+Xudt2
SoI81qGOyrQMFbUzkC5/fWtpKylLdz1r2Sg2duCc5Sk2zvXTk+PoV6zX3Of9Gx36DS418b
n3HoAH3Qkau2mMVcobZomagCinEjedc=
From: Han Han
To: libvir-list@redhat.com
Date: Wed, 1 Jan 2020 13:06:36 +0800
Message-Id: <20200101050637.1292037-7-hhan@redhat.com>
In-Reply-To: <20200101050637.1292037-1-hhan@redhat.com>
References: <20200101050637.1292037-1-hhan@redhat.com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12
X-loop: libvir-list@redhat.com
Cc: Han Han
Subject: [libvirt] [PATCH 6/7] docs: Documents for virtio-rng backend builtin
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.79 on 10.5.11.12
X-MC-Unique: z3O-0EwhOUuyKPYAzm-8uQ-1
X-Mimecast-Spam-Score: 0
Content-Transfer-Encoding: quoted-printable
X-ZohoMail-DKIM: pass (identity @redhat.com)
Content-Type: text/plain; charset="utf-8"
Signed-off-by: Han Han
---
docs/formatdomain.html.in | 10 ++++++++++
docs/formatdomaincaps.html.in | 1 +
2 files changed, 11 insertions(+)
diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index dd04a05f..31099889 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -8257,6 +8257,8 @@ qemu-kvm -net nic,model=3D? /dev/null
<source mode=3D'bind' service=3D'1234'/>
<source mode=3D'connect' host=3D'1.2.3.4' service=3D'1234'/>
</backend>
+ <!-- OR -->
+ <backend model=3D'builtin'/>
</rng>
</devices>
...
@@ -8321,6 +8323,14 @@ qemu-kvm -net nic,model=3D? /dev/null
for more information.
]
+ builtin
+
+
+ This backend uses qemu builtin random generator, which uses
+ getrandom() syscall to generate random.
+ (Since 6.0.0 and QEMU 4.2)
+
+
driver
diff --git a/docs/formatdomaincaps.html.in b/docs/formatdomaincaps.html.in
index 6bf7a1c1..aa4dece2 100644
--- a/docs/formatdomaincaps.html.in
+++ b/docs/formatdomaincaps.html.in
@@ -481,6 +481,7 @@
<enum name=3D'backendModel'>
<value>random</value>
<value>egd</value>
+ <value>builtin</value>
</enum>
</rng>
...
--=20
2.23.0
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
From nobody Wed May 1 11:43:59 2024
Delivered-To: importer@patchew.org
Received-SPF: pass (zohomail.com: domain of redhat.com designates
205.139.110.120 as permitted sender) client-ip=205.139.110.120;
envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com;
Authentication-Results: mx.zohomail.com;
dkim=pass;
spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass(p=none dis=none) header.from=redhat.com
ARC-Seal: i=1; a=rsa-sha256; t=1577855289; cv=none;
d=zohomail.com; s=zohoarc;
b=hmGo9GjT2e/e7mXB2h85QOhN0fsBZaWQYjLrPyXgPDNvutpm51fu1We9v5QIciYVo60MIZrDrurAQ+R+vNy3IcEIoOTNzSAqVK4hh01houGKE28dSZFE8007i+cRx4pSUZcqgp+1Q9wpfCfdIgnCrs+mkv7Wv/+/p3bd2gF2Uno=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
s=zohoarc;
t=1577855289;
h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To;
bh=G8jgCaS+PbC+lBzHKTgiNsA+LWO9TCHnAQzz37nUtM0=;
b=dfZqzc6ib8DRgoa8FHLhoTyxyKcl7F/qCxBiNbxXLLxsv+gxnIRJjNADQLoG+hsBEJKVU+IhXX56dyeaeiA+ZIU2KQfEu5PHYWEmnMiSRbPf/Id5cpkowsnXIGLW65HR12BrbAAcHgx0TP6ApAvXK9crowVT2hTH76MeSd12qns=
ARC-Authentication-Results: i=1; mx.zohomail.com;
dkim=pass;
spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass header.from= (p=none dis=none)
header.from=
Return-Path:
Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com
[205.139.110.120]) by mx.zohomail.com
with SMTPS id 1577855289296640.8632864866654;
Tue, 31 Dec 2019 21:08:09 -0800 (PST)
Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com
[209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id
us-mta-91-qy3uQ7gFOKuDXBLQQc2Y9g-1; Wed, 01 Jan 2020 00:07:30 -0500
Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com
[10.5.11.13])
(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
(No client certificate requested)
by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A35028024CC;
Wed, 1 Jan 2020 05:07:24 +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 7B1F982EC1;
Wed, 1 Jan 2020 05:07:24 +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 3225681E1B;
Wed, 1 Jan 2020 05:07:24 +0000 (UTC)
Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com
[10.5.11.12])
by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
id 00157FOf012352 for ;
Wed, 1 Jan 2020 00:07:15 -0500
Received: by smtp.corp.redhat.com (Postfix)
id 7262A60E3E; Wed, 1 Jan 2020 05:07:15 +0000 (UTC)
Received: from localhost.localdomain.com (ovpn-12-42.pek2.redhat.com
[10.72.12.42])
by smtp.corp.redhat.com (Postfix) with ESMTP id 2C9DD60BF4;
Wed, 1 Jan 2020 05:07:09 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
s=mimecast20190719; t=1577855288;
h=from:from:sender:sender:reply-to:subject:subject:date:date:
message-id:message-id:to:to:cc:cc:mime-version:mime-version:
content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:list-id:list-help:
list-unsubscribe:list-subscribe:list-post;
bh=G8jgCaS+PbC+lBzHKTgiNsA+LWO9TCHnAQzz37nUtM0=;
b=C1qiOfadXH/RVnPVsgxCKTP9KtJPt7f8rAX3xcMZJvbzfLOHECpSlaMQa3h6I/AjBsONYG
am7zKhKVC22+OOOczcB1n2mRBVTXSB7uH4GkFd2RWtZTRwgDYon06KUfxX2/K8MqtXeQqK
TssTR9nlevO+7AQ3AEW6E4uS/72KSSQ=
From: Han Han
To: libvir-list@redhat.com
Date: Wed, 1 Jan 2020 13:06:37 +0800
Message-Id: <20200101050637.1292037-8-hhan@redhat.com>
In-Reply-To: <20200101050637.1292037-1-hhan@redhat.com>
References: <20200101050637.1292037-1-hhan@redhat.com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12
X-loop: libvir-list@redhat.com
Cc: Han Han
Subject: [libvirt] [PATCH 7/7] news: Update news for rng backend type builtin
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.79 on 10.5.11.13
X-MC-Unique: qy3uQ7gFOKuDXBLQQc2Y9g-1
X-Mimecast-Spam-Score: 0
Content-Transfer-Encoding: quoted-printable
X-ZohoMail-DKIM: pass (identity @redhat.com)
Content-Type: text/plain; charset="utf-8"
Signed-off-by: Han Han
---
docs/news.xml | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/docs/news.xml b/docs/news.xml
index 1af57f8a..d10a8b79 100644
--- a/docs/news.xml
+++ b/docs/news.xml
@@ -68,6 +68,16 @@
guest.
+
+
+ qemu: new rng backend type: builtin
+
+
+ It implements qemu builtin rng backend. That uses getrandom sysc=
all
+ to generate random, no external rng source needed. Available sin=
ce
+ QEMU 4.2.
+
+
--=20
2.23.0
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list