Re: random: Providing a seed value to VM guests

From: H. Peter Anvin
Date: Thu May 01 2014 - 17:01:37 EST


On 05/01/2014 01:56 PM, Andy Lutomirski wrote:
>
> Even if we could emulate RDSEED effectively**, I don't really
> understand what the guest is expected to do with it. And I generally
> dislike defining an interface with no known sensible users, because it
> means that there's a good chance that the interface won't end up
> working.
>
> ** Doing this sensibly in the host will be awkward. Is the host
> supposed to use non-blocking reads of /dev/random? Getting anything
> remotely fair may be difficult.

The host can use nonblocking reads of /dev/random. Fairness would have
to be implemented at the host level, but that is true for anything.

-hpa


--
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/