From 76bee287621d22b2c9082eae6eacfea2446722c9 Mon Sep 17 00:00:00 2001 From: Konrad Rzeszutek Wilk Date: Tue, 27 Jan 2015 15:35:35 -0500 Subject: [PATCH 4/5] EFI/early: Swap noexitboot to exitboot and by default don't call ExitBootServices. Signed-off-by: Konrad Rzeszutek Wilk --- xen/common/efi/boot.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xen/common/efi/boot.c b/xen/common/efi/boot.c index 4ee8f68..d9aabd3 100644 --- a/xen/common/efi/boot.c +++ b/xen/common/efi/boot.c @@ -823,8 +823,8 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable) base_video = 1; else if ( wstrcmp(ptr + 1, L"query") == 0 ) query_only = 1; - else if ( wstrcmp(ptr + 1, L"noexitboot") == 0 ) - exit_boot_services = 0; + else if ( wstrcmp(ptr + 1, L"exitboot") == 0 ) + exit_boot_services = 1; else if ( wstrncmp(ptr + 1, L"cfg=", 4) == 0 ) cfg_file_name = ptr + 5; else if ( i + 1 < argc && wstrcmp(ptr + 1, L"cfg") == 0 ) @@ -834,6 +834,8 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable) { PrintStr(L"Xen EFI Loader options:\r\n"); PrintStr(L"-basevideo retain current video mode\r\n"); + PrintStr(L"-exitboot call ExitBootServices\r\n"); + PrintStr(L"-query call GetNextVariableName for up to five times\r\n"); PrintStr(L"-cfg= specify configuration file\r\n"); PrintStr(L"-help, -? display this help\r\n"); blexit(NULL); -- 2.1.0