tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 9094437bec1ace7378abfe84597e722209d03f85 commit: 2a3cfce9a18a4b772f01830cbc95fe00125431d8 [3045/3045] KVM: x86: Make Hyper-V emulation optional config: x86_64-buildonly-randconfig-002-20251027 (https://download.01.org/0day-ci/archive/20251027/202510271331.Y6ayA7xV-lkp@i...) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251027/202510271331.Y6ayA7xV-lkp@i...) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202510271331.Y6ayA7xV-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from arch/x86/kvm/kvm-asm-offsets.c:10: arch/x86/kvm/vmx/vmx.h: In function 'guest_cpuid_has_evmcs':
arch/x86/kvm/vmx/vmx.h:757:26: error: 'struct kvm_vcpu_arch' has no member named 'hyperv_enabled' 757 | return vcpu->arch.hyperv_enabled && | ^ -- In file included from arch/x86/kvm/vmx/nested.h:8, from arch/x86/kvm/vmx/nested.c:14: arch/x86/kvm/vmx/vmx.h: In function 'guest_cpuid_has_evmcs': arch/x86/kvm/vmx/vmx.h:757:26: error: 'struct kvm_vcpu_arch' has no member named 'hyperv_enabled' 757 | return vcpu->arch.hyperv_enabled && | ^ In file included from include/asm-generic/bug.h:5, from arch/x86/include/asm/bug.h:99, from include/linux/bug.h:5, from include/linux/mmdebug.h:5, from include/linux/percpu.h:5, from arch/x86/kvm/vmx/nested.c:5: arch/x86/kvm/vmx/nested.c: In function 'nested_vmx_transition_tlb_flush': arch/x86/kvm/vmx/nested.c:1178:13: error: implicit declaration of function 'to_hv_vcpu' [-Wimplicit-function-declaration] 1178 | if (to_hv_vcpu(vcpu) && enable_ept) | ^~~~~~~~~~ include/linux/compiler.h:57:52: note: in definition of macro '__trace_if_var' 57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ arch/x86/kvm/vmx/nested.c:1178:9: note: in expansion of macro 'if' 1178 | if (to_hv_vcpu(vcpu) && enable_ept) | ^~ -- In file included from arch/x86/kvm/vmx/nested.h:8, from arch/x86/kvm/vmx/vmx.c:60: arch/x86/kvm/vmx/vmx.h: In function 'guest_cpuid_has_evmcs': arch/x86/kvm/vmx/vmx.h:757:26: error: 'struct kvm_vcpu_arch' has no member named 'hyperv_enabled' 757 | return vcpu->arch.hyperv_enabled && | ^ arch/x86/kvm/vmx/vmx.c: In function 'hv_enable_l2_tlb_flush': arch/x86/kvm/vmx/vmx.c:540:26: error: implicit declaration of function 'to_kvm_hv'; did you mean 'to_kvm_vmx'? [-Wimplicit-function-declaration] 540 | &to_kvm_hv(vcpu->kvm)->hv_pa_pg; | ^~~~~~~~~ | to_kvm_vmx arch/x86/kvm/vmx/vmx.c:540:46: error: invalid type argument of '->' (have 'int') 540 | &to_kvm_hv(vcpu->kvm)->hv_pa_pg; | ^~ -- arch/x86/kvm/x86.c: In function 'kvm_arch_free_vm': arch/x86/kvm/x86.c:12528:15: error: implicit declaration of function 'to_kvm_hv' [-Wimplicit-function-declaration] 12528 | kfree(to_kvm_hv(kvm)->hv_pa_pg); | ^~~~~~~~~ arch/x86/kvm/x86.c:12528:29: error: invalid type argument of '->' (have 'int') 12528 | kfree(to_kvm_hv(kvm)->hv_pa_pg); | ^~ -- In file included from include/asm-generic/bug.h:5, from arch/x86/include/asm/bug.h:99, from include/linux/bug.h:5, from include/linux/mmdebug.h:5, from include/linux/percpu.h:5, from include/linux/context_tracking_state.h:5, from include/linux/hardirq.h:5, from include/linux/kvm_host.h:7, from arch/x86/kvm/lapic.c:20: arch/x86/kvm/lapic.c: In function 'apic_set_eoi': arch/x86/kvm/lapic.c:1479:13: error: implicit declaration of function 'to_hv_vcpu' [-Wimplicit-function-declaration] 1479 | if (to_hv_vcpu(apic->vcpu) && | ^~~~~~~~~~ include/linux/compiler.h:57:52: note: in definition of macro '__trace_if_var' 57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ arch/x86/kvm/lapic.c:1479:9: note: in expansion of macro 'if' 1479 | if (to_hv_vcpu(apic->vcpu) && | ^~ arch/x86/kvm/lapic.c:1480:30: error: implicit declaration of function 'to_hv_synic' [-Wimplicit-function-declaration] 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~~~~~~~~~~ include/linux/compiler.h:57:52: note: in definition of macro '__trace_if_var' 57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ arch/x86/kvm/lapic.c:1479:9: note: in expansion of macro 'if' 1479 | if (to_hv_vcpu(apic->vcpu) && | ^~ include/linux/bitops.h:61:41: note: in expansion of macro 'bitop' 61 | #define test_bit(nr, addr) bitop(_test_bit, nr, addr) | ^~~~~ arch/x86/kvm/lapic.c:1480:13: note: in expansion of macro 'test_bit' 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~~~~~~~ arch/x86/kvm/lapic.c:1480:53: error: invalid type argument of '->' (have 'int') 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~ include/linux/compiler.h:57:52: note: in definition of macro '__trace_if_var' 57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ arch/x86/kvm/lapic.c:1479:9: note: in expansion of macro 'if' 1479 | if (to_hv_vcpu(apic->vcpu) && | ^~ include/linux/bitops.h:61:41: note: in expansion of macro 'bitop' 61 | #define test_bit(nr, addr) bitop(_test_bit, nr, addr) | ^~~~~ arch/x86/kvm/lapic.c:1480:13: note: in expansion of macro 'test_bit' 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~~~~~~~ arch/x86/kvm/lapic.c:1480:53: error: invalid type argument of '->' (have 'int') 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~ include/linux/compiler.h:57:52: note: in definition of macro '__trace_if_var' 57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ arch/x86/kvm/lapic.c:1479:9: note: in expansion of macro 'if' 1479 | if (to_hv_vcpu(apic->vcpu) && | ^~ include/linux/bitops.h:61:41: note: in expansion of macro 'bitop' 61 | #define test_bit(nr, addr) bitop(_test_bit, nr, addr) | ^~~~~ arch/x86/kvm/lapic.c:1480:13: note: in expansion of macro 'test_bit' 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~~~~~~~ arch/x86/kvm/lapic.c:1480:53: error: invalid type argument of '->' (have 'int') 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~ include/linux/compiler.h:57:52: note: in definition of macro '__trace_if_var' 57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ arch/x86/kvm/lapic.c:1479:9: note: in expansion of macro 'if' 1479 | if (to_hv_vcpu(apic->vcpu) && | ^~ include/linux/bitops.h:61:41: note: in expansion of macro 'bitop' 61 | #define test_bit(nr, addr) bitop(_test_bit, nr, addr) | ^~~~~ arch/x86/kvm/lapic.c:1480:13: note: in expansion of macro 'test_bit' 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~~~~~~~ arch/x86/kvm/lapic.c:1480:53: error: invalid type argument of '->' (have 'int') 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~ include/linux/compiler.h:57:52: note: in definition of macro '__trace_if_var' 57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ arch/x86/kvm/lapic.c:1479:9: note: in expansion of macro 'if' 1479 | if (to_hv_vcpu(apic->vcpu) && | ^~ include/linux/bitops.h:61:41: note: in expansion of macro 'bitop' 61 | #define test_bit(nr, addr) bitop(_test_bit, nr, addr) | ^~~~~ arch/x86/kvm/lapic.c:1480:13: note: in expansion of macro 'test_bit' 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~~~~~~~ arch/x86/kvm/lapic.c:1480:53: error: invalid type argument of '->' (have 'int') 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~ include/linux/compiler.h:57:52: note: in definition of macro '__trace_if_var' 57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ arch/x86/kvm/lapic.c:1479:9: note: in expansion of macro 'if' 1479 | if (to_hv_vcpu(apic->vcpu) && | ^~ include/linux/bitops.h:61:41: note: in expansion of macro 'bitop' 61 | #define test_bit(nr, addr) bitop(_test_bit, nr, addr) | ^~~~~ arch/x86/kvm/lapic.c:1480:13: note: in expansion of macro 'test_bit' 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~~~~~~~ arch/x86/kvm/lapic.c:1480:53: error: invalid type argument of '->' (have 'int') 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~ include/linux/compiler.h:57:61: note: in definition of macro '__trace_if_var' 57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ arch/x86/kvm/lapic.c:1479:9: note: in expansion of macro 'if' 1479 | if (to_hv_vcpu(apic->vcpu) && | ^~ include/linux/bitops.h:61:41: note: in expansion of macro 'bitop' 61 | #define test_bit(nr, addr) bitop(_test_bit, nr, addr) | ^~~~~ arch/x86/kvm/lapic.c:1480:13: note: in expansion of macro 'test_bit' 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~~~~~~~ arch/x86/kvm/lapic.c:1480:53: error: invalid type argument of '->' (have 'int') 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~ include/linux/compiler.h:57:61: note: in definition of macro '__trace_if_var' 57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ arch/x86/kvm/lapic.c:1479:9: note: in expansion of macro 'if' 1479 | if (to_hv_vcpu(apic->vcpu) && | ^~ include/linux/bitops.h:61:41: note: in expansion of macro 'bitop' 61 | #define test_bit(nr, addr) bitop(_test_bit, nr, addr) | ^~~~~ arch/x86/kvm/lapic.c:1480:13: note: in expansion of macro 'test_bit' 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~~~~~~~ arch/x86/kvm/lapic.c:1480:53: error: invalid type argument of '->' (have 'int') 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~ include/linux/compiler.h:57:61: note: in definition of macro '__trace_if_var' 57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ arch/x86/kvm/lapic.c:1479:9: note: in expansion of macro 'if' 1479 | if (to_hv_vcpu(apic->vcpu) && | ^~ include/linux/bitops.h:61:41: note: in expansion of macro 'bitop' 61 | #define test_bit(nr, addr) bitop(_test_bit, nr, addr) | ^~~~~ arch/x86/kvm/lapic.c:1480:13: note: in expansion of macro 'test_bit' 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~~~~~~~ arch/x86/kvm/lapic.c:1480:53: error: invalid type argument of '->' (have 'int') 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~ include/linux/compiler.h:57:61: note: in definition of macro '__trace_if_var' 57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ arch/x86/kvm/lapic.c:1479:9: note: in expansion of macro 'if' 1479 | if (to_hv_vcpu(apic->vcpu) && | ^~ include/linux/bitops.h:61:41: note: in expansion of macro 'bitop' 61 | #define test_bit(nr, addr) bitop(_test_bit, nr, addr) | ^~~~~ arch/x86/kvm/lapic.c:1480:13: note: in expansion of macro 'test_bit' 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~~~~~~~ arch/x86/kvm/lapic.c:1480:53: error: invalid type argument of '->' (have 'int') 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~ include/linux/compiler.h:57:61: note: in definition of macro '__trace_if_var' 57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ arch/x86/kvm/lapic.c:1479:9: note: in expansion of macro 'if' 1479 | if (to_hv_vcpu(apic->vcpu) && | ^~ include/linux/bitops.h:61:41: note: in expansion of macro 'bitop' 61 | #define test_bit(nr, addr) bitop(_test_bit, nr, addr) | ^~~~~ arch/x86/kvm/lapic.c:1480:13: note: in expansion of macro 'test_bit' 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~~~~~~~ arch/x86/kvm/lapic.c:1480:53: error: invalid type argument of '->' (have 'int') 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~ include/linux/compiler.h:68:10: note: in definition of macro '__trace_if_value' 68 | (cond) ? \ | ^~~~ include/linux/compiler.h:55:28: note: in expansion of macro '__trace_if_var' 55 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) ) | ^~~~~~~~~~~~~~ arch/x86/kvm/lapic.c:1479:9: note: in expansion of macro 'if' 1479 | if (to_hv_vcpu(apic->vcpu) && | ^~ include/linux/bitops.h:61:41: note: in expansion of macro 'bitop' 61 | #define test_bit(nr, addr) bitop(_test_bit, nr, addr) | ^~~~~ arch/x86/kvm/lapic.c:1480:13: note: in expansion of macro 'test_bit' 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~~~~~~~ arch/x86/kvm/lapic.c:1480:53: error: invalid type argument of '->' (have 'int') 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~ include/linux/compiler.h:68:10: note: in definition of macro '__trace_if_value' 68 | (cond) ? \ | ^~~~ include/linux/compiler.h:55:28: note: in expansion of macro '__trace_if_var' 55 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) ) | ^~~~~~~~~~~~~~ arch/x86/kvm/lapic.c:1479:9: note: in expansion of macro 'if' 1479 | if (to_hv_vcpu(apic->vcpu) && | ^~ include/linux/bitops.h:61:41: note: in expansion of macro 'bitop' 61 | #define test_bit(nr, addr) bitop(_test_bit, nr, addr) | ^~~~~ arch/x86/kvm/lapic.c:1480:13: note: in expansion of macro 'test_bit' 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~~~~~~~ arch/x86/kvm/lapic.c:1480:53: error: invalid type argument of '->' (have 'int') 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~ include/linux/compiler.h:68:10: note: in definition of macro '__trace_if_value' 68 | (cond) ? \ | ^~~~ include/linux/compiler.h:55:28: note: in expansion of macro '__trace_if_var' 55 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) ) | ^~~~~~~~~~~~~~ arch/x86/kvm/lapic.c:1479:9: note: in expansion of macro 'if' 1479 | if (to_hv_vcpu(apic->vcpu) && | ^~ include/linux/bitops.h:61:41: note: in expansion of macro 'bitop' 61 | #define test_bit(nr, addr) bitop(_test_bit, nr, addr) | ^~~~~ arch/x86/kvm/lapic.c:1480:13: note: in expansion of macro 'test_bit' 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~~~~~~~ arch/x86/kvm/lapic.c:1480:53: error: invalid type argument of '->' (have 'int') 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~ include/linux/compiler.h:68:10: note: in definition of macro '__trace_if_value' 68 | (cond) ? \ | ^~~~ include/linux/compiler.h:55:28: note: in expansion of macro '__trace_if_var' 55 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) ) | ^~~~~~~~~~~~~~ arch/x86/kvm/lapic.c:1479:9: note: in expansion of macro 'if' 1479 | if (to_hv_vcpu(apic->vcpu) && | ^~ include/linux/bitops.h:61:41: note: in expansion of macro 'bitop' 61 | #define test_bit(nr, addr) bitop(_test_bit, nr, addr) | ^~~~~ arch/x86/kvm/lapic.c:1480:13: note: in expansion of macro 'test_bit' 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~~~~~~~ arch/x86/kvm/lapic.c:1480:53: error: invalid type argument of '->' (have 'int') 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~ include/linux/compiler.h:68:10: note: in definition of macro '__trace_if_value' 68 | (cond) ? \ | ^~~~ include/linux/compiler.h:55:28: note: in expansion of macro '__trace_if_var' 55 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) ) | ^~~~~~~~~~~~~~ arch/x86/kvm/lapic.c:1479:9: note: in expansion of macro 'if' 1479 | if (to_hv_vcpu(apic->vcpu) && | ^~ include/linux/bitops.h:61:41: note: in expansion of macro 'bitop' 61 | #define test_bit(nr, addr) bitop(_test_bit, nr, addr) | ^~~~~ arch/x86/kvm/lapic.c:1480:13: note: in expansion of macro 'test_bit' 1480 | test_bit(vector, to_hv_synic(apic->vcpu)->vec_bitmap)) | ^~~~~~~~ arch/x86/kvm/lapic.c: In function 'kvm_get_apic_interrupt': arch/x86/kvm/lapic.c:2954:67: error: invalid type argument of '->' (have 'int') 2954 | if (to_hv_vcpu(vcpu) && test_bit(vector, to_hv_synic(vcpu)->auto_eoi_bitmap)) { | ^~ include/linux/compiler.h:57:52: note: in definition of macro '__trace_if_var' 57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ arch/x86/kvm/lapic.c:2954:9: note: in expansion of macro 'if' 2954 | if (to_hv_vcpu(vcpu) && test_bit(vector, to_hv_synic(vcpu)->auto_eoi_bitmap)) { | ^~ include/linux/bitops.h:61:41: note: in expansion of macro 'bitop' 61 | #define test_bit(nr, addr) bitop(_test_bit, nr, addr) | ^~~~~ arch/x86/kvm/lapic.c:2954:33: note: in expansion of macro 'test_bit' 2954 | if (to_hv_vcpu(vcpu) && test_bit(vector, to_hv_synic(vcpu)->auto_eoi_bitmap)) { | ^~~~~~~~ arch/x86/kvm/lapic.c:2954:67: error: invalid type argument of '->' (have 'int') 2954 | if (to_hv_vcpu(vcpu) && test_bit(vector, to_hv_synic(vcpu)->auto_eoi_bitmap)) { | ^~ include/linux/compiler.h:57:52: note: in definition of macro '__trace_if_var' 57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ arch/x86/kvm/lapic.c:2954:9: note: in expansion of macro 'if' 2954 | if (to_hv_vcpu(vcpu) && test_bit(vector, to_hv_synic(vcpu)->auto_eoi_bitmap)) { | ^~ include/linux/bitops.h:61:41: note: in expansion of macro 'bitop' 61 | #define test_bit(nr, addr) bitop(_test_bit, nr, addr) | ^~~~~ arch/x86/kvm/lapic.c:2954:33: note: in expansion of macro 'test_bit' 2954 | if (to_hv_vcpu(vcpu) && test_bit(vector, to_hv_synic(vcpu)->auto_eoi_bitmap)) { | ^~~~~~~~ arch/x86/kvm/lapic.c:2954:67: error: invalid type argument of '->' (have 'int') 2954 | if (to_hv_vcpu(vcpu) && test_bit(vector, to_hv_synic(vcpu)->auto_eoi_bitmap)) { | ^~ include/linux/compiler.h:57:52: note: in definition of macro '__trace_if_var' 57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ arch/x86/kvm/lapic.c:2954:9: note: in expansion of macro 'if' 2954 | if (to_hv_vcpu(vcpu) && test_bit(vector, to_hv_synic(vcpu)->auto_eoi_bitmap)) { | ^~ include/linux/bitops.h:61:41: note: in expansion of macro 'bitop' 61 | #define test_bit(nr, addr) bitop(_test_bit, nr, addr) | ^~~~~ arch/x86/kvm/lapic.c:2954:33: note: in expansion of macro 'test_bit' 2954 | if (to_hv_vcpu(vcpu) && test_bit(vector, to_hv_synic(vcpu)->auto_eoi_bitmap)) { | ^~~~~~~~ arch/x86/kvm/lapic.c:2954:67: error: invalid type argument of '->' (have 'int') 2954 | if (to_hv_vcpu(vcpu) && test_bit(vector, to_hv_synic(vcpu)->auto_eoi_bitmap)) { | ^~ include/linux/compiler.h:57:52: note: in definition of macro '__trace_if_var' 57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ arch/x86/kvm/lapic.c:2954:9: note: in expansion of macro 'if' 2954 | if (to_hv_vcpu(vcpu) && test_bit(vector, to_hv_synic(vcpu)->auto_eoi_bitmap)) { | ^~ include/linux/bitops.h:61:41: note: in expansion of macro 'bitop' 61 | #define test_bit(nr, addr) bitop(_test_bit, nr, addr) | ^~~~~ arch/x86/kvm/lapic.c:2954:33: note: in expansion of macro 'test_bit' 2954 | if (to_hv_vcpu(vcpu) && test_bit(vector, to_hv_synic(vcpu)->auto_eoi_bitmap)) { | ^~~~~~~~ arch/x86/kvm/lapic.c:2954:67: error: invalid type argument of '->' (have 'int') 2954 | if (to_hv_vcpu(vcpu) && test_bit(vector, to_hv_synic(vcpu)->auto_eoi_bitmap)) { | ^~ include/linux/compiler.h:57:52: note: in definition of macro '__trace_if_var' 57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ arch/x86/kvm/lapic.c:2954:9: note: in expansion of macro 'if' 2954 | if (to_hv_vcpu(vcpu) && test_bit(vector, to_hv_synic(vcpu)->auto_eoi_bitmap)) { | ^~ include/linux/bitops.h:61:41: note: in expansion of macro 'bitop' 61 | #define test_bit(nr, addr) bitop(_test_bit, nr, addr) | ^~~~~ arch/x86/kvm/lapic.c:2954:33: note: in expansion of macro 'test_bit' 2954 | if (to_hv_vcpu(vcpu) && test_bit(vector, to_hv_synic(vcpu)->auto_eoi_bitmap)) { | ^~~~~~~~ arch/x86/kvm/lapic.c:2954:67: error: invalid type argument of '->' (have 'int') 2954 | if (to_hv_vcpu(vcpu) && test_bit(vector, to_hv_synic(vcpu)->auto_eoi_bitmap)) { | ^~ include/linux/compiler.h:57:61: note: in definition of macro '__trace_if_var' 57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ arch/x86/kvm/lapic.c:2954:9: note: in expansion of macro 'if' ..
vim +757 arch/x86/kvm/vmx/vmx.h d588bb9be1da6a Chao Gao 2022-04-19 750 85ab071af83952 Sean Christopherson 2022-08-30 751 static inline bool guest_cpuid_has_evmcs(struct kvm_vcpu *vcpu) 85ab071af83952 Sean Christopherson 2022-08-30 752 { 85ab071af83952 Sean Christopherson 2022-08-30 753 /* 85ab071af83952 Sean Christopherson 2022-08-30 754 * eVMCS is exposed to the guest if Hyper-V is enabled in CPUID and 85ab071af83952 Sean Christopherson 2022-08-30 755 * eVMCS has been explicitly enabled by userspace. 85ab071af83952 Sean Christopherson 2022-08-30 756 */ 85ab071af83952 Sean Christopherson 2022-08-30 @757 return vcpu->arch.hyperv_enabled && 85ab071af83952 Sean Christopherson 2022-08-30 758 to_vmx(vcpu)->nested.enlightened_vmcs_enabled; 85ab071af83952 Sean Christopherson 2022-08-30 759 } 85ab071af83952 Sean Christopherson 2022-08-30 760 :::::: The code at line 757 was first introduced by commit :::::: 85ab071af83952a44473e3d02304c17053ade2f4 KVM: nVMX: Treat eVMCS as enabled for guest iff Hyper-V is also enabled :::::: TO: Sean Christopherson <seanjc@google.com> :::::: CC: Paolo Bonzini <pbonzini@redhat.com> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki