
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 58353f394bfe86212d5089bc9c1c235ffc761e2c commit: 8d2e1e3b26a99872309a1c2afa3f0f35f1102137 [2130/2130] arm64/config: add config to control whether enable HDBSS feature config: arm64-randconfig-001-20250417 (https://download.01.org/0day-ci/archive/20250417/202504170921.RaPjZtnT-lkp@i...) compiler: aarch64-linux-gcc (GCC) 7.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250417/202504170921.RaPjZtnT-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/202504170921.RaPjZtnT-lkp@intel.com/ All warnings (new ones prefixed by >>): arch/arm64/kvm/mmu.c: In function 'kvm_handle_guest_abort':
arch/arm64/kvm/mmu.c:1665:21: warning: unused variable 'iss2' [-Wunused-variable] unsigned long hva, iss2; ^~~~ -- arch/arm64/kvm/reset.c: In function 'kvm_arm_vcpu_destroy': arch/arm64/kvm/reset.c:165:15: warning: unused variable 'hdbss_pg' [-Wunused-variable] struct page *hdbss_pg; ^~~~~~~~
vim +/iss2 +1665 arch/arm64/kvm/mmu.c aeda9130c38e2e arch/arm/kvm/mmu.c Marc Zyngier 2015-03-12 1648 94f8e6418d3915 arch/arm/kvm/mmu.c Christoffer Dall 2013-01-20 1649 /** 94f8e6418d3915 arch/arm/kvm/mmu.c Christoffer Dall 2013-01-20 1650 * kvm_handle_guest_abort - handles all 2nd stage aborts 94f8e6418d3915 arch/arm/kvm/mmu.c Christoffer Dall 2013-01-20 1651 * @vcpu: the VCPU pointer 94f8e6418d3915 arch/arm/kvm/mmu.c Christoffer Dall 2013-01-20 1652 * 94f8e6418d3915 arch/arm/kvm/mmu.c Christoffer Dall 2013-01-20 1653 * Any abort that gets to the host is almost guaranteed to be caused by a 94f8e6418d3915 arch/arm/kvm/mmu.c Christoffer Dall 2013-01-20 1654 * missing second stage translation table entry, which can mean that either the 94f8e6418d3915 arch/arm/kvm/mmu.c Christoffer Dall 2013-01-20 1655 * guest simply needs more memory and we must allocate an appropriate page or it 94f8e6418d3915 arch/arm/kvm/mmu.c Christoffer Dall 2013-01-20 1656 * can mean that the guest tried to access I/O memory, which is emulated by user 94f8e6418d3915 arch/arm/kvm/mmu.c Christoffer Dall 2013-01-20 1657 * space. The distinction is based on the IPA causing the fault and whether this 94f8e6418d3915 arch/arm/kvm/mmu.c Christoffer Dall 2013-01-20 1658 * memory region has been registered as standard RAM by user space. 94f8e6418d3915 arch/arm/kvm/mmu.c Christoffer Dall 2013-01-20 1659 */ 74cc7e0c35c1e4 arch/arm64/kvm/mmu.c Tianjia Zhang 2020-06-23 1660 int kvm_handle_guest_abort(struct kvm_vcpu *vcpu) 342cd0ab0e6ca3 arch/arm/kvm/mmu.c Christoffer Dall 2013-01-20 1661 { 94f8e6418d3915 arch/arm/kvm/mmu.c Christoffer Dall 2013-01-20 1662 unsigned long fault_status; 94f8e6418d3915 arch/arm/kvm/mmu.c Christoffer Dall 2013-01-20 1663 phys_addr_t fault_ipa; 94f8e6418d3915 arch/arm/kvm/mmu.c Christoffer Dall 2013-01-20 1664 struct kvm_memory_slot *memslot; 6d60015590c3f5 arch/arm64/kvm/mmu.c eillon 2025-04-02 @1665 unsigned long hva, iss2; 98047888bb9fd5 arch/arm/kvm/mmu.c Christoffer Dall 2014-08-19 1666 bool is_iabt, write_fault, writable; 94f8e6418d3915 arch/arm/kvm/mmu.c Christoffer Dall 2013-01-20 1667 gfn_t gfn; 94f8e6418d3915 arch/arm/kvm/mmu.c Christoffer Dall 2013-01-20 1668 int ret, idx; 94f8e6418d3915 arch/arm/kvm/mmu.c Christoffer Dall 2013-01-20 1669 621f48e40ee9b0 virt/kvm/arm/mmu.c Tyler Baicar 2017-06-21 1670 fault_status = kvm_vcpu_trap_get_fault_type(vcpu); 621f48e40ee9b0 virt/kvm/arm/mmu.c Tyler Baicar 2017-06-21 1671 621f48e40ee9b0 virt/kvm/arm/mmu.c Tyler Baicar 2017-06-21 1672 fault_ipa = kvm_vcpu_get_fault_ipa(vcpu); bb428921b777a5 virt/kvm/arm/mmu.c James Morse 2017-07-18 1673 is_iabt = kvm_vcpu_trap_is_iabt(vcpu); 621f48e40ee9b0 virt/kvm/arm/mmu.c Tyler Baicar 2017-06-21 1674 :::::: The code at line 1665 was first introduced by commit :::::: 6d60015590c3f56b0188b2409cfb3ad9e05ded00 arm64/kvm: support to handle the HDBSSF event :::::: TO: eillon <yezhenyu2@huawei.com> :::::: CC: Zhenyu Ye <yezhenyu2@huawei.com> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki