WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] generate random numbers

To: James Harper <james.harper@xxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] generate random numbers
From: "michele.paolino" <michele.paolino@xxxxxxxxxxxxxxx>
Date: Fri, 12 Feb 2010 09:32:01 +0100
Cc: George Dunlap <george.dunlap@xxxxxxxxxxxxx>, Xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 12 Feb 2010 00:32:56 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to:cc :content-type; bh=3RB8H+JpgDwUGP4Ixx2HkxkMBm8hx3JfDLNXhomnIUw=; b=XzdWZs4k7OZZyj+V48dOX6lN8a+X0C3gS86DoX09rUm5Gz18N7jTzLZ2u2QoYcAuhu gmrGT4OWSR+RpnGG07Z2uliLIDq4gfDeUell28ciNJrKxzftUnJbTeloUxyHo+xZTnO5 ctCGO5j1ENudQRqT7D89pxkZ7/UE0qcV/Xl8o=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=xcQeaMZmgdVUbjMbJUVDy+sWSkYiz+/EANJ8gn+m2wTa9yX9Qmlrb3FbKZMet5Uion hOKL1DDbkiV3WznVH3xJxkpw6Kp8tip14arxNbAimR9AfsIvk4lF4SgSkw1JedoNttrR L2vsKlGJqKLiR3Uas7PyjTzkQQASH/X4DmGw0=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AEC6C66638C05B468B556EA548C1A77D01899202@trantor>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <14f366f91002111231reae2e41vc8f823b38e16a76b@xxxxxxxxxxxxxx> <AEC6C66638C05B468B556EA548C1A77D01899202@trantor>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I need less than 10 bits at rate of 10 milliseconds. With a random number I will select the next VCPU to schedule.

Michele

On Fri, Feb 12, 2010 at 2:51 AM, James Harper <james.harper@xxxxxxxxxxxxxxxx> wrote:
>
> Hi!
> I am interested in writing a scheduler for Xen for academic purposes.
I need
> to generate random numbers.
> Is it possible to generate random numbers in xen hypervisor
developement?If
> this is possible, how can I do it?
>

How many bits do you random numbers need to be?

At what rate do you need them? (10/second?, 1000000/second?)

Would pseudo-random numbers do? If so, what repeat interval is
sufficient?

James

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel