misc EFI adjustments
cover misc EFI adjustments
1: x86/EFI: fix EFI_MEMORY_WP handling
2: EFI/early: add /mapbs to map EfiBootServices{Code,Data}
3: EFI: support default attributes to map Runtime service areas with none given 4: x86/EFI: adjust EFI_MEMORY_WP handling for spec version 2.5
Patches 2 and 3 are based on earlier work by Konrad.
PATCH 1/4 x86/EFI: fix EFI_MEMORY_WP handling
xen/common/efi/boot.c +1 -1
@@ -1195,7 +1195,7 @@ void __init efi_init_memory(void) }if ( desc->Attribute &EFI_MEMORY_WP ) - prot &= _PAGE_RW; + prot &= ~_PAGE_RW;if ( desc->Attribute &EFI_MEMORY_XP ) prot |= _PAGE_NX;
x86/EFI: fix EFI_MEMORY_WP handling
xen/common/efi/boot.c +1 -1
@@ -1195,7 +1195,7 @@ void __init efi_init_memory(void) }if ( desc->Attribute &EFI_MEMORY_WP ) - prot &= _PAGE_RW; + prot &= ~_PAGE_RW;if ( desc->Attribute &EFI_MEMORY_XP ) prot |= _PAGE_NX;
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [PATCH 1/4] x86/EFI: fix EFI_MEMORY_WP handling
Quoted 1 line · Jan Beulich
Signed-off-by Jan Beulich <[email protected]>
Quoted 17 lines
xen/common/efi/boot.c +1
-1@@ -1195,7 +1195,7 @@ void __init efi_init_memory(void) }if ( desc->Attribute &EFI_MEMORY_WP ) - prot &= _PAGE_RW; + prot &= ~_PAGE_RW;if ( desc->Attribute &EFI_MEMORY_XP ) prot |= _PAGE_NX;
Quoted 4 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
PATCH 2/4 EFI/early: add /mapbs to map EfiBootServices{Code, Data}
In reply to Jan BeulichFrom: Konrad Rzeszutek Wilk <[email protected]>
To help on certain platforms to run.
xen/arch/x86/efi/efi-boot.h +8 -4
@@ -148,12 +148,16 @@ static void __init efi_arch_process_memoswitch ( desc->Type ) { -default : - type =E820_RESERVED ; -break ; -case EfiConventionalMemory:case EfiBootServicesCode:case EfiBootServicesData: +if ( map_bs ) + { +default : + type =E820_RESERVED ; +break ; + } +/* fall through */ +case EfiConventionalMemory:if ( !trampoline_phys && desc->PhysicalStart + len <=0x100000 && len >= cfg.size && desc->PhysicalStart + len > cfg.addr ) cfg.addr = (desc->PhysicalStart + len - cfg.size) &PAGE_MASK ;
xen/common/efi/boot.c +15 -3
@@ -84,6 +84,7 @@ static SIMPLE_TEXT_OUTPUT_INTERFACE *__istatic SIMPLE_TEXT_OUTPUT_INTERFACE *__initdata StdErr;static UINT32 __initdata mdesc_ver; +static bool_t __initdata map_bs;static struct file __initdata cfg;static struct file __initdata kernel;
@@ -753,6 +754,8 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SY {if (wstrcmp (ptr +1 ,L"basevideo" ) ==0 ) base_video =1 ; +else if (wstrcmp (ptr +1 ,L"mapbs" ) ==0 ) + map_bs =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 )
@@ -762,6 +765,7 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SY {PrintStr (L"Xen EFI Loader options:\r\n" );PrintStr (L"-basevideo retain current video mode\r\n" ); +PrintStr (L"-mapbs map EfiBootServices{Code,Data}\r\n" );PrintStr (L"-cfg=<file> specify configuration file\r\n" );PrintStr (L"-help, -? display this help\r\n" );blexit (NULL );
@@ -1158,7 +1162,8 @@ void __init efi_init_memory(void) } *extra, *extra_head = NULL;#endif -printk (XENLOG_INFO "EFI memory map:\n" ); +printk (XENLOG_INFO "EFI memory map:%s\n" , + map_bs ?" (mapping BootServices)" :"" );for ( i =0 ; i < efi_memmap_size; i += efi_mdesc_size ) {EFI_MEMORY_DESCRIPTOR *desc = efi_memmap + i;
@@ -1171,7 +1176,11 @@ void __init efi_init_memory(void) desc->PhysicalStart, desc->PhysicalStart + len -1 , desc->Type, desc->Attribute); -if ( !efi_rs_enable || !(desc->Attribute &EFI_MEMORY_RUNTIME ) ) +if ( !efi_rs_enable || + (!(desc->Attribute &EFI_MEMORY_RUNTIME ) && + (!map_bs || + (desc->Type != EfiBootServicesCode && + desc->Type != EfiBootServicesData))) )continue ; desc->VirtualStart =INVALID_VIRTUAL_ADDRESS ;
@@ -1257,7 +1266,10 @@ void __init efi_init_memory(void) {const EFI_MEMORY_DESCRIPTOR *desc = efi_memmap + i; -if ( (desc->Attribute &EFI_MEMORY_RUNTIME ) && +if ( ((desc->Attribute &EFI_MEMORY_RUNTIME ) || + (map_bs && + (desc->Type == EfiBootServicesCode || + desc->Type == EfiBootServicesData))) && desc->VirtualStart !=INVALID_VIRTUAL_ADDRESS && desc->VirtualStart != desc->PhysicalStart ) copy_mapping(PFN_DOWN(desc->PhysicalStart),
EFI/early: add /mapbs to map EfiBootServices{Code,Data}
From: Konrad Rzeszutek Wilk <[email protected]>
To help on certain platforms to run.
xen/arch/x86/efi/efi-boot.h +8 -4
@@ -148,12 +148,16 @@ static void __init efi_arch_process_memoswitch ( desc->Type ) { -default : - type =E820_RESERVED ; -break ; -case EfiConventionalMemory:case EfiBootServicesCode:case EfiBootServicesData: +if ( map_bs ) + { +default : + type =E820_RESERVED ; +break ; + } +/* fall through */ +case EfiConventionalMemory:if ( !trampoline_phys && desc->PhysicalStart + len <=0x100000 && len >= cfg.size && desc->PhysicalStart + len > cfg.addr ) cfg.addr = (desc->PhysicalStart + len - cfg.size) &PAGE_MASK ;
xen/common/efi/boot.c +15 -3
@@ -84,6 +84,7 @@ static SIMPLE_TEXT_OUTPUT_INTERFACE *__istatic SIMPLE_TEXT_OUTPUT_INTERFACE *__initdata StdErr;static UINT32 __initdata mdesc_ver; +static bool_t __initdata map_bs;static struct file __initdata cfg;static struct file __initdata kernel;
@@ -753,6 +754,8 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SY {if (wstrcmp (ptr +1 ,L"basevideo" ) ==0 ) base_video =1 ; +else if (wstrcmp (ptr +1 ,L"mapbs" ) ==0 ) + map_bs =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 )
@@ -762,6 +765,7 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SY {PrintStr (L"Xen EFI Loader options:\r\n" );PrintStr (L"-basevideo retain current video mode\r\n" ); +PrintStr (L"-mapbs map EfiBootServices{Code,Data}\r\n" );PrintStr (L"-cfg=<file> specify configuration file\r\n" );PrintStr (L"-help, -? display this help\r\n" );blexit (NULL );
@@ -1158,7 +1162,8 @@ void __init efi_init_memory(void) } *extra, *extra_head = NULL;#endif -printk (XENLOG_INFO "EFI memory map:\n" ); +printk (XENLOG_INFO "EFI memory map:%s\n" , + map_bs ?" (mapping BootServices)" :"" );for ( i =0 ; i < efi_memmap_size; i += efi_mdesc_size ) {EFI_MEMORY_DESCRIPTOR *desc = efi_memmap + i;
@@ -1171,7 +1176,11 @@ void __init efi_init_memory(void) desc->PhysicalStart, desc->PhysicalStart + len -1 , desc->Type, desc->Attribute); -if ( !efi_rs_enable || !(desc->Attribute &EFI_MEMORY_RUNTIME ) ) +if ( !efi_rs_enable || + (!(desc->Attribute &EFI_MEMORY_RUNTIME ) && + (!map_bs || + (desc->Type != EfiBootServicesCode && + desc->Type != EfiBootServicesData))) )continue ; desc->VirtualStart =INVALID_VIRTUAL_ADDRESS ;
@@ -1257,7 +1266,10 @@ void __init efi_init_memory(void) {const EFI_MEMORY_DESCRIPTOR *desc = efi_memmap + i; -if ( (desc->Attribute &EFI_MEMORY_RUNTIME ) && +if ( ((desc->Attribute &EFI_MEMORY_RUNTIME ) || + (map_bs && + (desc->Type == EfiBootServicesCode || + desc->Type == EfiBootServicesData))) && desc->VirtualStart !=INVALID_VIRTUAL_ADDRESS && desc->VirtualStart != desc->PhysicalStart ) copy_mapping(PFN_DOWN(desc->PhysicalStart),
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [PATCH 2/4] EFI/early: add /mapbs to map EfiBootServices{Code, Data}
Quoted 10 lines · Jan Beulich
From: Konrad Rzeszutek Wilk <[email protected]>
To help on certain platforms to run.
Signed-off-by Konrad Rzeszutek Wilk <[email protected]>Signed-off-by Jan Beulich <[email protected]>
xen/arch/x86/efi/efi-boot.h static void __init efi_arch_process_memo · line 153
Quoted 10 lines
xen/arch/x86/efi/efi-boot.h +1
-4@@ -148,12 +148,16 @@ static void __init efi_arch_process_memoswitch ( desc->Type ) { -default : - type =E820_RESERVED ; -break ; -case EfiConventionalMemory:case EfiBootServicesCode:case EfiBootServicesData: +if ( map_bs )
if ( !map_bs ) surely? It is the else case which sets a type of E820_RAM.
~Andrew
Quoted 77 lines
xen/arch/x86/efi/efi-boot.h +7
-0+ { +default : + type =E820_RESERVED ; +break ; + } +/* fall through */ +case EfiConventionalMemory:if ( !trampoline_phys && desc->PhysicalStart + len <=0x100000 && len >= cfg.size && desc->PhysicalStart + len > cfg.addr ) cfg.addr = (desc->PhysicalStart + len - cfg.size) &PAGE_MASK ;xen/common/efi/boot.c +15
-3@@ -84,6 +84,7 @@ static SIMPLE_TEXT_OUTPUT_INTERFACE *__istatic SIMPLE_TEXT_OUTPUT_INTERFACE *__initdata StdErr;static UINT32 __initdata mdesc_ver; +static bool_t __initdata map_bs;static struct file __initdata cfg;static struct file __initdata kernel;@@ -753,6 +754,8 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SY {if (wstrcmp (ptr +1 ,L"basevideo" ) ==0 ) base_video =1 ; +else if (wstrcmp (ptr +1 ,L"mapbs" ) ==0 ) + map_bs =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 )@@ -762,6 +765,7 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SY {PrintStr (L"Xen EFI Loader options:\r\n" );PrintStr (L"-basevideo retain current video mode\r\n" ); +PrintStr (L"-mapbs map EfiBootServices{Code,Data}\r\n" );PrintStr (L"-cfg=<file> specify configuration file\r\n" );PrintStr (L"-help, -? display this help\r\n" );blexit (NULL );@@ -1158,7 +1162,8 @@ void __init efi_init_memory(void) } *extra, *extra_head = NULL;#endif -printk (XENLOG_INFO "EFI memory map:\n" ); +printk (XENLOG_INFO "EFI memory map:%s\n" , + map_bs ?" (mapping BootServices)" :"" );for ( i =0 ; i < efi_memmap_size; i += efi_mdesc_size ) {EFI_MEMORY_DESCRIPTOR *desc = efi_memmap + i;@@ -1171,7 +1176,11 @@ void __init efi_init_memory(void) desc->PhysicalStart, desc->PhysicalStart + len -1 , desc->Type, desc->Attribute); -if ( !efi_rs_enable || !(desc->Attribute &EFI_MEMORY_RUNTIME ) ) +if ( !efi_rs_enable || + (!(desc->Attribute &EFI_MEMORY_RUNTIME ) && + (!map_bs || + (desc->Type != EfiBootServicesCode && + desc->Type != EfiBootServicesData))) )continue ; desc->VirtualStart =INVALID_VIRTUAL_ADDRESS ;@@ -1257,7 +1266,10 @@ void __init efi_init_memory(void) {const EFI_MEMORY_DESCRIPTOR *desc = efi_memmap + i; -if ( (desc->Attribute &EFI_MEMORY_RUNTIME ) && +if ( ((desc->Attribute &EFI_MEMORY_RUNTIME ) || + (map_bs && + (desc->Type == EfiBootServicesCode || + desc->Type == EfiBootServicesData))) && desc->VirtualStart !=INVALID_VIRTUAL_ADDRESS && desc->VirtualStart != desc->PhysicalStart ) copy_mapping(PFN_DOWN(desc->PhysicalStart),
Quoted 4 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [PATCH 2/4] EFI/early: add /mapbs to map EfiBootServices{Code, Data}
Quoted 12 lines · Andrew Cooper
Quoted 11 lines · Jan Beulich
From: Konrad Rzeszutek Wilk <[email protected]>
To help on certain platforms to run.
Signed-off-by Konrad Rzeszutek Wilk <[email protected]>Signed-off-by Jan Beulich <[email protected]>xen/arch/x86/efi/efi-boot.h +0
-0@@ -148,12 +148,16 @@ static void __init efi_arch_process_memo
Quoted 11 lines
xen/arch/x86/efi/efi-boot.h static void __init efi_arch_process_memo · line 153
Quoted 9 lines
xen/arch/x86/efi/efi-boot.h +1
-4switch ( desc->Type ) { -default : - type =E820_RESERVED ; -break ; -case EfiConventionalMemory:case EfiBootServicesCode:case EfiBootServicesData: +if ( map_bs )if ( !map_bs ) surely? It is the else case which sets a type of
E820_RAM.
We want the EfiBootServices{Code|Data} to be E820_RESERVED and this sets it to that if map_bs is set.
If map_bs is not set then we treat it as E820_RAM.
Re: [PATCH 2/4] EFI/early: add /mapbs to map EfiBootServices{Code, Data}
Quoted 23 lines · Konrad Rzeszutek Wilk
Quoted 12 lines · Andrew Cooper
Quoted 11 lines · Jan Beulich
From: Konrad Rzeszutek Wilk <[email protected]>
To help on certain platforms to run.
Signed-off-by Konrad Rzeszutek Wilk <[email protected]>Signed-off-by Jan Beulich <[email protected]>xen/arch/x86/efi/efi-boot.h +0
-0@@ -148,12 +148,16 @@ static void __init efi_arch_process_memoQuoted 10 lines
xen/arch/x86/efi/efi-boot.h static void __init efi_arch_process_memo · line 153
Quoted 9 lines
xen/arch/x86/efi/efi-boot.h +1
-4switch ( desc->Type ) { -default : - type =E820_RESERVED ; -break ; -case EfiConventionalMemory:case EfiBootServicesCode:case EfiBootServicesData: +if ( map_bs )if ( !map_bs ) surely? It is the else case which sets a type of
E820_RAM.
Quoted 4 lines
We want the EfiBootServices{Code|Data} to be
E820_RESERVEDand this sets it to that ifmap_bsis set.If
map_bsis not set then we treat it asE820_RAM.
Ah of course - sorry for the confusion.
~Andrew
Re: [PATCH 2/4] EFI/early: add /mapbs to map EfiBootServices{Code, Data}
In reply to Andrew CooperQuoted 13 lines
Quoted 1 line
Quoted 1 line · On 09.06.15 at 16:03, <[email protected]> wrote:
Quoted 11 lines · Jan Beulich
From: Konrad Rzeszutek Wilk <[email protected]>
To help on certain platforms to run.
Signed-off-by Konrad Rzeszutek Wilk <[email protected]>Signed-off-by Jan Beulich <[email protected]>xen/arch/x86/efi/efi-boot.h +0
-0@@ -148,12 +148,16 @@ static void __init efi_arch_process_memo
Quoted 11 lines
xen/arch/x86/efi/efi-boot.h static void __init efi_arch_process_memo · line 153
Quoted 9 lines
xen/arch/x86/efi/efi-boot.h +1
-4switch ( desc->Type ) { -default : - type =E820_RESERVED ; -break ; -case EfiConventionalMemory:case EfiBootServicesCode:case EfiBootServicesData: +if ( map_bs )if ( !map_bs ) surely? It is the else case which sets a type of
E820_RAM.
No, we want it reserved when map_bs and treated as normal RAM when !map_bs.
Jan
Quoted 10 lines
Quoted 10 lines
xen/arch/x86/efi/efi-boot.h +7
-0+ { +default : + type =E820_RESERVED ; +break ; + } +/* fall through */ +case EfiConventionalMemory:if ( !trampoline_phys && desc->PhysicalStart + len <=0x100000 && len >= cfg.size && desc->PhysicalStart + len > cfg.addr ) cfg.addr = (desc->PhysicalStart + len - cfg.size) &PAGE_MASK ;
Re: [PATCH 2/4] EFI/early: add /mapbs to map EfiBootServices{Code, Data}
In reply to Jan BeulichQuoted 6 lines · Jan Beulich
From: Konrad Rzeszutek Wilk <[email protected]>
To help on certain platforms to run.
Signed-off-by Konrad Rzeszutek Wilk <[email protected]>Signed-off-by Jan Beulich <[email protected]>
To be effective (or at least consistent) on ARM, would we also want to change its efi_process_memory_map_bootinfo:
if ( desc_ptr->Type == EfiConventionalMemory
|| desc_ptr->Type == EfiBootServicesCode
|| desc_ptr->Type == EfiBootServicesData )to include a check on map_bs?
Ian.
Re: [PATCH 2/4] EFI/early: add /mapbs to map EfiBootServices{Code, Data}
Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 10.06.15 at 10:56, <[email protected]> wrote:
Quoted 6 lines · Jan Beulich
From: Konrad Rzeszutek Wilk <[email protected]>
To help on certain platforms to run.
Signed-off-by Konrad Rzeszutek Wilk <[email protected]>Signed-off-by Jan Beulich <[email protected]>
Quoted 6 lines
To be effective (or at least consistent) on ARM, would we also want to change its
efi_process_memory_map_bootinfo:if ( desc_ptr->Type == EfiConventionalMemory || desc_ptr->Type == EfiBootServicesCode || desc_ptr->Type == EfiBootServicesData )to include a check on
map_bs?
I'm not convinced, but I also don't know the history of why boot services areas are being included here in the first place - Roy? I.e. if the checks weren't there already, I'd agree that an addition similar to the other ones would be needed here, but with the x86 side getting relaxed I don't see why you would want to tighten the ARM side at the same time.
Jan
Re: [PATCH 2/4] EFI/early: add /mapbs to map EfiBootServices{Code, Data}
Quoted 16 lines · Jan Beulich
Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 10.06.15 at 10:56, <[email protected]> wrote:
Quoted 6 lines · Jan Beulich
From: Konrad Rzeszutek Wilk <[email protected]>
To help on certain platforms to run.
Signed-off-by Konrad Rzeszutek Wilk <[email protected]>Signed-off-by Jan Beulich <[email protected]>Quoted 6 lines
To be effective (or at least consistent) on ARM, would we also want to change its
efi_process_memory_map_bootinfo:if ( desc_ptr->Type == EfiConventionalMemory || desc_ptr->Type == EfiBootServicesCode || desc_ptr->Type == EfiBootServicesData )to include a check on
map_bs?
Quoted 6 lines
I'm not convinced, but I also don't know the history of why boot services areas are being included here in the first place - Roy? I.e. if the checks weren't there already, I'd agree that an addition similar to the other ones would be needed here, but with the x86 side getting relaxed I don't see why you would want to tighten the ARM side at the same time.
I read it backwards and thought this was currently excluding them like x86 does.
Am I correct that the stricter x86 behaviour is per the spec, and this new option is a workaround for non-compliant systems?
If so unless Roy knows of a reason why these should be mapped on ARM be default (i.e. the ARM spec differs) I'd be inclined to suggesting the default be stricter on ARM too for consistency.
Ian.
Re: [PATCH 2/4] EFI/early: add /mapbs to map EfiBootServices{Code, Data}
Quoted 25 lines
Quoted 1 line
Quoted 1 line · On 10.06.15 at 11:26, <[email protected]> wrote:
Quoted 16 lines · Jan Beulich
Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 10.06.15 at 10:56, <[email protected]> wrote:
Quoted 6 lines · Jan Beulich
From: Konrad Rzeszutek Wilk <[email protected]>
To help on certain platforms to run.
Signed-off-by Konrad Rzeszutek Wilk <[email protected]>Signed-off-by Jan Beulich <[email protected]>Quoted 6 lines
To be effective (or at least consistent) on ARM, would we also want to change its
efi_process_memory_map_bootinfo:if ( desc_ptr->Type == EfiConventionalMemory || desc_ptr->Type == EfiBootServicesCode || desc_ptr->Type == EfiBootServicesData )to include a check on
map_bs?Quoted 6 lines
I'm not convinced, but I also don't know the history of why boot services areas are being included here in the first place - Roy? I.e. if the checks weren't there already, I'd agree that an addition similar to the other ones would be needed here, but with the x86 side getting relaxed I don't see why you would want to tighten the ARM side at the same time.
Quoted 5 lines
I read it backwards and thought this was currently excluding them like x86 does.
Am I correct that the stricter x86 behaviour is per the spec, and this new option is a workaround for non-compliant systems?
Yes.
Quoted 3 lines
If so unless Roy knows of a reason why these should be mapped on ARM be default (i.e. the ARM spec differs) I'd be inclined to suggesting the default be stricter on ARM too for consistency.
I agree, but would want this to be a separate patch then in any event. I.e. I'm intending to commit the whole series shortly.
Jan
Re: [PATCH 2/4] EFI/early: add /mapbs to map EfiBootServices{Code, Data}
Quoted 31 lines · Jan Beulich
Quoted 25 lines
Quoted 1 line
Quoted 1 line · On 10.06.15 at 11:26, <[email protected]> wrote:
Quoted 16 lines · Jan Beulich
Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 10.06.15 at 10:56, <[email protected]> wrote:
Quoted 6 lines · Jan Beulich
From: Konrad Rzeszutek Wilk <[email protected]>
To help on certain platforms to run.
Signed-off-by Konrad Rzeszutek Wilk <[email protected]>Signed-off-by Jan Beulich <[email protected]>Quoted 6 lines
To be effective (or at least consistent) on ARM, would we also want to change its
efi_process_memory_map_bootinfo:if ( desc_ptr->Type == EfiConventionalMemory || desc_ptr->Type == EfiBootServicesCode || desc_ptr->Type == EfiBootServicesData )to include a check on
map_bs?Quoted 6 lines
I'm not convinced, but I also don't know the history of why boot services areas are being included here in the first place - Roy? I.e. if the checks weren't there already, I'd agree that an addition similar to the other ones would be needed here, but with the x86 side getting relaxed I don't see why you would want to tighten the ARM side at the same time.
Quoted 5 lines
I read it backwards and thought this was currently excluding them like x86 does.
Am I correct that the stricter x86 behaviour is per the spec, and this new option is a workaround for non-compliant systems?
Quoted 8 lines
Yes.
Quoted 3 lines
If so unless Roy knows of a reason why these should be mapped on ARM be default (i.e. the ARM spec differs) I'd be inclined to suggesting the default be stricter on ARM too for consistency.
I agree, but would want this to be a separate patch then in any event. I.e. I'm intending to commit the whole series shortly.
Sure, lets wait and see what Roy says
Re: [PATCH 2/4] EFI/early: add /mapbs to map EfiBootServices{Code, Data}
Quoted 34 lines · Ian Campbell
Quoted 33 lines · Jan Beulich
Quoted 25 lines
Quoted 1 line
Quoted 1 line · On 10.06.15 at 11:26, <[email protected]> wrote:
Quoted 16 lines · Jan Beulich
Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 10.06.15 at 10:56, <[email protected]> wrote:
Quoted 6 lines · Jan Beulich
From: Konrad Rzeszutek Wilk <[email protected]>
To help on certain platforms to run.
Signed-off-by Konrad Rzeszutek Wilk <[email protected]>Signed-off-by Jan Beulich <[email protected]>Quoted 6 lines
To be effective (or at least consistent) on ARM, would we also want to change its
efi_process_memory_map_bootinfo:if ( desc_ptr->Type == EfiConventionalMemory || desc_ptr->Type == EfiBootServicesCode || desc_ptr->Type == EfiBootServicesData )to include a check on
map_bs?Quoted 6 lines
I'm not convinced, but I also don't know the history of why boot services areas are being included here in the first place - Roy? I.e. if the checks weren't there already, I'd agree that an addition similar to the other ones would be needed here, but with the x86 side getting relaxed I don't see why you would want to tighten the ARM side at the same time.
Quoted 5 lines
I read it backwards and thought this was currently excluding them like x86 does.
Am I correct that the stricter x86 behaviour is per the spec, and this new option is a workaround for non-compliant systems?
Yes.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
If so unless Roy knows of a reason why these should be mapped on ARM be default (i.e. the ARM spec differs) I'd be inclined to suggesting the default be stricter on ARM too for consistency.
I agree, but would want this to be a separate patch then in any event. I.e. I'm intending to commit the whole series shortly.
Sure, lets wait and see what Roy says
... before doing anything more than committing the whole series I mean. Sorry for being vague!
Re: [PATCH 2/4] EFI/early: add /mapbs to map EfiBootServices{Code, Data}
In reply to Jan BeulichQuoted 18 lines · Jan Beulich
Quoted 18 lines
Quoted 1 line
Quoted 1 line · On 10.06.15 at 11:26, <[email protected]> wrote:
Quoted 16 lines · Jan Beulich
Quoted 15 lines
Quoted 1 line
Quoted 1 line · On 10.06.15 at 10:56, <[email protected]> wrote:
Quoted 6 lines · Jan Beulich
From: Konrad Rzeszutek Wilk <[email protected]>
To help on certain platforms to run.
Signed-off-by Konrad Rzeszutek Wilk <[email protected]>Signed-off-by Jan Beulich <[email protected]>To be effective (or at least consistent) on ARM, would we also want to change its
efi_process_memory_map_bootinfo:if ( desc_ptr->Type == EfiConventionalMemory || desc_ptr->Type == EfiBootServicesCode || desc_ptr->Type == EfiBootServicesData )to include a check on
map_bs?
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
I'm not convinced, but I also don't know the history of why boot services areas are being included here in the first place - Roy? I.e. if the checks weren't there already, I'd agree that an addition similar to the other ones would be needed here, but with the x86 side getting relaxed I don't see why you would want to tighten the ARM side at the same time.
The boot services code/data is "memory available for general use", just like EfiConventionalMemory after ExitBootServices() is called. Since the memory map being created here is going to be used after ExitBootServices() is called, I think this matches the UEFI specification. This matches x86 behavior before the patch (modulo some address range checks used to set cfg.addr.)
Quoted 9 lines
Quoted 6 lines
I read it backwards and thought this was currently excluding them like x86 does.
Am I correct that the stricter x86 behaviour is per the spec, and this new option is a workaround for non-compliant systems?
Yes.
Quoted 9 lines
Quoted 3 lines
If so unless Roy knows of a reason why these should be mapped on ARM be default (i.e. the ARM spec differs) I'd be inclined to suggesting the default be stricter on ARM too for consistency.
I agree, but would want this to be a separate patch then in any event. I.e. I'm intending to commit the whole series shortly.
Jan
The open question regarding the Arm code is whether we want/need this workaround for Arm as well, right? I don't see a reason why firmware bugs regarding memory allocation
types would be x86 specific, so we could see firmware broken the same way on arm platforms.
Is !map_bs the default?
I think "reserve_bs" would be a better name, as I think of it as being 'mapped' when it is added
as normal memory to the memory map. I find the terminology in the patch a bit generic/confusing.
Roy
Re: [PATCH 2/4] EFI/early: add /mapbs to map EfiBootServices{Code, Data}
Quoted 14 lines · Roy Franz
Quoted 14 lines
Quoted 6 lines
I read it backwards and thought this was currently excluding them like x86 does.
Am I correct that the stricter x86 behaviour is per the spec, and this new option is a workaround for non-compliant systems?
Yes.
Quoted 3 lines
If so unless Roy knows of a reason why these should be mapped on ARM be default (i.e. the ARM spec differs) I'd be inclined to suggesting the default be stricter on ARM too for consistency.
I agree, but would want this to be a separate patch then in any event. I.e. I'm intending to commit the whole series shortly.
Quoted 7 lines
Quoted 2 lines
Jan
The open question regarding the Arm code is whether we want/need this workaround for Arm as well, right? I don't see a reason why firmware bugs regarding memory allocation
types would be x86 specific, so we could see firmware broken the same way on arm platforms.
It would be nice to hope that the arm side was all coded to spec. However, the realist in me would expect to see the same kinds of mistakes on any architecture.
Quoted 6 lines
Is !map_bs the default?
I think "
reserve_bs" would be a better name, as I think of it as being 'mapped' when it is added
as normal memory to the memory map. I find the terminology in the patch a bit generic/confusing.
Technically, it is "map boot services code/data for runtime services", as it is a workaround for firmware which doesn't correctly avoid using __init/__initdata at runtime.
I don't agree that "reserve_bs" is any better, but can't think of a 3rd alternative which would be better than either.
~Andrew
Re: [PATCH 2/4] EFI/early: add /mapbs to map EfiBootServices{Code, Data}
Quoted 34 lines · Andrew Cooper
Quoted 14 lines · Roy Franz
Quoted 14 lines
Quoted 6 lines
I read it backwards and thought this was currently excluding them like x86 does.
Am I correct that the stricter x86 behaviour is per the spec, and this new option is a workaround for non-compliant systems?
Yes.
Quoted 3 lines
If so unless Roy knows of a reason why these should be mapped on ARM be default (i.e. the ARM spec differs) I'd be inclined to suggesting the default be stricter on ARM too for consistency.
I agree, but would want this to be a separate patch then in any event. I.e. I'm intending to commit the whole series shortly.
Quoted 7 lines
Quoted 2 lines
Jan
The open question regarding the Arm code is whether we want/need this workaround for Arm as well, right? I don't see a reason why firmware bugs regarding memory allocation
types would be x86 specific, so we could see firmware broken the same way on arm platforms.It would be nice to hope that the arm side was all coded to spec. However, the realist in me would expect to see the same kinds of mistakes on any architecture.
Quoted 6 lines
Is !map_bs the default?
I think "
reserve_bs" would be a better name, as I think of it as being 'mapped' when it is added
as normal memory to the memory map. I find the terminology in the patch a bit generic/confusing.
Quoted 7 lines
Technically, it is "map boot services code/data for runtime services", as it is a workaround for firmware which doesn't correctly avoid using __init/__initdata at runtime.
I don't agree that "
reserve_bs" is any better, but can't think of a 3rd alternative which would be better than either.
fix_bs ?
<chuckles>
Quoted 6 lines
~Andrew
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [PATCH 2/4] EFI/early: add /mapbs to map EfiBootServices{Code, Data}
Quoted 36 lines · Konrad Rzeszutek Wilk
Quoted 35 lines · Andrew Cooper
Quoted 13 lines · Roy Franz
Quoted 13 lines
Quoted 5 lines
I read it backwards and thought this was currently excluding them like x86 does.
Am I correct that the stricter x86 behaviour is per the spec, and this new option is a workaround for non-compliant systems?
Yes.
Quoted 3 lines
If so unless Roy knows of a reason why these should be mapped on ARM be default (i.e. the ARM spec differs) I'd be inclined to suggesting the default be stricter on ARM too for consistency.
I agree, but would want this to be a separate patch then in any event. I.e. I'm intending to commit the whole series shortly.
Quoted 7 lines
Quoted 2 lines
Jan
The open question regarding the Arm code is whether we want/need this workaround for Arm as well, right? I don't see a reason why firmware bugs regarding memory allocation
types would be x86 specific, so we could see firmware broken the same way on arm platforms.It would be nice to hope that the arm side was all coded to spec. However, the realist in me would expect to see the same kinds of mistakes on any architecture.
Quoted 6 lines
Is !map_bs the default?
I think "
reserve_bs" would be a better name, as I think of it as being 'mapped' when it is added
as normal memory to the memory map. I find the terminology in the patch a bit generic/confusing.Technically, it is "map boot services code/data for runtime services", as it is a workaround for firmware which doesn't correctly avoid using __init/__initdata at runtime.
Quoted 6 lines
Quoted 3 lines
I don't agree that "
reserve_bs" is any better, but can't think of a 3rd alternative which would be better than either.
fix_bs?<chuckles>
:)
~Andrew
Re: [PATCH 2/4] EFI/early: add /mapbs to map EfiBootServices{Code, Data}
In reply to Andrew CooperQuoted 34 lines · Andrew Cooper
Quoted 14 lines · Roy Franz
Quoted 14 lines
Quoted 6 lines
I read it backwards and thought this was currently excluding them like x86 does.
Am I correct that the stricter x86 behaviour is per the spec, and this new option is a workaround for non-compliant systems?
Yes.
Quoted 3 lines
If so unless Roy knows of a reason why these should be mapped on ARM be default (i.e. the ARM spec differs) I'd be inclined to suggesting the default be stricter on ARM too for consistency.
I agree, but would want this to be a separate patch then in any event. I.e. I'm intending to commit the whole series shortly.
Quoted 7 lines
Quoted 2 lines
Jan
The open question regarding the Arm code is whether we want/need this workaround for Arm as well, right? I don't see a reason why firmware bugs regarding memory allocation
types would be x86 specific, so we could see firmware broken the same way on arm platforms.It would be nice to hope that the arm side was all coded to spec. However, the realist in me would expect to see the same kinds of mistakes on any architecture.
Quoted 6 lines
Is !map_bs the default?
I think "
reserve_bs" would be a better name, as I think of it as being 'mapped' when it is added
as normal memory to the memory map. I find the terminology in the patch a bit generic/confusing.
Quoted 6 lines
Technically, it is "map boot services code/data for runtime services", as it is a workaround for firmware which doesn't correctly avoid using __init/__initdata at runtime.
I don't agree that "
reserve_bs" is any better, but can't think of a 3rd alternative which would be better than either.
OK, makes sense. I was focusing on it getting marked as E820_reserved, and missed the later mapping with runtime services. I agree that reserve_bs is not better. I won't bikeshed any further :)
Quoted 2 lines
~Andrew
Re: [PATCH 2/4] EFI/early: add /mapbs to map EfiBootServices{Code, Data}
In reply to Roy FranzQuoted 27 lines
Quoted 1 line
Quoted 1 line · On 10.06.15 at 19:22, <[email protected]> wrote:
Quoted 18 lines · Jan Beulich
Quoted 18 lines
Quoted 1 line
Quoted 1 line · On 10.06.15 at 11:26, <[email protected]> wrote:
Quoted 16 lines · Jan Beulich
Quoted 15 lines
Quoted 1 line
Quoted 1 line · On 10.06.15 at 10:56, <[email protected]> wrote:
Quoted 6 lines · Jan Beulich
From: Konrad Rzeszutek Wilk <[email protected]>
To help on certain platforms to run.
Signed-off-by Konrad Rzeszutek Wilk <[email protected]>Signed-off-by Jan Beulich <[email protected]>To be effective (or at least consistent) on ARM, would we also want to change its
efi_process_memory_map_bootinfo:if ( desc_ptr->Type == EfiConventionalMemory || desc_ptr->Type == EfiBootServicesCode || desc_ptr->Type == EfiBootServicesData )to include a check on
map_bs?Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
I'm not convinced, but I also don't know the history of why boot services areas are being included here in the first place - Roy? I.e. if the checks weren't there already, I'd agree that an addition similar to the other ones would be needed here, but with the x86 side getting relaxed I don't see why you would want to tighten the ARM side at the same time.
Quoted 8 lines
The boot services code/data is "memory available for general use", just like EfiConventionalMemory after
ExitBootServices()is called. Since the memory
map being created here is going to be used afterExitBootServices()is called,
I think this matches the UEFI specification. This matches x86 behavior before
the patch (modulo some address range checks used to set cfg.addr.)
Ouch - looks like I read this the wrong way round, and Ian was right in wanting a map_bs check added here:
EFI/ARM: don't treat EfiBootServices{Code,Data} as normal RAM under /mapbs
xen/arch/arm/efi/efi-boot.h +4 -3
@@ -131,9 +131,10 @@ static EFI_STATUS __init efi_process_memfor ( Index =0 ; Index < (mmap_size / desc_size); Index++ ) { -if ( desc_ptr->Type == EfiConventionalMemory - || desc_ptr->Type == EfiBootServicesCode - || desc_ptr->Type == EfiBootServicesData ) +if ( desc_ptr->Type == EfiConventionalMemory || + (!map_bs && + (desc_ptr->Type == EfiBootServicesCode || + desc_ptr->Type == EfiBootServicesData)) ) {if ( i >=NR_MEM_BANKS ) {
Jan
Ian Campbell
Acked-byRe: [PATCH 2/4] EFI/early: add /mapbs to map EfiBootServices{Code, Data}
Quoted 36 lines · Jan Beulich
Quoted 27 lines
Quoted 1 line
Quoted 1 line · On 10.06.15 at 19:22, <[email protected]> wrote:
Quoted 18 lines · Jan Beulich
Quoted 18 lines
Quoted 1 line
Quoted 1 line · On 10.06.15 at 11:26, <[email protected]> wrote:
Quoted 16 lines · Jan Beulich
Quoted 15 lines
Quoted 1 line
Quoted 1 line · On 10.06.15 at 10:56, <[email protected]> wrote:
Quoted 6 lines · Jan Beulich
From: Konrad Rzeszutek Wilk <[email protected]>
To help on certain platforms to run.
Signed-off-by Konrad Rzeszutek Wilk <[email protected]>Signed-off-by Jan Beulich <[email protected]>To be effective (or at least consistent) on ARM, would we also want to change its
efi_process_memory_map_bootinfo:if ( desc_ptr->Type == EfiConventionalMemory || desc_ptr->Type == EfiBootServicesCode || desc_ptr->Type == EfiBootServicesData )to include a check on
map_bs?Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
I'm not convinced, but I also don't know the history of why boot services areas are being included here in the first place - Roy? I.e. if the checks weren't there already, I'd agree that an addition similar to the other ones would be needed here, but with the x86 side getting relaxed I don't see why you would want to tighten the ARM side at the same time.
Quoted 8 lines
The boot services code/data is "memory available for general use", just like EfiConventionalMemory after
ExitBootServices()is called. Since the memory
map being created here is going to be used afterExitBootServices()is called,
I think this matches the UEFI specification. This matches x86 behavior before
the patch (modulo some address range checks used to set cfg.addr.)
Quoted 2 lines
Ouch - looks like I read this the wrong way round, and Ian was right in wanting a
map_bscheck added here:
I should have the courage of my convictions!
Quoted 3 lines
EFI/ARM: don't treat EfiBootServices{Code,Data} as normal RAM under /mapbs
Signed-off-by Jan Beulich <[email protected]>
Quoted 20 lines
xen/arch/arm/efi/efi-boot.h +4
-3@@ -131,9 +131,10 @@ static EFI_STATUS __init efi_process_memfor ( Index =0 ; Index < (mmap_size / desc_size); Index++ ) { -if ( desc_ptr->Type == EfiConventionalMemory - || desc_ptr->Type == EfiBootServicesCode - || desc_ptr->Type == EfiBootServicesData ) +if ( desc_ptr->Type == EfiConventionalMemory || + (!map_bs && + (desc_ptr->Type == EfiBootServicesCode || + desc_ptr->Type == EfiBootServicesData)) ) {if ( i >=NR_MEM_BANKS ) {Jan
Roy Franz
Reviewed-byRe: [PATCH 2/4] EFI/early: add /mapbs to map EfiBootServices{Code, Data}
In reply to Jan BeulichQuoted 60 lines · Jan Beulich
Quoted 27 lines
Quoted 1 line
Quoted 1 line · On 10.06.15 at 19:22, <[email protected]> wrote:
Quoted 18 lines · Jan Beulich
Quoted 18 lines
Quoted 1 line
Quoted 1 line · On 10.06.15 at 11:26, <[email protected]> wrote:
Quoted 16 lines · Jan Beulich
Quoted 15 lines
Quoted 1 line
Quoted 1 line · On 10.06.15 at 10:56, <[email protected]> wrote:
Quoted 6 lines · Jan Beulich
From: Konrad Rzeszutek Wilk <[email protected]>
To help on certain platforms to run.
Signed-off-by Konrad Rzeszutek Wilk <[email protected]>Signed-off-by Jan Beulich <[email protected]>To be effective (or at least consistent) on ARM, would we also want to change its
efi_process_memory_map_bootinfo:if ( desc_ptr->Type == EfiConventionalMemory || desc_ptr->Type == EfiBootServicesCode || desc_ptr->Type == EfiBootServicesData )to include a check on
map_bs?Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
I'm not convinced, but I also don't know the history of why boot services areas are being included here in the first place - Roy? I.e. if the checks weren't there already, I'd agree that an addition similar to the other ones would be needed here, but with the x86 side getting relaxed I don't see why you would want to tighten the ARM side at the same time.
Quoted 8 lines
The boot services code/data is "memory available for general use", just like EfiConventionalMemory after
ExitBootServices()is called. Since the memory
map being created here is going to be used afterExitBootServices()is called,
I think this matches the UEFI specification. This matches x86 behavior before
the patch (modulo some address range checks used to set cfg.addr.)Ouch - looks like I read this the wrong way round, and Ian was right in wanting a
map_bscheck added here:EFI/ARM: don't treat EfiBootServices{Code,Data} as normal RAM under /mapbs
Signed-off-by Jan Beulich <[email protected]>xen/arch/arm/efi/efi-boot.h +4
-3@@ -131,9 +131,10 @@ static EFI_STATUS __init efi_process_memfor ( Index =0 ; Index < (mmap_size / desc_size); Index++ ) { -if ( desc_ptr->Type == EfiConventionalMemory - || desc_ptr->Type == EfiBootServicesCode - || desc_ptr->Type == EfiBootServicesData ) +if ( desc_ptr->Type == EfiConventionalMemory || + (!map_bs && + (desc_ptr->Type == EfiBootServicesCode || + desc_ptr->Type == EfiBootServicesData)) ) {if ( i >=NR_MEM_BANKS ) {
Quoted 2 lines
Jan
PATCH 3/4 EFI: support default attributes to map Runtime service areas with none given
In reply to Jan BeulichFrom: Konrad Rzeszutek Wilk <[email protected]>
For example on Dell machines we see:
(XEN) 00000fed18000-00000fed19fff type=11 attr=8000000000000000 (XEN) Unknown cachability for MFNs 0xfed18-0xfed19
Let's allow them to be mapped as UC.
We also alter the 'efi-rs' to be 'efi=rs' or 'efi=no-rs'.
docs/misc/xen-command-line.markdown +15 -3
@@ -617,12 +617,24 @@ Either force retrieval of monitor EDID i disable it (edid=no). This option should not normally be required except for debugging purposes. -### efi-rs -> `= <boolean>` +### efi +> `= List of [ rs | attr ]` + +All options are of boolean kind and can be prefixed with `no-` to +effect the inverse meaning. + +> `rs` > Default: `true` -Force or disable use of EFI runtime services. +>> Force or disable use of EFI runtime services. + +> `attr=uc` + +> Default: `off` + +>> Allows mapping of RuntimeServices which have no cachability attribute +>> set as UC. ### extra\_guest\_irqs > `= [<domU number>][,<dom0 number>]`
xen/common/efi/boot.c +30 -4
@@ -1100,7 +1100,31 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SY#ifndef CONFIG_ARM /* TODO - runtime service support */ static bool_t __initdata efi_rs_enable =1 ; -boolean_param ("efi-rs" , efi_rs_enable); +static bool_t __initdata efi_map_uc; + +static void __init parse_efi_param (char *s) +{ +char *ss; + +do { +bool_t val = !!strncmp (s,"no-" ,3 ); + +if ( !val ) + s +=3 ; + + ss =strchr (s,',' ); +if ( ss ) + *ss ='\0' ; + +if ( !strcmp (s,"rs" ) ) + efi_rs_enable = val; +else if ( !strcmp (s,"attr=uc" ) ) + efi_map_uc = val; + + s = ss +1 ; + }while ( ss ); +} +custom_param ("efi" , parse_efi_param);#ifndef USE_SET_VIRTUAL_ADDRESS_MAP static __init void copy_mapping(unsigned long mfn, unsigned long end,
@@ -1198,9 +1222,11 @@ void __init efi_init_memory(void) prot |= _PAGE_PWT | _PAGE_PCD |MAP_SMALL_PAGES ; else { -printk (XENLOG_ERR "Unknown cachability for MFNs %#lx-%#lx\n" , - smfn, emfn -1 ); -continue ; +printk (XENLOG_ERR "Unknown cachability for MFNs %#lx-%#lx%s\n" , + smfn, emfn -1 , efi_map_uc ?", assuming UC" :"" ); +if ( !efi_map_uc ) +continue ; + prot |= _PAGE_PWT | _PAGE_PCD |MAP_SMALL_PAGES ; }if ( desc->Attribute &EFI_MEMORY_WP )
EFI: support default attributes to map Runtime service areas with none given
From: Konrad Rzeszutek Wilk <[email protected]>
For example on Dell machines we see:
(XEN) 00000fed18000-00000fed19fff type=11 attr=8000000000000000 (XEN) Unknown cachability for MFNs 0xfed18-0xfed19
Let's allow them to be mapped as UC.
We also alter the 'efi-rs' to be 'efi=rs' or 'efi=no-rs'.
docs/misc/xen-command-line.markdown +15 -3
@@ -617,12 +617,24 @@ Either force retrieval of monitor EDID i disable it (edid=no). This option should not normally be required except for debugging purposes. -### efi-rs -> `= <boolean>` +### efi +> `= List of [ rs | attr ]` + +All options are of boolean kind and can be prefixed with `no-` to +effect the inverse meaning. + +> `rs` > Default: `true` -Force or disable use of EFI runtime services. +>> Force or disable use of EFI runtime services. + +> `attr=uc` + +> Default: `off` + +>> Allows mapping of RuntimeServices which have no cachability attribute +>> set as UC. ### extra\_guest\_irqs > `= [<domU number>][,<dom0 number>]`
xen/common/efi/boot.c +30 -4
@@ -1100,7 +1100,31 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SY#ifndef CONFIG_ARM /* TODO - runtime service support */ static bool_t __initdata efi_rs_enable =1 ; -boolean_param ("efi-rs" , efi_rs_enable); +static bool_t __initdata efi_map_uc; + +static void __init parse_efi_param (char *s) +{ +char *ss; + +do { +bool_t val = !!strncmp (s,"no-" ,3 ); + +if ( !val ) + s +=3 ; + + ss =strchr (s,',' ); +if ( ss ) + *ss ='\0' ; + +if ( !strcmp (s,"rs" ) ) + efi_rs_enable = val; +else if ( !strcmp (s,"attr=uc" ) ) + efi_map_uc = val; + + s = ss +1 ; + }while ( ss ); +} +custom_param ("efi" , parse_efi_param);#ifndef USE_SET_VIRTUAL_ADDRESS_MAP static __init void copy_mapping(unsigned long mfn, unsigned long end,
@@ -1198,9 +1222,11 @@ void __init efi_init_memory(void) prot |= _PAGE_PWT | _PAGE_PCD |MAP_SMALL_PAGES ; else { -printk (XENLOG_ERR "Unknown cachability for MFNs %#lx-%#lx\n" , - smfn, emfn -1 ); -continue ; +printk (XENLOG_ERR "Unknown cachability for MFNs %#lx-%#lx%s\n" , + smfn, emfn -1 , efi_map_uc ?", assuming UC" :"" ); +if ( !efi_map_uc ) +continue ; + prot |= _PAGE_PWT | _PAGE_PCD |MAP_SMALL_PAGES ; }if ( desc->Attribute &EFI_MEMORY_WP )
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [PATCH 3/4] EFI: support default attributes to map Runtime service areas with none given
Quoted 28 lines · Jan Beulich
From: Konrad Rzeszutek Wilk <[email protected]>
For example on Dell machines we see:
(XEN) 00000fed18000-00000fed19fff type=11 attr=8000000000000000 (XEN) Unknown cachability for MFNs 0xfed18-0xfed19
Let's allow them to be mapped as UC.
We also alter the 'efi-rs' to be 'efi=rs' or 'efi=no-rs'.
Signed-off-by Konrad Rzeszutek Wilk <[email protected]>Signed-off-by Jan Beulich <[email protected]>docs/misc/xen-command-line.markdown +6
-2@@ -617,12 +617,24 @@ Either force retrieval of monitor EDID i disable it (edid=no). This option should not normally be required except for debugging purposes. -### efi-rs -> `= <boolean>` +### efi +> `= List of [ rs | attr ]` + +All options are of boolean kind and can be prefixed with `no-` to +effect the inverse meaning. +
docs/misc/xen-command-line.markdown Either force retrieval of monitor EDID i · line 634
Quoted 10 lines
docs/misc/xen-command-line.markdown +6
-1+> `rs` > Default: `true` -Force or disable use of EFI runtime services. +>> Force or disable use of EFI runtime services. + +> `attr=uc` + +> Default: `off`
false would be more consistent with the rest of the rest of the document.
Otherwise, Reviewed-by: Andrew Cooper <[email protected]>
Quoted 61 lines
docs/misc/xen-command-line.markdown +3
-0+ +>> Allows mapping of RuntimeServices which have no cachability attribute +>> set as UC. ### extra\_guest\_irqs > `= [<domU number>][,<dom0 number>]`xen/common/efi/boot.c +30
-4@@ -1100,7 +1100,31 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SY#ifndef CONFIG_ARM /* TODO - runtime service support */ static bool_t __initdata efi_rs_enable =1 ; -boolean_param ("efi-rs" , efi_rs_enable); +static bool_t __initdata efi_map_uc; + +static void __init parse_efi_param (char *s) +{ +char *ss; + +do { +bool_t val = !!strncmp (s,"no-" ,3 ); + +if ( !val ) + s +=3 ; + + ss =strchr (s,',' ); +if ( ss ) + *ss ='\0' ; + +if ( !strcmp (s,"rs" ) ) + efi_rs_enable = val; +else if ( !strcmp (s,"attr=uc" ) ) + efi_map_uc = val; + + s = ss +1 ; + }while ( ss ); +} +custom_param ("efi" , parse_efi_param);#ifndef USE_SET_VIRTUAL_ADDRESS_MAP static __init void copy_mapping(unsigned long mfn, unsigned long end,@@ -1198,9 +1222,11 @@ void __init efi_init_memory(void) prot |= _PAGE_PWT | _PAGE_PCD |MAP_SMALL_PAGES ; else { -printk (XENLOG_ERR "Unknown cachability for MFNs %#lx-%#lx\n" , - smfn, emfn -1 ); -continue ; +printk (XENLOG_ERR "Unknown cachability for MFNs %#lx-%#lx%s\n" , + smfn, emfn -1 , efi_map_uc ?", assuming UC" :"" ); +if ( !efi_map_uc ) +continue ; + prot |= _PAGE_PWT | _PAGE_PCD |MAP_SMALL_PAGES ; }if ( desc->Attribute &EFI_MEMORY_WP )
Quoted 4 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [PATCH 3/4] EFI: support default attributes to map Runtime service areas with none given
Quoted 34 lines
Quoted 1 line
Quoted 1 line · On 09.06.15 at 16:08, <[email protected]> wrote:
Quoted 32 lines · Jan Beulich
From: Konrad Rzeszutek Wilk <[email protected]>
For example on Dell machines we see:
(XEN) 00000fed18000-00000fed19fff type=11 attr=8000000000000000 (XEN) Unknown cachability for MFNs 0xfed18-0xfed19
Let's allow them to be mapped as UC.
We also alter the 'efi-rs' to be 'efi=rs' or 'efi=no-rs'.
Signed-off-by Konrad Rzeszutek Wilk <[email protected]>Signed-off-by Jan Beulich <[email protected]>docs/misc/xen-command-line.markdown +7
-2@@ -617,12 +617,24 @@ Either force retrieval of monitor EDID i disable it (edid=no). This option should not normally be required except for debugging purposes. -### efi-rs -> `= <boolean>` +### efi +> `= List of [ rs | attr ]` + +All options are of boolean kind and can be prefixed with `no-` to +effect the inverse meaning. + +> `rs` > Default: `true`
Quoted 8 lines
docs/misc/xen-command-line.markdown Either force retrieval of monitor EDID i · line 634
Quoted 6 lines
docs/misc/xen-command-line.markdown +5
-1-Force or disable use of EFI runtime services. +>> Force or disable use of EFI runtime services. + +> `attr=uc` + +> Default: `off`
falsewould be more consistent with the rest of the rest of the document.
That's how Konrad had it originally, and I intentionally changed it, as consistency with the rest of the doc seemed less important to me than for this to make sense (and "off" to me makes more sense than "false" here).
Quoted 1 line
Otherwise, Reviewed-by: Andrew Cooper <[email protected]>
Please clarify whether this stands even without the above changed.
Jan
Re: [PATCH 3/4] EFI: support default attributes to map Runtime service areas with none given
Quoted 41 lines · Jan Beulich
Quoted 34 lines
Quoted 1 line
Quoted 1 line · On 09.06.15 at 16:08, <[email protected]> wrote:
Quoted 32 lines · Jan Beulich
From: Konrad Rzeszutek Wilk <[email protected]>
For example on Dell machines we see:
(XEN) 00000fed18000-00000fed19fff type=11 attr=8000000000000000 (XEN) Unknown cachability for MFNs 0xfed18-0xfed19
Let's allow them to be mapped as UC.
We also alter the 'efi-rs' to be 'efi=rs' or 'efi=no-rs'.
Signed-off-by Konrad Rzeszutek Wilk <[email protected]>Signed-off-by Jan Beulich <[email protected]>docs/misc/xen-command-line.markdown +7
-2@@ -617,12 +617,24 @@ Either force retrieval of monitor EDID i disable it (edid=no). This option should not normally be required except for debugging purposes. -### efi-rs -> `= <boolean>` +### efi +> `= List of [ rs | attr ]` + +All options are of boolean kind and can be prefixed with `no-` to +effect the inverse meaning. + +> `rs` > Default: `true`Quoted 7 lines
docs/misc/xen-command-line.markdown Either force retrieval of monitor EDID i · line 634
Quoted 6 lines
docs/misc/xen-command-line.markdown +5
-1-Force or disable use of EFI runtime services. +>> Force or disable use of EFI runtime services. + +> `attr=uc` + +> Default: `off`
falsewould be more consistent with the rest of the rest of the document.
Quoted 7 lines
That's how Konrad had it originally, and I intentionally changed it, as consistency with the rest of the doc seemed less important to me than for this to make sense (and "off" to me makes more sense than "false" here).
Quoted 1 line
Otherwise, Reviewed-by: Andrew Cooper <[email protected]>
Please clarify whether this stands even without the above changed.
It stands. I don't wish documentation quibbling to get in the way of otherwise-good patches.
~Andrew
Re: [PATCH 3/4] EFI: support default attributes to map Runtime service areas with none given
In reply to Jan BeulichQuoted 7 lines · Jan Beulich
From: Konrad Rzeszutek Wilk <[email protected]>
For example on Dell machines we see:
(XEN) 00000fed18000-00000fed19fff type=11 attr=8000000000000000 (XEN) Unknown cachability for MFNs 0xfed18-0xfed19
Quoted 6 lines
Let's allow them to be mapped as UC.
We also alter the 'efi-rs' to be 'efi=rs' or 'efi=no-rs'.
Signed-off-by Konrad Rzeszutek Wilk <[email protected]>Signed-off-by Jan Beulich <[email protected]>
For ARM: Acked-by: Ian Campbell <[email protected]>
PATCH 4/4 x86/EFI: adjust EFI_MEMORY_WP handling for spec version 2.5
In reply to Jan BeulichThat flag now means cachability rather than protection, and a new flag EFI_MEMORY_RO got added in its place.
xen/common/efi/boot.c +9 -1
@@ -32,6 +32,8 @@/* Using SetVirtualAddressMap() is incompatible with kexec: */ #undef USE_SET_VIRTUAL_ADDRESS_MAP +#define EFI_REVISION (major, minor) (((major) << 16) | (minor)) +#define SMBIOS3_TABLE_GUID \ { 0xf2fd1544, 0x9794, 0x4a2c, {0x99, 0x2e, 0xe5, 0xbb, 0xcf, 0x20, 0xe3, 0x94} }#define SHIM_LOCK_PROTOCOL_GUID \
@@ -78,6 +80,7 @@ static int set_color(u32 mask, int bpp,static bool_t match_guid (const EFI_GUID *guid1,const EFI_GUID *guid2);static const EFI_BOOT_SERVICES *__initdata efi_bs; +static UINT32 __initdata efi_bs_revision;static EFI_HANDLE __initdata efi_ih;static SIMPLE_TEXT_OUTPUT_INTERFACE *__initdata StdOut;
@@ -713,6 +716,7 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SY efi_ih = ImageHandle; efi_bs = SystemTable->BootServices; + efi_bs_revision = efi_bs->Hdr.Revision; efi_rs = SystemTable->RuntimeServices; efi_ct = SystemTable->ConfigurationTable; efi_num_ct = SystemTable->NumberOfTableEntries;
@@ -1220,6 +1224,9 @@ void __init efi_init_memory(void) prot |= _PAGE_PAT |MAP_SMALL_PAGES ; else if ( desc->Attribute & (EFI_MEMORY_UC | EFI_MEMORY_UCE) ) prot |= _PAGE_PWT | _PAGE_PCD |MAP_SMALL_PAGES ; + else if ( efi_bs_revision >= EFI_REVISION(2, 5) && + (desc->Attribute & EFI_MEMORY_WP) ) + prot |= _PAGE_PAT | _PAGE_PWT | MAP_SMALL_PAGES; else { printk(XENLOG_ERR "Unknown cachability for MFNs %#lx-%#lx%s\n",
@@ -1229,7 +1236,8 @@ void __init efi_init_memory(void) prot |= _PAGE_PWT | _PAGE_PCD |MAP_SMALL_PAGES ; } -if ( desc->Attribute &EFI_MEMORY_WP ) +if ( desc->Attribute & (efi_bs_revision <EFI_REVISION (2 ,5 ) + ?EFI_MEMORY_WP :EFI_MEMORY_RO ) ) prot &= ~_PAGE_RW;if ( desc->Attribute &EFI_MEMORY_XP ) prot |= _PAGE_NX;
xen/include/efi/efidef.h +5 -1
@@ -156,11 +156,15 @@ typedef enum {#define EFI_MEMORY_WT 0x0000000000000004#define EFI_MEMORY_WB 0x0000000000000008#define EFI_MEMORY_UCE 0x0000000000000010 +#define EFI_MEMORY_WP 0x0000000000001000// physical memory protection on range -#define EFI_MEMORY_WP 0x0000000000001000#define EFI_MEMORY_RP 0x0000000000002000#define EFI_MEMORY_XP 0x0000000000004000 +#define EFI_MEMORY_RO 0x0000000000020000 + +#define EFI_MEMORY_NV 0x0000000000008000 +#define EFI_MEMORY_MORE_RELIABLE 0x0000000000010000// range requires a runtime mapping #define EFI_MEMORY_RUNTIME 0x8000000000000000
x86/EFI: adjust EFI_MEMORY_WP handling for spec version 2.5
That flag now means cachability rather than protection, and a new flag EFI_MEMORY_RO got added in its place.
xen/common/efi/boot.c +9 -1
@@ -32,6 +32,8 @@/* Using SetVirtualAddressMap() is incompatible with kexec: */ #undef USE_SET_VIRTUAL_ADDRESS_MAP +#define EFI_REVISION (major, minor) (((major) << 16) | (minor)) +#define SMBIOS3_TABLE_GUID \ { 0xf2fd1544, 0x9794, 0x4a2c, {0x99, 0x2e, 0xe5, 0xbb, 0xcf, 0x20, 0xe3, 0x94} }#define SHIM_LOCK_PROTOCOL_GUID \
@@ -78,6 +80,7 @@ static int set_color(u32 mask, int bpp,static bool_t match_guid (const EFI_GUID *guid1,const EFI_GUID *guid2);static const EFI_BOOT_SERVICES *__initdata efi_bs; +static UINT32 __initdata efi_bs_revision;static EFI_HANDLE __initdata efi_ih;static SIMPLE_TEXT_OUTPUT_INTERFACE *__initdata StdOut;
@@ -713,6 +716,7 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SY efi_ih = ImageHandle; efi_bs = SystemTable->BootServices; + efi_bs_revision = efi_bs->Hdr.Revision; efi_rs = SystemTable->RuntimeServices; efi_ct = SystemTable->ConfigurationTable; efi_num_ct = SystemTable->NumberOfTableEntries;
@@ -1220,6 +1224,9 @@ void __init efi_init_memory(void) prot |= _PAGE_PAT |MAP_SMALL_PAGES ; else if ( desc->Attribute & (EFI_MEMORY_UC | EFI_MEMORY_UCE) ) prot |= _PAGE_PWT | _PAGE_PCD |MAP_SMALL_PAGES ; + else if ( efi_bs_revision >= EFI_REVISION(2, 5) && + (desc->Attribute & EFI_MEMORY_WP) ) + prot |= _PAGE_PAT | _PAGE_PWT | MAP_SMALL_PAGES; else { printk(XENLOG_ERR "Unknown cachability for MFNs %#lx-%#lx%s\n",
@@ -1229,7 +1236,8 @@ void __init efi_init_memory(void) prot |= _PAGE_PWT | _PAGE_PCD |MAP_SMALL_PAGES ; } -if ( desc->Attribute &EFI_MEMORY_WP ) +if ( desc->Attribute & (efi_bs_revision <EFI_REVISION (2 ,5 ) + ?EFI_MEMORY_WP :EFI_MEMORY_RO ) ) prot &= ~_PAGE_RW;if ( desc->Attribute &EFI_MEMORY_XP ) prot |= _PAGE_NX;
xen/include/efi/efidef.h +5 -1
@@ -156,11 +156,15 @@ typedef enum {#define EFI_MEMORY_WT 0x0000000000000004#define EFI_MEMORY_WB 0x0000000000000008#define EFI_MEMORY_UCE 0x0000000000000010 +#define EFI_MEMORY_WP 0x0000000000001000// physical memory protection on range -#define EFI_MEMORY_WP 0x0000000000001000#define EFI_MEMORY_RP 0x0000000000002000#define EFI_MEMORY_XP 0x0000000000004000 +#define EFI_MEMORY_RO 0x0000000000020000 + +#define EFI_MEMORY_NV 0x0000000000008000 +#define EFI_MEMORY_MORE_RELIABLE 0x0000000000010000// range requires a runtime mapping #define EFI_MEMORY_RUNTIME 0x8000000000000000
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [PATCH 4/4] x86/EFI: adjust EFI_MEMORY_WP handling for spec version 2.5
. ..snip..
Quoted 23 lines
xen/common/efi/boot.c +5
-1@@ -1220,6 +1224,9 @@ void __init efi_init_memory(void) prot |= _PAGE_PAT |MAP_SMALL_PAGES ; else if ( desc->Attribute & (EFI_MEMORY_UC | EFI_MEMORY_UCE) ) prot |= _PAGE_PWT | _PAGE_PCD |MAP_SMALL_PAGES ; + else if ( efi_bs_revision >= EFI_REVISION(2, 5) && + (desc->Attribute & EFI_MEMORY_WP) ) + prot |= _PAGE_PAT | _PAGE_PWT | MAP_SMALL_PAGES; else { printk(XENLOG_ERR "Unknown cachability for MFNs %#lx-%#lx%s\n",@@ -1229,7 +1236,8 @@ void __init efi_init_memory(void) prot |= _PAGE_PWT | _PAGE_PCD |MAP_SMALL_PAGES ; } -if ( desc->Attribute &EFI_MEMORY_WP ) +if ( desc->Attribute & (efi_bs_revision <EFI_REVISION (2 ,5 ) + ?EFI_MEMORY_WP :EFI_MEMORY_RO ) ) prot &= ~_PAGE_RW;if ( desc->Attribute &EFI_MEMORY_XP ) prot |= _PAGE_NX;
xen/include/efi/efidef.h typedef enum { · line 161
Quoted 7 lines
xen/include/efi/efidef.h +1
-1@@ -156,11 +156,15 @@ typedef enum {#define EFI_MEMORY_WT 0x0000000000000004#define EFI_MEMORY_WB 0x0000000000000008#define EFI_MEMORY_UCE 0x0000000000000010 +#define EFI_MEMORY_WP 0x0000000000001000// physical memory protection on range -#define EFI_MEMORY_WP 0x0000000000001000
You delete EFI_MEMORY_WP it here, but you use it in 'efi_init_memory'?
xen/include/efi/efidef.h typedef enum { · line 167
Quoted 6 lines
xen/include/efi/efidef.h +4
-0#define EFI_MEMORY_RP 0x0000000000002000#define EFI_MEMORY_XP 0x0000000000004000 +#define EFI_MEMORY_RO 0x0000000000020000 + +#define EFI_MEMORY_NV 0x0000000000008000 +#define EFI_MEMORY_MORE_RELIABLE 0x0000000000010000
Those two are new (NV, MORE_RELIABLE), should they be part of a different patch? Or if they are part of the new spec just mention in the commit that you are adding it in for future use?
Quoted 8 lines
xen/include/efi/efidef.h +0
-0// range requires a runtime mapping #define EFI_MEMORY_RUNTIME 0x8000000000000000_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [PATCH 4/4] x86/EFI: adjust EFI_MEMORY_WP handling for spec version 2.5
Quoted 29 lines · Konrad Rzeszutek Wilk
.. ..snip..
Quoted 28 lines
xen/common/efi/boot.c +5
-1@@ -1220,6 +1224,9 @@ void __init efi_init_memory(void) prot |= _PAGE_PAT |MAP_SMALL_PAGES ; else if ( desc->Attribute & (EFI_MEMORY_UC | EFI_MEMORY_UCE) ) prot |= _PAGE_PWT | _PAGE_PCD |MAP_SMALL_PAGES ; + else if ( efi_bs_revision >= EFI_REVISION(2, 5) && + (desc->Attribute & EFI_MEMORY_WP) ) + prot |= _PAGE_PAT | _PAGE_PWT | MAP_SMALL_PAGES; else { printk(XENLOG_ERR "Unknown cachability for MFNs %#lx-%#lx%s\n",@@ -1229,7 +1236,8 @@ void __init efi_init_memory(void) prot |= _PAGE_PWT | _PAGE_PCD |MAP_SMALL_PAGES ; } -if ( desc->Attribute &EFI_MEMORY_WP ) +if ( desc->Attribute & (efi_bs_revision <EFI_REVISION (2 ,5 ) + ?EFI_MEMORY_WP :EFI_MEMORY_RO ) ) prot &= ~_PAGE_RW;if ( desc->Attribute &EFI_MEMORY_XP ) prot |= _PAGE_NX;xen/include/efi/efidef.h +1
-0@@ -156,11 +156,15 @@ typedef enum {#define EFI_MEMORY_WT 0x0000000000000004#define EFI_MEMORY_WB 0x0000000000000008#define EFI_MEMORY_UCE 0x0000000000000010 +#define EFI_MEMORY_WP 0x0000000000001000
Quoted 4 lines
xen/include/efi/efidef.h typedef enum { · line 161
Quoted 2 lines
xen/include/efi/efidef.h +0
-1// physical memory protection on range -#define EFI_MEMORY_WP 0x0000000000001000You delete
EFI_MEMORY_WPit here, but you use it in 'efi_init_memory'?
<blushes> Please ignore that - I overlooked the movement of the define up.
Re: [PATCH 4/4] x86/EFI: adjust EFI_MEMORY_WP handling for spec version 2.5
In reply to Konrad Rzeszutek WilkQuoted 13 lines
xen/include/efi/efidef.h void __init efi_init_memory(void) · line 1229
Quoted 8 lines
Quoted 1 line · On 09.06.15 at 16:08, <[email protected]> wrote:
xen/include/efi/efidef.h +4
-0@@ -1220,6 +1224,9 @@ void __init efi_init_memory(void)#define EFI_MEMORY_RP 0x0000000000002000#define EFI_MEMORY_XP 0x0000000000004000 +#define EFI_MEMORY_RO 0x0000000000020000 + +#define EFI_MEMORY_NV 0x0000000000008000 +#define EFI_MEMORY_MORE_RELIABLE 0x0000000000010000Those two are new (NV,
MORE_RELIABLE), should they be part of a different patch? Or if they are part of the new spec just mention in the commit that you are adding it in for future use?
Added
"Along with EFI_MEMORY_RO also add the two other new EFI_MEMORY_*
definitions, even if we don't need them right away."
Jan
Konrad Rzeszutek Wilk
Reviewed-byRe: [PATCH 4/4] x86/EFI: adjust EFI_MEMORY_WP handling for spec version 2.5
Quoted 14 lines · Jan Beulich
Quoted 13 lines
xen/include/efi/efidef.h void __init efi_init_memory(void) · line 1229
Quoted 8 lines
Quoted 1 line · On 09.06.15 at 16:08, <[email protected]> wrote:
xen/include/efi/efidef.h +4
-0@@ -1220,6 +1224,9 @@ void __init efi_init_memory(void)#define EFI_MEMORY_RP 0x0000000000002000#define EFI_MEMORY_XP 0x0000000000004000 +#define EFI_MEMORY_RO 0x0000000000020000 + +#define EFI_MEMORY_NV 0x0000000000008000 +#define EFI_MEMORY_MORE_RELIABLE 0x0000000000010000Those two are new (NV,
MORE_RELIABLE), should they be part of a different patch? Or if they are part of the new spec just mention in the commit that you are adding it in for future use?
Quoted 4 lines
Added
"Along with
EFI_MEMORY_ROalso add the two other new EFI_MEMORY_*
definitions, even if we don't need them right away."
Quoted 3 lines
Jan
Re: [PATCH 4/4] x86/EFI: adjust EFI_MEMORY_WP handling for spec version 2.5
In reply to Jan BeulichQuoted 4 lines · Jan Beulich
That flag now means cachability rather than protection, and a new flag
EFI_MEMORY_ROgot added in its place.Signed-off-by Jan Beulich <[email protected]>
This matches my reading of the 2.5 spec.
Quoted 6 lines · Jan Beulich
1: x86/EFI: fix
EFI_MEMORY_WPhandling
2: EFI/early: add /mapbs to map EfiBootServices{Code,Data}
3: EFI: support default attributes to map Runtime service areas with none given 4: x86/EFI: adjustEFI_MEMORY_WPhandling for spec version 2.5Patches 2 and 3 are based on earlier work by Konrad.
Thank you for retouching them!
Quoted 3 lines
Signed-off-by Jan Beulich <[email protected]>