x86/setup: enclose opt_dom0_shadow in CONFIG_SHADOW_PAGING
PATCH 1/1 x86/setup: enclose opt_dom0_shadow in CONFIG_SHADOW_PAGING
Signed-off-by Wei Liu <[email protected]>
---
Cc: Jan Beulich <[email protected]>
Cc: Andrew Cooper <[email protected]>
--- xen/arch/x86/setup.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
xen/arch/x86/setup.c +5 -1
@@ -1561,7 +1561,11 @@ void __init noreturn __start_xen(unsigned long mbi_p)if ( dom0_pvh ) { domcr_flags |= DOMCRF_hvm | - ((hvm_funcs.hap_supported && !opt_dom0_shadow) ? + ((hvm_funcs.hap_supported +#ifdef CONFIG_SHADOW_PAGING + && !opt_dom0_shadow +#endif + ) ? DOMCRF_hap :0 ); config.emulation_flags =XEN_X86_EMU_LAPIC |XEN_X86_EMU_IOAPIC ; }
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
xen/arch/x86/setup.c void __init noreturn __start_xen(unsigned long mbi_p) · line 1568
Quoted 13 lines
Quoted 1 line
Quoted 1 line · On 27.03.17 at 16:12, <[email protected]> wrote:
xen/arch/x86/setup.c +5
-1@@ -1561,7 +1561,11 @@ void __init noreturn __start_xen(unsigned long mbi_p)if ( dom0_pvh ) { domcr_flags |= DOMCRF_hvm | - ((hvm_funcs.hap_supported && !opt_dom0_shadow) ? + ((hvm_funcs.hap_supported +#ifdef CONFIG_SHADOW_PAGING + && !opt_dom0_shadow +#endif + ) ?
Why? It's #define-s to false in that case.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 16 lines · Jan Beulich
xen/arch/x86/setup.c void __init noreturn __start_xen(unsigned long mbi_p) · line 1568
Quoted 13 lines
Quoted 1 line
Quoted 1 line · On 27.03.17 at 16:12, <[email protected]> wrote:
xen/arch/x86/setup.c +5
-1@@ -1561,7 +1561,11 @@ void __init noreturn __start_xen(unsigned long mbi_p)if ( dom0_pvh ) { domcr_flags |= DOMCRF_hvm | - ((hvm_funcs.hap_supported && !opt_dom0_shadow) ? + ((hvm_funcs.hap_supported +#ifdef CONFIG_SHADOW_PAGING + && !opt_dom0_shadow +#endif + ) ?Why? It's #define-s to false in that case.
Right. This patch can be ignored. asm-x86/setup.h defines it to false.
Quoted 2 lines
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel