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

[Xen-devel] The vbd stops when it tries to access /dev/random

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] The vbd stops when it tries to access /dev/random
From: Hirofumi Tsujimura <tsujimura.hirof@xxxxxxxxxxxxxx>
Date: Thu, 11 Jan 2007 14:13:07 +0900
Delivery-date: Wed, 10 Jan 2007 21:11:45 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.9 (Windows/20061207)
Hi all,

We found a problem when we tested PV-on-HVM drivers.
The vbd stops when it tries to access /dev/random.
This problem occurs because the platform-pci doesn't
register SA_SAMPLE_RANDOM handler to request_irq.

This patch is corrected for platform-pci to register it.
Thanks.
-- 
Hirofumi Tsujimura
# HG changeset patch
# User t.horikoshi@xxxxxxxxxxxxxx
# Date 1168490742 -32400
# Node ID bc40028d11c0df0add4cb8b9f034f6ed776c3d61
# Parent  e66f047bc97e9121bdbd873f61feb37da469c2ba
fix /dev/random read

Signed-off-by: Tomonari Horikoshi <t.horikoshi@xxxxxxxxxxxxxx>
Signed-off-by: Hirofumi Tsujimura <tsujimura.hirof@xxxxxxxxxxxxxx>

diff -r e66f047bc97e -r bc40028d11c0 
unmodified_drivers/linux-2.6/platform-pci/platform-pci.c
--- a/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c  Tue Jan 09 
18:56:44 2007 -0800
+++ b/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c  Thu Jan 11 
13:45:42 2007 +0900
@@ -250,7 +250,7 @@ static int __devinit platform_pci_init(s
        if ((ret = init_xen_info()))
                goto out;
 
-       if ((ret = request_irq(pdev->irq, evtchn_interrupt, SA_SHIRQ,
+       if ((ret = request_irq(pdev->irq, evtchn_interrupt, SA_SHIRQ | 
SA_SAMPLE_RANDOM,
                               "xen-platform-pci", pdev))) {
                goto out;
        }
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>