Content-Type: multipart/mixed; boundary="===============5132538767840168364==" MIME-Version: 1.0 From: kbuild test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH 3/4] KVM: nSVM: implement check_nested_events for interrupts Date: Sat, 07 Mar 2020 09:18:22 +0800 Message-ID: <202003070954.akHT8HEM%lkp@intel.com> In-Reply-To: <1583403227-11432-4-git-send-email-pbonzini@redhat.com> List-Id: --===============5132538767840168364== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Paolo, I love your patch! Perhaps something to improve: [auto build test WARNING on kvm/linux-next] [also build test WARNING on linus/master v5.6-rc4 next-20200306] [cannot apply to linux/master vhost/linux-next] [if your patch is applied to the wrong git tree, please drop us a note to h= elp improve the system. BTW, we also suggest to use '--base' option to specify = the base tree in git format-patch, please see https://stackoverflow.com/a/37406= 982] url: https://github.com/0day-ci/linux/commits/Paolo-Bonzini/KVM-nSVM-fir= st-step-towards-fixing-event-injection/20200306-015933 base: https://git.kernel.org/pub/scm/virt/kvm/kvm.git linux-next reproduce: # apt-get install sparse # sparse version: v0.6.1-174-g094d5a94-dirty make ARCH=3Dx86_64 allmodconfig make C=3D1 CF=3D'-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) >> arch/x86/kvm/svm.c:7538:32: sparse: sparse: incorrect type in initialize= r (different argument counts) >> arch/x86/kvm/svm.c:7538:32: sparse: expected int ( *check_nested_even= ts )( ... ) >> arch/x86/kvm/svm.c:7538:32: sparse: got int ( * )( ... ) arch/x86/include/asm/paravirt.h:200:9: sparse: sparse: cast truncates bi= ts from constant value (100000000 becomes 0) arch/x86/include/asm/paravirt.h:200:9: sparse: sparse: cast truncates bi= ts from constant value (100000000 becomes 0) arch/x86/include/asm/bitops.h:77:37: sparse: sparse: cast truncates bits= from constant value (ffffff7f becomes 7f) arch/x86/kvm/svm.c:6920:60: sparse: sparse: dereference of noderef expre= ssion arch/x86/kvm/svm.c:6920:60: sparse: sparse: dereference of noderef expre= ssion arch/x86/kvm/svm.c:6943:14: sparse: sparse: dereference of noderef expre= ssion arch/x86/kvm/svm.c:6949:59: sparse: sparse: dereference of noderef expre= ssion arch/x86/kvm/svm.c:6949:59: sparse: sparse: dereference of noderef expre= ssion arch/x86/kvm/svm.c:6963:14: sparse: sparse: dereference of noderef expre= ssion arch/x86/kvm/svm.c:6988:70: sparse: sparse: dereference of noderef expre= ssion arch/x86/kvm/svm.c:6988:70: sparse: sparse: dereference of noderef expre= ssion vim +7538 arch/x86/kvm/svm.c 7396 = 7397 static struct kvm_x86_ops svm_x86_ops __ro_after_init =3D { 7398 .cpu_has_kvm_support =3D has_svm, 7399 .disabled_by_bios =3D is_disabled, 7400 .hardware_setup =3D svm_hardware_setup, 7401 .hardware_unsetup =3D svm_hardware_teardown, 7402 .check_processor_compatibility =3D svm_check_processor_compat, 7403 .hardware_enable =3D svm_hardware_enable, 7404 .hardware_disable =3D svm_hardware_disable, 7405 .cpu_has_accelerated_tpr =3D svm_cpu_has_accelerated_tpr, 7406 .has_emulated_msr =3D svm_has_emulated_msr, 7407 = 7408 .vcpu_create =3D svm_create_vcpu, 7409 .vcpu_free =3D svm_free_vcpu, 7410 .vcpu_reset =3D svm_vcpu_reset, 7411 = 7412 .vm_alloc =3D svm_vm_alloc, 7413 .vm_free =3D svm_vm_free, 7414 .vm_init =3D svm_vm_init, 7415 .vm_destroy =3D svm_vm_destroy, 7416 = 7417 .prepare_guest_switch =3D svm_prepare_guest_switch, 7418 .vcpu_load =3D svm_vcpu_load, 7419 .vcpu_put =3D svm_vcpu_put, 7420 .vcpu_blocking =3D svm_vcpu_blocking, 7421 .vcpu_unblocking =3D svm_vcpu_unblocking, 7422 = 7423 .update_bp_intercept =3D update_bp_intercept, 7424 .get_msr_feature =3D svm_get_msr_feature, 7425 .get_msr =3D svm_get_msr, 7426 .set_msr =3D svm_set_msr, 7427 .get_segment_base =3D svm_get_segment_base, 7428 .get_segment =3D svm_get_segment, 7429 .set_segment =3D svm_set_segment, 7430 .get_cpl =3D svm_get_cpl, 7431 .get_cs_db_l_bits =3D kvm_get_cs_db_l_bits, 7432 .decache_cr0_guest_bits =3D svm_decache_cr0_guest_bits, 7433 .decache_cr4_guest_bits =3D svm_decache_cr4_guest_bits, 7434 .set_cr0 =3D svm_set_cr0, 7435 .set_cr3 =3D svm_set_cr3, 7436 .set_cr4 =3D svm_set_cr4, 7437 .set_efer =3D svm_set_efer, 7438 .get_idt =3D svm_get_idt, 7439 .set_idt =3D svm_set_idt, 7440 .get_gdt =3D svm_get_gdt, 7441 .set_gdt =3D svm_set_gdt, 7442 .get_dr6 =3D svm_get_dr6, 7443 .set_dr6 =3D svm_set_dr6, 7444 .set_dr7 =3D svm_set_dr7, 7445 .sync_dirty_debug_regs =3D svm_sync_dirty_debug_regs, 7446 .cache_reg =3D svm_cache_reg, 7447 .get_rflags =3D svm_get_rflags, 7448 .set_rflags =3D svm_set_rflags, 7449 = 7450 .tlb_flush =3D svm_flush_tlb, 7451 .tlb_flush_gva =3D svm_flush_tlb_gva, 7452 = 7453 .run =3D svm_vcpu_run, 7454 .handle_exit =3D handle_exit, 7455 .skip_emulated_instruction =3D skip_emulated_instruction, 7456 .update_emulated_instruction =3D NULL, 7457 .set_interrupt_shadow =3D svm_set_interrupt_shadow, 7458 .get_interrupt_shadow =3D svm_get_interrupt_shadow, 7459 .patch_hypercall =3D svm_patch_hypercall, 7460 .set_irq =3D svm_set_irq, 7461 .set_nmi =3D svm_inject_nmi, 7462 .queue_exception =3D svm_queue_exception, 7463 .cancel_injection =3D svm_cancel_injection, 7464 .interrupt_allowed =3D svm_interrupt_allowed, 7465 .nmi_allowed =3D svm_nmi_allowed, 7466 .get_nmi_mask =3D svm_get_nmi_mask, 7467 .set_nmi_mask =3D svm_set_nmi_mask, 7468 .enable_nmi_window =3D enable_nmi_window, 7469 .enable_irq_window =3D enable_irq_window, 7470 .update_cr8_intercept =3D update_cr8_intercept, 7471 .set_virtual_apic_mode =3D svm_set_virtual_apic_mode, 7472 .refresh_apicv_exec_ctrl =3D svm_refresh_apicv_exec_ctrl, 7473 .check_apicv_inhibit_reasons =3D svm_check_apicv_inhibit_reasons, 7474 .pre_update_apicv_exec_ctrl =3D svm_pre_update_apicv_exec_ctrl, 7475 .load_eoi_exitmap =3D svm_load_eoi_exitmap, 7476 .hwapic_irr_update =3D svm_hwapic_irr_update, 7477 .hwapic_isr_update =3D svm_hwapic_isr_update, 7478 .sync_pir_to_irr =3D kvm_lapic_find_highest_irr, 7479 .apicv_post_state_restore =3D avic_post_state_restore, 7480 = 7481 .set_tss_addr =3D svm_set_tss_addr, 7482 .set_identity_map_addr =3D svm_set_identity_map_addr, 7483 .get_tdp_level =3D get_npt_level, 7484 .get_mt_mask =3D svm_get_mt_mask, 7485 = 7486 .get_exit_info =3D svm_get_exit_info, 7487 = 7488 .get_lpage_level =3D svm_get_lpage_level, 7489 = 7490 .cpuid_update =3D svm_cpuid_update, 7491 = 7492 .rdtscp_supported =3D svm_rdtscp_supported, 7493 .invpcid_supported =3D svm_invpcid_supported, 7494 .mpx_supported =3D svm_mpx_supported, 7495 .xsaves_supported =3D svm_xsaves_supported, 7496 .umip_emulated =3D svm_umip_emulated, 7497 .pt_supported =3D svm_pt_supported, 7498 .pku_supported =3D svm_pku_supported, 7499 = 7500 .set_supported_cpuid =3D svm_set_supported_cpuid, 7501 = 7502 .has_wbinvd_exit =3D svm_has_wbinvd_exit, 7503 = 7504 .read_l1_tsc_offset =3D svm_read_l1_tsc_offset, 7505 .write_l1_tsc_offset =3D svm_write_l1_tsc_offset, 7506 = 7507 .set_tdp_cr3 =3D set_tdp_cr3, 7508 = 7509 .check_intercept =3D svm_check_intercept, 7510 .handle_exit_irqoff =3D svm_handle_exit_irqoff, 7511 = 7512 .request_immediate_exit =3D __kvm_request_immediate_exit, 7513 = 7514 .sched_in =3D svm_sched_in, 7515 = 7516 .pmu_ops =3D &amd_pmu_ops, 7517 .deliver_posted_interrupt =3D svm_deliver_avic_intr, 7518 .dy_apicv_has_pending_interrupt =3D svm_dy_apicv_has_pending_interr= upt, 7519 .update_pi_irte =3D svm_update_pi_irte, 7520 .setup_mce =3D svm_setup_mce, 7521 = 7522 .smi_allowed =3D svm_smi_allowed, 7523 .pre_enter_smm =3D svm_pre_enter_smm, 7524 .pre_leave_smm =3D svm_pre_leave_smm, 7525 .enable_smi_window =3D enable_smi_window, 7526 = 7527 .mem_enc_op =3D svm_mem_enc_op, 7528 .mem_enc_reg_region =3D svm_register_enc_region, 7529 .mem_enc_unreg_region =3D svm_unregister_enc_region, 7530 = 7531 .nested_enable_evmcs =3D NULL, 7532 .nested_get_evmcs_version =3D NULL, 7533 = 7534 .need_emulation_on_page_fault =3D svm_need_emulation_on_page_fault, 7535 = 7536 .apic_init_signal_blocked =3D svm_apic_init_signal_blocked, 7537 = > 7538 .check_nested_events =3D svm_check_nested_events, 7539 }; 7540 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============5132538767840168364==--