1 #include "libcflat.h" 2 #include "processor.h" 3 #include "x86/vm.h" 4 #include "access.h" 5 6 int main(void) 7 { 8 int r; 9 10 printf("starting test\n\n"); 11 page_table_levels = 4; 12 r = ac_test_run(); 13 14 if (this_cpu_has(X86_FEATURE_LA57)) { 15 page_table_levels = 5; 16 printf("starting 5-level paging test.\n\n"); 17 setup_5level_page_table(); 18 r = ac_test_run(); 19 } 20 21 return r ? 0 : 1; 22 } 23