qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH RFC 2/2] rng-egd: introduce a parameter to set b


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH RFC 2/2] rng-egd: introduce a parameter to set buffer size
Date: Tue, 10 Dec 2013 09:58:19 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0

On 12/09/2013 07:10 AM, Amos Kong wrote:
> This patch makes the buffer size configurable, the max
> buffer size is 65536.
> 
>  -object rng-egd,chardev=chr0,id=rng0,buf_size=1024
> 
> Signed-off-by: Amos Kong <address@hidden>
> ---
>  backends/rng-egd.c | 24 +++++++++++++++++++++---
>  1 file changed, 21 insertions(+), 3 deletions(-)

> @@ -281,6 +298,7 @@ static void rng_egd_init(Object *obj)
>      object_property_add_str(obj, "chardev",
>                              rng_egd_get_chardev, rng_egd_set_chardev,
>                              NULL);
> +    object_property_add_str(obj, "buf_size", NULL, rng_egd_set_buf_size, 
> NULL);
>  }

Will libvirt ever need to set this property?  And is it easily
discoverable whether qemu supports or lacks this property?

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]