# git rev-parse -q --verify b5c7c8b2277eb71b42bb890c1378460bdacd4d8b^{commit} b5c7c8b2277eb71b42bb890c1378460bdacd4d8b already have revision, skipping fetch # git checkout -q -f -B kisskb b5c7c8b2277eb71b42bb890c1378460bdacd4d8b # git clean -qxdf # < git log -1 # commit b5c7c8b2277eb71b42bb890c1378460bdacd4d8b # Author: Alexey Kardashevskiy # Date: Fri Sep 3 15:15:25 2021 +1000 # # KVM: PPC: Merge powerpc's debugfs entry content into generic entry # # At the moment KVM on PPC creates 3 types of entries under the kvm debugfs: # 1) "%pid-%fd" per a KVM instance (for all platforms); # 2) "vm%pid" (for PPC Book3s HV KVM); # 3) "vm%u_vcpu%u_timing" (for PPC Book3e KVM). # # The problem with this is that multiple VMs per process is not allowed for # 2) and 3) which makes it possible for userspace to trigger errors when # creating duplicated debugfs entries. # # This merges all these into 1). # # This defines kvm_arch_create_kvm_debugfs() similar to # kvm_arch_create_vcpu_debugfs(). # # This defines 2 hooks in kvmppc_ops that allow specific KVM implementations # add necessary entries, this adds the _e500 suffix to # kvmppc_create_vcpu_debugfs_e500() to make it clear what platform it is for. # # This makes use of already existing kvm_arch_create_vcpu_debugfs() on PPC. # # This removes no more used debugfs_dir pointers from PPC kvm_arch structs. # # This stops removing vcpu entries as once created vcpus stay around # for the entire life of a VM and removed when the KVM instance is closed, # see d56f5136b010 ("KVM: let kvm_destroy_vm_debugfs clean up vCPU # debugfs directories". # # Suggested-by: Fabiano Rosas # Signed-off-by: Alexey Kardashevskiy # --- # Changes: # v3: # * reworked commit log, especially, the bit about removing vcpus # # v2: # * handled powerpc-booke # * s/kvm/vm/ in arch hooks # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-ld --version # < git log --format=%s --max-count=1 b5c7c8b2277eb71b42bb890c1378460bdacd4d8b # < make -s -j 10 ARCH=x86 O=/kisskb/build/aik_x86-allmodconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux- allmodconfig # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # Added to kconfig CONFIG_SAMPLES=n # < make -s -j 10 ARCH=x86 O=/kisskb/build/aik_x86-allmodconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux- help # make -s -j 10 ARCH=x86 O=/kisskb/build/aik_x86-allmodconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux- olddefconfig # make -s -j 10 ARCH=x86 O=/kisskb/build/aik_x86-allmodconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux- /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-objdump: mm/kfence/kfence_test.o: unable to initialize decompress status for section .debug_info /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-objdump: mm/kfence/kfence_test.o: unable to initialize decompress status for section .debug_info /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-objdump: mm/kfence/kfence_test.o: File format not recognized vmlinux.o: warning: objtool: __do_fast_syscall_32()+0xa: call to stackleak_track_stack() leaves .noinstr.text section vmlinux.o: warning: objtool: do_syscall_64()+0x8: call to stackleak_track_stack() leaves .noinstr.text section vmlinux.o: warning: objtool: do_int80_syscall_32()+0x8: call to stackleak_track_stack() leaves .noinstr.text section vmlinux.o: warning: objtool: exc_general_protection()+0x24: call to stackleak_track_stack() leaves .noinstr.text section vmlinux.o: warning: objtool: fixup_bad_iret()+0x21: call to stackleak_track_stack() leaves .noinstr.text section vmlinux.o: warning: objtool: pv_ops[22]: xen_cpuid vmlinux.o: warning: objtool: pv_ops[22]: native_cpuid vmlinux.o: warning: objtool: mce_setup()+0xcb: call to pv_ops[22]() leaves .noinstr.text section vmlinux.o: warning: objtool: do_machine_check()+0x28: call to stackleak_track_stack() leaves .noinstr.text section vmlinux.o: warning: objtool: .entry.text+0x10e6: call to stackleak_erase() leaves .noinstr.text section vmlinux.o: warning: objtool: .entry.text+0x143: call to stackleak_erase() leaves .noinstr.text section vmlinux.o: warning: objtool: .entry.text+0x17d9: call to stackleak_erase() leaves .noinstr.text section /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-ld: mm/kfence/kfence_test.o: unable to initialize decompress status for section .debug_info /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-ld: mm/kfence/kfence_test.o: unable to initialize decompress status for section .debug_info /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-ld: mm/kfence/kfence_test.o: unable to initialize decompress status for section .debug_info /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-ld: mm/kfence/kfence_test.o: unable to initialize decompress status for section .debug_info mm/kfence/kfence_test.o: file not recognized: File format not recognized make[3]: *** [/kisskb/src/scripts/Makefile.modfinal:60: mm/kfence/kfence_test.ko] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/kisskb/src/scripts/Makefile.modpost:140: __modpost] Error 2 make[1]: *** [/kisskb/src/Makefile:1761: modules] Error 2 make: *** [Makefile:219: __sub-make] Error 2 Command 'make -s -j 10 ARCH=x86 O=/kisskb/build/aik_x86-allmodconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/aik_x86-allmodconfig_x86_64-gcc8 # Build took: 1:10:00.032564