• Alexey Kardashevskiy's avatar
    KVM: PPC: Merge powerpc's debugfs entry content into generic entry · faf01aef
    Alexey Kardashevskiy authored
    At the moment KVM on PPC creates 4 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);
    4) "kvm-xive-%p" (for XIVE PPC Book3s KVM, the same for XICS);
    
    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 ...
    faf01aef
book3s_64_mmu_radix.c 36.1 KB