Skip to contentSkip to conversation

The vbd stops when it tries to access /dev/random

PATCH Hirofumi Tsujimura 1 participant 2 messages Jan 11, 2007

lore
Share & tools
lore
#0 lore raw

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.

Signature · 1 line
Hirofumi Tsujimura

# HG changeset patch
# User [email protected]
# Date 1168490742 -32400
# Node ID bc40028d11c0df0add4cb8b9f034f6ed776c3d61 # Parent e66f047bc97e9121bdbd873f61feb37da469c2ba fix /dev/random read

unmodified_drivers/linux-2.6/platform-pci/platform-pci.c +1 -1
diff -r e66f047bc97e -r bc40028d11c0 unmodified_drivers/linux-2.6/platform-pci/platform-pci.c
@@ -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
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

Sorry, the vbd doesn't stop.

the random device (/dev/random) stops when system volume of guest domain is started by the vbd. --
Hirofumi Tsujimura