Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758000Ab2BIDdQ (ORCPT ); Wed, 8 Feb 2012 22:33:16 -0500 Received: from acsinet15.oracle.com ([141.146.126.227]:35332 "EHLO acsinet15.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757896Ab2BIDdN (ORCPT ); Wed, 8 Feb 2012 22:33:13 -0500 From: Tang Liang To: mjg59@srcf.ucam.org, xen-devel@lists.xensource.com, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, konrad.wilk@oracle.com Cc: liang.tang@oracle.com Subject: [PATCH 4/5] Xen efi: Add xen efi enabled detect Date: Thu, 9 Feb 2012 11:33:36 +0800 Message-Id: <1328758416-24305-1-git-send-email-liang.tang@oracle.com> X-Mailer: git-send-email 1.7.7.5 In-Reply-To: <1328758250-23989-1-git-send-email-liang.tang@oracle.com> References: <1328758250-23989-1-git-send-email-liang.tang@oracle.com> X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090204.4F333E74.0059,ss=1,re=0.000,fgs=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1208 Lines: 39 We need to use hypercall to detect the xen efi enabled or not. If xen efi enable is set,replace the efi public function to xen efi public function and set efi_enabled to 1 in the function efi_probe; Signed-off-by: Tang Liang Acked-by: Konrad Rzeszutek Wilk --- arch/x86/xen/enlighten.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index 12eb07b..92982c1 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include @@ -1282,6 +1283,8 @@ asmlinkage void __init xen_start_kernel(void) xen_setup_runstate_info(0); + if (xen_initial_domain()) + xen_efi_probe(); /* Start the world */ #ifdef CONFIG_X86_32 i386_start_kernel(); -- 1.7.7.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/