Hi, I tried to make "jailhouse" on Centos 8 kernel version - 4.18.0-240.22.1.el8_3.x86_64.
i get the following errors. Can someone help please. thanks, CC [M] /home/kannans/jh/jailhouse/driver/main.o /home/kannans/jh/jailhouse/driver/main.c:63: warning: "MSR_IA32_FEAT_CTL" redefined #define MSR_IA32_FEAT_CTL MSR_IA32_FEATURE_CONTROL In file included from ./arch/x86/include/asm/nospec-branch.h:11, from ./arch/x86/include/asm/paravirt_types.h:48, from ./arch/x86/include/asm/ptrace.h:92, from ./arch/x86/include/asm/math_emu.h:5, from ./arch/x86/include/asm/processor.h:12, from ./arch/x86/include/asm/cpufeature.h:5, from ./arch/x86/include/asm/thread_info.h:53, from ./include/linux/thread_info.h:38, from ./arch/x86/include/asm/preempt.h:7, from ./include/linux/preempt.h:78, from ./include/linux/spinlock.h:51, from ./include/linux/seqlock.h:36, from ./include/linux/time.h:6, from ./include/linux/stat.h:19, from ./include/linux/module.h:10, from /home/kannans/jh/jailhouse/driver/main.c:19: ./arch/x86/include/asm/msr-index.h:571: note: this is the location of the previous definition #define MSR_IA32_FEAT_CTL 0x0000003a /home/kannans/jh/jailhouse/driver/main.c:64: warning: "FEAT_CTL_VMX_ENABLED_OUTSIDE_SMX" redefined #define FEAT_CTL_VMX_ENABLED_OUTSIDE_SMX \ In file included from ./arch/x86/include/asm/nospec-branch.h:11, from ./arch/x86/include/asm/paravirt_types.h:48, from ./arch/x86/include/asm/ptrace.h:92, from ./arch/x86/include/asm/math_emu.h:5, from ./arch/x86/include/asm/processor.h:12, from ./arch/x86/include/asm/cpufeature.h:5, from ./arch/x86/include/asm/thread_info.h:53, from ./include/linux/thread_info.h:38, from ./arch/x86/include/asm/preempt.h:7, from ./include/linux/preempt.h:78, from ./include/linux/spinlock.h:51, from ./include/linux/seqlock.h:36, from ./include/linux/time.h:6, from ./include/linux/stat.h:19, from ./include/linux/module.h:10, from /home/kannans/jh/jailhouse/driver/main.c:19: ./arch/x86/include/asm/msr-index.h:574: note: this is the location of the previous definition #define FEAT_CTL_VMX_ENABLED_OUTSIDE_SMX BIT(2) /home/kannans/jh/jailhouse/driver/main.c:111:28: error: ‘lapic_timer_frequency’ undeclared here (not in a function); did you mean ‘lapic_timer_period’? #define lapic_timer_period lapic_timer_frequency ^~~~~~~~~~~~~~~~~~~~~ /home/kannans/jh/jailhouse/driver/main.c:114:15: note: in expansion of macro ‘lapic_timer_period’ static typeof(lapic_timer_period) *lapic_timer_period_sym; ^~~~~~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/msr.h:246, from ./arch/x86/include/asm/processor.h:21, from ./arch/x86/include/asm/cpufeature.h:5, from ./arch/x86/include/asm/thread_info.h:53, from ./include/linux/thread_info.h:38, from ./arch/x86/include/asm/preempt.h:7, from ./include/linux/preempt.h:78, from ./include/linux/spinlock.h:51, from ./include/linux/seqlock.h:36, from ./include/linux/time.h:6, from ./include/linux/stat.h:19, from ./include/linux/module.h:10, from /home/kannans/jh/jailhouse/driver/main.c:19: /home/kannans/jh/jailhouse/driver/main.c: In function ‘jailhouse_cmd_enable’: /home/kannans/jh/jailhouse/driver/main.c:63:29: error: ‘MSR_IA32_FEATURE_CONTROL’ undeclared (first use in this function); did you mean ‘MSR_MISC_FEATURE_CONTROL’? #define MSR_IA32_FEAT_CTL MSR_IA32_FEATURE_CONTROL ^~~~~~~~~~~~~~~~~~~~~~~~ ./arch/x86/include/asm/paravirt.h:145:26: note: in definition of macro ‘rdmsrl’ val = paravirt_read_msr(msr); \ ^~~ /home/kannans/jh/jailhouse/driver/main.c:428:10: note: in expansion of macro ‘MSR_IA32_FEAT_CTL’ rdmsrl(MSR_IA32_FEAT_CTL, features); ^~~~~~~~~~~~~~~~~ /home/kannans/jh/jailhouse/driver/main.c:63:29: note: each undeclared identifier is reported only once for each function it appears in #define MSR_IA32_FEAT_CTL MSR_IA32_FEATURE_CONTROL ^~~~~~~~~~~~~~~~~~~~~~~~ ./arch/x86/include/asm/paravirt.h:145:26: note: in definition of macro ‘rdmsrl’ val = paravirt_read_msr(msr); \ ^~~ /home/kannans/jh/jailhouse/driver/main.c:428:10: note: in expansion of macro ‘MSR_IA32_FEAT_CTL’ rdmsrl(MSR_IA32_FEAT_CTL, features); ^~~~~~~~~~~~~~~~~ /home/kannans/jh/jailhouse/driver/main.c:65:2: error: ‘FEATURE_CONTROL_VMXON_ENABLED_OUTSIDE_SMX’ undeclared (first use in this function); did you mean ‘FEAT_CTL_VMX_ENABLED_OUTSIDE_SMX’? FEATURE_CONTROL_VMXON_ENABLED_OUTSIDE_SMX ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/kannans/jh/jailhouse/driver/main.c:65:2: note: in definition of macro ‘FEAT_CTL_VMX_ENABLED_OUTSIDE_SMX’ FEATURE_CONTROL_VMXON_ENABLED_OUTSIDE_SMX ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[3]: *** [scripts/Makefile.build:316: /home/kannans/jh/jailhouse/driver/main.o] Error 1 make[2]: *** [scripts/Makefile.build:556: /home/kannans/jh/jailhouse/driver] Error 2 make[1]: *** [Makefile:1544: _module_/home/kannans/jh/jailhouse] Error 2 make: *** [Makefile:40: modules] Error 2 -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/da8d930c-4b0e-4970-a239-737db3f8af72n%40googlegroups.com.
