Re: [PATCH v8 80/81] KVM: introspection: emulate a guest page table walk on SPT violations due to A/D bit updates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi "Adalbert,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on linus/master v5.6]
[cannot apply to kvm/linux-next vhost/linux-next next-20200330]
[if your patch is applied to the wrong git tree, please drop us a note to help
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/37406982]

url:    https://github.com/0day-ci/linux/commits/Adalbert-Laz-r/VM-introspection/20200330-234749
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-lkp (attached as .config)
compiler: gcc-7 (Debian 7.4.0-6) 7.4.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   ld: arch/x86/../../virt/kvm/coalesced_mmio.o: in function `kvmi_update_ad_flags':
>> arch/x86/include/asm/kvmi_host.h:87: multiple definition of `kvmi_update_ad_flags'; arch/x86/../../virt/kvm/kvm_main.o:arch/x86/include/asm/kvmi_host.h:87: first defined here
   ld: arch/x86/../../virt/kvm/eventfd.o: in function `kvmi_update_ad_flags':
>> arch/x86/include/asm/kvmi_host.h:87: multiple definition of `kvmi_update_ad_flags'; arch/x86/../../virt/kvm/kvm_main.o:arch/x86/include/asm/kvmi_host.h:87: first defined here
   ld: arch/x86/../../virt/kvm/irqchip.o: in function `kvmi_update_ad_flags':
>> arch/x86/include/asm/kvmi_host.h:87: multiple definition of `kvmi_update_ad_flags'; arch/x86/../../virt/kvm/kvm_main.o:arch/x86/include/asm/kvmi_host.h:87: first defined here
   ld: arch/x86/../../virt/kvm/vfio.o: in function `kvmi_update_ad_flags':
>> arch/x86/include/asm/kvmi_host.h:87: multiple definition of `kvmi_update_ad_flags'; arch/x86/../../virt/kvm/kvm_main.o:arch/x86/include/asm/kvmi_host.h:87: first defined here
   ld: arch/x86/../../virt/kvm/async_pf.o: in function `kvmi_update_ad_flags':
>> arch/x86/include/asm/kvmi_host.h:87: multiple definition of `kvmi_update_ad_flags'; arch/x86/../../virt/kvm/kvm_main.o:arch/x86/include/asm/kvmi_host.h:87: first defined here
   ld: arch/x86/kvm/x86.o: in function `kvmi_update_ad_flags':
>> arch/x86/include/asm/kvmi_host.h:87: multiple definition of `kvmi_update_ad_flags'; arch/x86/../../virt/kvm/kvm_main.o:arch/x86/include/asm/kvmi_host.h:87: first defined here
   ld: arch/x86/kvm/emulate.o: in function `kvmi_update_ad_flags':
>> arch/x86/include/asm/kvmi_host.h:87: multiple definition of `kvmi_update_ad_flags'; arch/x86/../../virt/kvm/kvm_main.o:arch/x86/include/asm/kvmi_host.h:87: first defined here
   ld: arch/x86/kvm/i8259.o: in function `kvmi_update_ad_flags':
>> arch/x86/include/asm/kvmi_host.h:87: multiple definition of `kvmi_update_ad_flags'; arch/x86/../../virt/kvm/kvm_main.o:arch/x86/include/asm/kvmi_host.h:87: first defined here
   ld: arch/x86/kvm/irq.o: in function `kvmi_update_ad_flags':
>> arch/x86/include/asm/kvmi_host.h:87: multiple definition of `kvmi_update_ad_flags'; arch/x86/../../virt/kvm/kvm_main.o:arch/x86/include/asm/kvmi_host.h:87: first defined here
   ld: arch/x86/kvm/lapic.o: in function `kvmi_update_ad_flags':
>> arch/x86/include/asm/kvmi_host.h:87: multiple definition of `kvmi_update_ad_flags'; arch/x86/../../virt/kvm/kvm_main.o:arch/x86/include/asm/kvmi_host.h:87: first defined here
   ld: arch/x86/kvm/i8254.o: in function `kvmi_update_ad_flags':
>> arch/x86/include/asm/kvmi_host.h:87: multiple definition of `kvmi_update_ad_flags'; arch/x86/../../virt/kvm/kvm_main.o:arch/x86/include/asm/kvmi_host.h:87: first defined here
   ld: arch/x86/kvm/ioapic.o: in function `kvmi_update_ad_flags':
>> arch/x86/include/asm/kvmi_host.h:87: multiple definition of `kvmi_update_ad_flags'; arch/x86/../../virt/kvm/kvm_main.o:arch/x86/include/asm/kvmi_host.h:87: first defined here
   ld: arch/x86/kvm/irq_comm.o: in function `kvmi_update_ad_flags':
>> arch/x86/include/asm/kvmi_host.h:87: multiple definition of `kvmi_update_ad_flags'; arch/x86/../../virt/kvm/kvm_main.o:arch/x86/include/asm/kvmi_host.h:87: first defined here
   ld: arch/x86/kvm/cpuid.o: in function `kvmi_update_ad_flags':
>> arch/x86/include/asm/kvmi_host.h:87: multiple definition of `kvmi_update_ad_flags'; arch/x86/../../virt/kvm/kvm_main.o:arch/x86/include/asm/kvmi_host.h:87: first defined here
   ld: arch/x86/kvm/pmu.o: in function `kvmi_update_ad_flags':
>> arch/x86/include/asm/kvmi_host.h:87: multiple definition of `kvmi_update_ad_flags'; arch/x86/../../virt/kvm/kvm_main.o:arch/x86/include/asm/kvmi_host.h:87: first defined here
   ld: arch/x86/kvm/mtrr.o: in function `kvmi_update_ad_flags':
>> arch/x86/include/asm/kvmi_host.h:87: multiple definition of `kvmi_update_ad_flags'; arch/x86/../../virt/kvm/kvm_main.o:arch/x86/include/asm/kvmi_host.h:87: first defined here
   ld: arch/x86/kvm/hyperv.o: in function `kvmi_update_ad_flags':
>> arch/x86/include/asm/kvmi_host.h:87: multiple definition of `kvmi_update_ad_flags'; arch/x86/../../virt/kvm/kvm_main.o:arch/x86/include/asm/kvmi_host.h:87: first defined here
   ld: arch/x86/kvm/debugfs.o: in function `kvmi_update_ad_flags':
>> arch/x86/include/asm/kvmi_host.h:87: multiple definition of `kvmi_update_ad_flags'; arch/x86/../../virt/kvm/kvm_main.o:arch/x86/include/asm/kvmi_host.h:87: first defined here
   ld: arch/x86/kvm/mmu/mmu.o: in function `kvmi_update_ad_flags':
>> arch/x86/include/asm/kvmi_host.h:87: multiple definition of `kvmi_update_ad_flags'; arch/x86/../../virt/kvm/kvm_main.o:arch/x86/include/asm/kvmi_host.h:87: first defined here
   ld: arch/x86/kvm/mmu/page_track.o: in function `kvmi_update_ad_flags':
>> arch/x86/include/asm/kvmi_host.h:87: multiple definition of `kvmi_update_ad_flags'; arch/x86/../../virt/kvm/kvm_main.o:arch/x86/include/asm/kvmi_host.h:87: first defined here
   ld: arch/x86/kvm/vmx/vmx.o: in function `kvmi_update_ad_flags':
   arch/x86/include/asm/kvmi_host.h:87: multiple definition of `kvmi_update_ad_flags'; arch/x86/../../virt/kvm/kvm_main.o:arch/x86/include/asm/kvmi_host.h:87: first defined here
   ld: arch/x86/kvm/vmx/pmu_intel.o: in function `kvmi_update_ad_flags':
   arch/x86/include/asm/kvmi_host.h:87: multiple definition of `kvmi_update_ad_flags'; arch/x86/../../virt/kvm/kvm_main.o:arch/x86/include/asm/kvmi_host.h:87: first defined here
   ld: arch/x86/kvm/vmx/vmcs12.o: in function `kvmi_update_ad_flags':
   arch/x86/include/asm/kvmi_host.h:87: multiple definition of `kvmi_update_ad_flags'; arch/x86/../../virt/kvm/kvm_main.o:arch/x86/include/asm/kvmi_host.h:87: first defined here
   ld: arch/x86/kvm/vmx/evmcs.o: in function `kvmi_update_ad_flags':
   arch/x86/include/asm/kvmi_host.h:87: multiple definition of `kvmi_update_ad_flags'; arch/x86/../../virt/kvm/kvm_main.o:arch/x86/include/asm/kvmi_host.h:87: first defined here
   ld: arch/x86/kvm/vmx/nested.o: in function `kvmi_update_ad_flags':
   arch/x86/include/asm/kvmi_host.h:87: multiple definition of `kvmi_update_ad_flags'; arch/x86/../../virt/kvm/kvm_main.o:arch/x86/include/asm/kvmi_host.h:87: first defined here

vim +87 arch/x86/include/asm/kvmi_host.h

    67	
    68	static inline bool kvmi_monitor_bp_intercept(struct kvm_vcpu *vcpu, u32 dbg)
    69		{ return false; }
    70	static inline bool kvmi_cr_event(struct kvm_vcpu *vcpu, unsigned int cr,
    71					 unsigned long old_value,
    72					 unsigned long *new_value) { return true; }
    73	static inline bool kvmi_cr3_intercepted(struct kvm_vcpu *vcpu) { return false; }
    74	static inline bool kvmi_monitor_cr3w_intercept(struct kvm_vcpu *vcpu,
    75							bool enable) { return false; }
    76	static inline void kvmi_xsetbv_event(struct kvm_vcpu *vcpu) { }
    77	static inline bool kvmi_monitor_desc_intercept(struct kvm_vcpu *vcpu,
    78						       bool enable) { return false; }
    79	static inline bool kvmi_descriptor_event(struct kvm_vcpu *vcpu, u8 descriptor,
    80						 bool write) { return true; }
    81	static inline bool kvmi_msr_event(struct kvm_vcpu *vcpu, struct msr_data *msr)
    82					{ return true; }
    83	static inline bool kvmi_monitor_msrw_intercept(struct kvm_vcpu *vcpu, u32 msr,
    84						       bool enable) { return false; }
    85	static inline bool kvmi_msrw_intercept_originator(struct kvm_vcpu *vcpu)
    86					{ return false; }
  > 87	bool kvmi_update_ad_flags(struct kvm_vcpu *vcpu) { return false; }
    88	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux