All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 5/8] 2.6.17: no pc speaker device in domUs
@ 2007-02-14 15:59 Jan Beulich
  0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2007-02-14 15:59 UTC (permalink / raw)
  To: xen-devel

The pc speaker device should not be allocated for domUs I believe.

Signed-off-by: Jan Beulich <jbeulich@novell.com>

Index: head-2007-02-08/arch/i386/kernel/setup-xen.c
===================================================================
--- head-2007-02-08.orig/arch/i386/kernel/setup-xen.c	2007-02-08 17:07:13.000000000 +0100
+++ head-2007-02-08/arch/i386/kernel/setup-xen.c	2007-02-08 17:09:47.000000000 +0100
@@ -1839,6 +1839,9 @@ static __init int add_pcspkr(void)
 	struct platform_device *pd;
 	int ret;
 
+	if (!is_initial_xendomain())
+		return 0;
+
 	pd = platform_device_alloc("pcspkr", -1);
 	if (!pd)
 		return -ENOMEM;
Index: head-2007-02-08/arch/x86_64/kernel/setup-xen.c
===================================================================
--- head-2007-02-08.orig/arch/x86_64/kernel/setup-xen.c	2007-02-08 17:07:13.000000000 +0100
+++ head-2007-02-08/arch/x86_64/kernel/setup-xen.c	2007-02-08 17:09:47.000000000 +0100
@@ -1644,6 +1644,9 @@ static __init int add_pcspkr(void)
 	struct platform_device *pd;
 	int ret;
 
+	if (!is_initial_xendomain())
+		return 0;
+
 	pd = platform_device_alloc("pcspkr", -1);
 	if (!pd)
 		return -ENOMEM;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-14 15:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-14 15:59 [PATCH 5/8] 2.6.17: no pc speaker device in domUs Jan Beulich

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.