diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2016-09-07 14:47:23 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-09-16 10:57:47 -0400 |
commit | 235539b48a2357da28f52d66d04bec04f3dcb9dd (patch) | |
tree | b531cda00146261ebc19ff89edbb2e5753c0c5c1 /arch/arm/kvm/arm.c | |
parent | 9d5a1dcebfbe0e421412fcf5ab86d30e2e65bab4 (diff) |
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/arm/kvm/arm.c')
-rw-r--r-- | arch/arm/kvm/arm.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c index 75f130ef6504..c638935baad6 100644 --- a/arch/arm/kvm/arm.c +++ b/arch/arm/kvm/arm.c | |||
@@ -144,6 +144,16 @@ out_fail_alloc: | |||
144 | return ret; | 144 | return ret; |
145 | } | 145 | } |
146 | 146 | ||
147 | bool kvm_arch_has_vcpu_debugfs(void) | ||
148 | { | ||
149 | return false; | ||
150 | } | ||
151 | |||
152 | int kvm_arch_create_vcpu_debugfs(struct kvm_vcpu *vcpu) | ||
153 | { | ||
154 | return 0; | ||
155 | } | ||
156 | |||
147 | int kvm_arch_vcpu_fault(struct kvm_vcpu *vcpu, struct vm_fault *vmf) | 157 | int kvm_arch_vcpu_fault(struct kvm_vcpu *vcpu, struct vm_fault *vmf) |
148 | { | 158 | { |
149 | return VM_FAULT_SIGBUS; | 159 | return VM_FAULT_SIGBUS; |