summaryrefslogtreecommitdiffstats
path: root/arch/mips/kvm/mips.c
diff options
context:
space:
mode:
authorLuiz Capitulino2016-09-07 20:47:23 +0200
committerPaolo Bonzini2016-09-16 16:57:47 +0200
commit235539b48a2357da28f52d66d04bec04f3dcb9dd (patch)
treeb531cda00146261ebc19ff89edbb2e5753c0c5c1 /arch/mips/kvm/mips.c
parentkvm: kvm_destroy_vm_debugfs(): check debugfs_stat_data pointer (diff)
downloadkernel-qcow2-linux-235539b48a2357da28f52d66d04bec04f3dcb9dd.tar.gz
kernel-qcow2-linux-235539b48a2357da28f52d66d04bec04f3dcb9dd.tar.xz
kernel-qcow2-linux-235539b48a2357da28f52d66d04bec04f3dcb9dd.zip
kvm: add stubs for arch specific debugfs support
Two stubs are added: o kvm_arch_has_vcpu_debugfs(): must return true if the arch supports creating debugfs entries in the vcpu debugfs dir (which will be implemented by the next commit) o kvm_arch_create_vcpu_debugfs(): code that creates debugfs entries in the vcpu debugfs dir For x86, this commit introduces a new file to avoid growing arch/x86/kvm/x86.c even more. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/mips/kvm/mips.c')
-rw-r--r--arch/mips/kvm/mips.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/mips/kvm/mips.c b/arch/mips/kvm/mips.c
index a6ea084b4d9d..49b25e74d0c7 100644
--- a/arch/mips/kvm/mips.c
+++ b/arch/mips/kvm/mips.c
@@ -140,6 +140,16 @@ int kvm_arch_init_vm(struct kvm *kvm, unsigned long type)
return 0;
}
+bool kvm_arch_has_vcpu_debugfs(void)
+{
+ return false;
+}
+
+int kvm_arch_create_vcpu_debugfs(struct kvm_vcpu *vcpu)
+{
+ return 0;
+}
+
void kvm_mips_free_vcpus(struct kvm *kvm)
{
unsigned int i;