Re: [Qemu-devel] [PATCH 4/4] virtio-rng: hardware random number generator device

2012-07-11 Thread Dor Laor
On 07/06/2012 03:06 PM, Amit Shah wrote: On (Tue) 26 Jun 2012 [08:01:20], Anthony Liguori wrote: >On 06/26/2012 05:48 AM, Amit Shah wrote: > >On (Mon) 25 Jun 2012 [17:59:28], Anthony Liguori wrote: > >>On 06/25/2012 05:46 PM, Anthony Liguori wrote: > >>>From: Amit Shah > > > >>>diff --git a

Re: [Qemu-devel] [PATCH 4/4] virtio-rng: hardware random number generator device

2012-07-06 Thread Amit Shah
On (Tue) 26 Jun 2012 [08:01:20], Anthony Liguori wrote: > On 06/26/2012 05:48 AM, Amit Shah wrote: > >On (Mon) 25 Jun 2012 [17:59:28], Anthony Liguori wrote: > >>On 06/25/2012 05:46 PM, Anthony Liguori wrote: > >>>From: Amit Shah > > > >>>diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c > > > >>>+sta

Re: [Qemu-devel] [PATCH 4/4] virtio-rng: hardware random number generator device

2012-06-26 Thread Amit Shah
On (Tue) 26 Jun 2012 [08:01:20], Anthony Liguori wrote: > >>>+/* Send data from a char device over to the guest */ > >>>+static void chr_read(void *opaque, const void *buf, size_t size) > >>>+{ > >>>+VirtIORNG *vrng = opaque; > >>>+size_t len; > >>>+int offset; > >>>+ > >>>+if (!is

Re: [Qemu-devel] [PATCH 4/4] virtio-rng: hardware random number generator device

2012-06-26 Thread Anthony Liguori
On 06/26/2012 05:48 AM, Amit Shah wrote: On (Mon) 25 Jun 2012 [17:59:28], Anthony Liguori wrote: On 06/25/2012 05:46 PM, Anthony Liguori wrote: From: Amit Shah diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c +static void virtio_rng_class_init(ObjectClass *klass, void *data) +{ +DeviceC

Re: [Qemu-devel] [PATCH 4/4] virtio-rng: hardware random number generator device

2012-06-26 Thread Amit Shah
On (Mon) 25 Jun 2012 [17:59:28], Anthony Liguori wrote: > On 06/25/2012 05:46 PM, Anthony Liguori wrote: > >From: Amit Shah > >diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c > >+static void virtio_rng_class_init(ObjectClass *klass, void *data) > >+{ > >+DeviceClass *dc = DEVICE_CLASS(klass);

Re: [Qemu-devel] [PATCH 4/4] virtio-rng: hardware random number generator device

2012-06-25 Thread Anthony Liguori
On 06/25/2012 05:46 PM, Anthony Liguori wrote: From: Amit Shah The Linux kernel already has a virtio-rng driver, this is the device implementation. When the guest asks for entropy from the virtio hwrng, it puts a buffer in the vq. We then put entropy into that buffer, and push it back to the g

[Qemu-devel] [PATCH 4/4] virtio-rng: hardware random number generator device

2012-06-25 Thread Anthony Liguori
From: Amit Shah The Linux kernel already has a virtio-rng driver, this is the device implementation. When the guest asks for entropy from the virtio hwrng, it puts a buffer in the vq. We then put entropy into that buffer, and push it back to the guest. Signed-off-by: Amit Shah Signed-off-by:

[Qemu-devel] [PATCH 4/4] virtio-rng: hardware random number generator device

2012-06-25 Thread Anthony Liguori
From: Amit Shah The Linux kernel already has a virtio-rng driver, this is the device implementation. When the guest asks for entropy from the virtio hwrng, it puts a buffer in the vq. We then put entropy into that buffer, and push it back to the guest. Signed-off-by: Amit Shah Signed-off-by: