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: Xen-devel@xxxxxxxxxxxxxxxxxxx, George Dunlap <george.dunlap@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] generate random numbers
From: "michele.paolino" <michele.paolino@xxxxxxxxxxxxxxx>
Date: Thu, 25 Feb 2010 19:31:17 +0100
Cc:
Delivery-date: Thu, 25 Feb 2010 10:32:22 -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 :content-type; bh=8vy4t/aHONt3ADsM+BZeLZfQwPGIwLDIPYOsdH/5lSo=; b=apaQxstpAeF1+2eRG6AOQElXl8KPRu6BpUS+468adUOkWR6ILdkeQ4pyhWafbI25Vw 0x2lWYgT/7MWJolkTG8CwklWG/wzftOUQUkviuJThkvaT0pV4lYZuggYwduEX080NrKC PQ3fUgfJoYPUXLI5faWU/ywuU35sL+eWhq6Zw=
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:content-type; b=VSakNtx8hf7jl3ryVE8cKJrAFtATR6RUKUaQSBjpb1dxz+vmNfJhiVPw4+Amtv4/da frp1n4BWQaBnqGq2wjWaU/bVGKbGv+mlBV000NO2DBLGQ95umbBbdVyKWqrCuwF/YEs6 YjRaWY3inEPFBUz9cCPzWwx1Usy4+MZJ5KmoM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1266016370.15135.2942.camel@xxxxxxxxxxxxxxxxxxxxxxx>
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> <14f366f91002120032uc08b7d6sb2283e10c9444bbf@xxxxxxxxxxxxxx> <de76405a1002120415l717292e6g484a342337ac414b@xxxxxxxxxxxxxx> <14f366f91002121442h536a2d03if7d9bdee416a4a23@xxxxxxxxxxxxxx> <1266016370.15135.2942.camel@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Here's my random scheduler. It works until I start a virtual machine (error file attached is the serial console's log).
In xen call trace there isn't any of my functions.
To generate random numbers I'm using the hash (MD5) of NOW() function.
I would also Know why at boot time there are two calls at vcpu_init function for vcpu with id = 0 ??

Thanks
Michele

Attachment: error
Description: Binary data

Attachment: sched_random.c
Description: Text Data

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