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

From: Stephen Hemminger
Date: Tue May 09 2006 - 16:39:24 EST


On Tue, 9 May 2006 21:26:11 +0100
Keir Fraser <Keir.Fraser@xxxxxxxxxxxx> 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?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/