From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: [PATCH 5/8] 2.6.17: no pc speaker device in domUs Date: Wed, 14 Feb 2007 15:59:15 +0000 Message-ID: <45D33FE3.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org The pc speaker device should not be allocated for domUs I believe. Signed-off-by: Jan Beulich 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;