All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hirofumi Tsujimura <tsujimura.hirof@jp.fujitsu.com>
To: xen-devel@lists.xensource.com
Subject: The vbd stops when it tries to access /dev/random
Date: Thu, 11 Jan 2007 14:13:07 +0900	[thread overview]
Message-ID: <45A5C763.5020908@jp.fujitsu.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

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

[-- Attachment #2: pv-random-device.patch --]
[-- Type: text/plain, Size: 929 bytes --]

# HG changeset patch
# User t.horikoshi@jp.fujitsu.com
# Date 1168490742 -32400
# Node ID bc40028d11c0df0add4cb8b9f034f6ed776c3d61
# Parent  e66f047bc97e9121bdbd873f61feb37da469c2ba
fix /dev/random read

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

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;
 	}

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

             reply	other threads:[~2007-01-11  5:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-11  5:13 Hirofumi Tsujimura [this message]
2007-01-11 13:14 ` The vbd stops when it tries to access /dev/random Hirofumi Tsujimura

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45A5C763.5020908@jp.fujitsu.com \
    --to=tsujimura.hirof@jp.fujitsu.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.