CC: [email protected] CC: [email protected] TO: Sean Christopherson <[email protected]> CC: Paolo Bonzini <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f40ddce88593482919761f74910f42f4b84c004b commit: a4148b7ca2a5afe1295a41b5e30048cabcb74f8d KVM: VMX: Retrieve APIC access page HPA only when necessary date: 10 months ago :::::: branch date: 3 days ago :::::: commit date: 10 months ago config: i386-randconfig-m021-20210218 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> New smatch warnings: arch/x86/kvm/vmx/vmx.c:6157 vmx_set_apic_access_page_addr() warn: should '((page - mem_map) + (0)) << 12' be a 64 bit type? Old smatch warnings: arch/x86/kvm/vmx/vmx.c:4288 init_vmcs() warn: should '(((vmx->pml_pg) - mem_map) + (0)) << 12' be a 64 bit type? vim +6157 arch/x86/kvm/vmx/vmx.c bfd0a56b90005f arch/x86/kvm/vmx.c Nadav Har'El 2013-08-05 6142 a4148b7ca2a5af arch/x86/kvm/vmx/vmx.c Sean Christopherson 2020-03-20 6143 static void vmx_set_apic_access_page_addr(struct kvm_vcpu *vcpu) 3d5bdae8b16418 arch/x86/kvm/vmx.c Liran Alon 2018-10-08 6144 { a4148b7ca2a5af arch/x86/kvm/vmx/vmx.c Sean Christopherson 2020-03-20 6145 struct page *page; a4148b7ca2a5af arch/x86/kvm/vmx/vmx.c Sean Christopherson 2020-03-20 6146 1196cb970b996b arch/x86/kvm/vmx/vmx.c Sean Christopherson 2020-03-20 6147 /* Defer reload until vmcs01 is the current VMCS. */ 1196cb970b996b arch/x86/kvm/vmx/vmx.c Sean Christopherson 2020-03-20 6148 if (is_guest_mode(vcpu)) { 1196cb970b996b arch/x86/kvm/vmx/vmx.c Sean Christopherson 2020-03-20 6149 to_vmx(vcpu)->nested.reload_vmcs01_apic_access_page = true; 1196cb970b996b arch/x86/kvm/vmx/vmx.c Sean Christopherson 2020-03-20 6150 return; 1196cb970b996b arch/x86/kvm/vmx/vmx.c Sean Christopherson 2020-03-20 6151 } 1196cb970b996b arch/x86/kvm/vmx/vmx.c Sean Christopherson 2020-03-20 6152 a4148b7ca2a5af arch/x86/kvm/vmx/vmx.c Sean Christopherson 2020-03-20 6153 page = gfn_to_page(vcpu->kvm, APIC_DEFAULT_PHYS_BASE >> PAGE_SHIFT); a4148b7ca2a5af arch/x86/kvm/vmx/vmx.c Sean Christopherson 2020-03-20 6154 if (is_error_page(page)) a4148b7ca2a5af arch/x86/kvm/vmx/vmx.c Sean Christopherson 2020-03-20 6155 return; a4148b7ca2a5af arch/x86/kvm/vmx/vmx.c Sean Christopherson 2020-03-20 6156 a4148b7ca2a5af arch/x86/kvm/vmx/vmx.c Sean Christopherson 2020-03-20 @6157 vmcs_write64(APIC_ACCESS_ADDR, page_to_phys(page)); 33d19ec9b14c0e arch/x86/kvm/vmx/vmx.c Sean Christopherson 2020-03-20 6158 vmx_flush_tlb_current(vcpu); a4148b7ca2a5af arch/x86/kvm/vmx/vmx.c Sean Christopherson 2020-03-20 6159 a4148b7ca2a5af arch/x86/kvm/vmx/vmx.c Sean Christopherson 2020-03-20 6160 /* a4148b7ca2a5af arch/x86/kvm/vmx/vmx.c Sean Christopherson 2020-03-20 6161 * Do not pin apic access page in memory, the MMU notifier a4148b7ca2a5af arch/x86/kvm/vmx/vmx.c Sean Christopherson 2020-03-20 6162 * will call us again if it is migrated or swapped out. a4148b7ca2a5af arch/x86/kvm/vmx/vmx.c Sean Christopherson 2020-03-20 6163 */ a4148b7ca2a5af arch/x86/kvm/vmx/vmx.c Sean Christopherson 2020-03-20 6164 put_page(page); 55d2375e58a61b arch/x86/kvm/vmx/vmx.c Sean Christopherson 2018-12-03 6165 } bfd0a56b90005f arch/x86/kvm/vmx.c Nadav Har'El 2013-08-05 6166 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected]
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
