Re: [RFC PATCH 34/35] Add the Xen virtual network device driver.

Stephen Hemminger
2006-05-09T20:39:53Z

On Tue, 9 May 2006 21:26:11 +0100
Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote:

>
> On 9 May 2006, at 21:25, Stephen Hemminger wrote:
>
> >> + memcpy(netdev->dev_addr, info->mac, ETH_ALEN);
> >> + network_connect(netdev);
> >> + info->irq = bind_evtchn_to_irqhandler(
> >> + info->evtchn, netif_int, SA_SAMPLE_RANDOM,
> >> netdev->name,
> >>
> >
> > This doesn't look like a real random entropy source. packets
> > arriving from another domain are easily timed.
>
> Where should we get our entropy from in a VM environment? Leaving the
> pool empty can cause processes to hang.
>

You probably need to get entropy from dom0 and real hardware sources.
Could you piggyback on some other perodic polling/message passing to
push some entropy out?