diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2013-03-12 10:20:24 +0100 |
---|---|---|
committer | Gleb Natapov <gleb@redhat.com> | 2013-03-12 12:25:56 +0100 |
commit | 57f252f22908535e04d520f3833a6e3116eb159d (patch) | |
tree | 144fe55ee05d9334c3bea99581763630914ea463 /arch/x86/kvm/svm.c | |
parent | VMX: x86: handle host TSC calibration failure (diff) | |
download | linux-57f252f22908535e04d520f3833a6e3116eb159d.tar.xz linux-57f252f22908535e04d520f3833a6e3116eb159d.zip |
KVM: x86: Drop unused return code from VCPU reset callback
Neither vmx nor svm nor the common part may generate an error on
kvm_vcpu_reset. So drop the return code.
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r-- | arch/x86/kvm/svm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index e1b1ce21bc00..907e4280116d 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -1191,7 +1191,7 @@ static void init_vmcb(struct vcpu_svm *svm) enable_gif(svm); } -static int svm_vcpu_reset(struct kvm_vcpu *vcpu) +static void svm_vcpu_reset(struct kvm_vcpu *vcpu) { struct vcpu_svm *svm = to_svm(vcpu); u32 dummy; @@ -1207,8 +1207,6 @@ static int svm_vcpu_reset(struct kvm_vcpu *vcpu) kvm_cpuid(vcpu, &eax, &dummy, &dummy, &dummy); kvm_register_write(vcpu, VCPU_REGS_RDX, eax); - - return 0; } static struct kvm_vcpu *svm_create_vcpu(struct kvm *kvm, unsigned int id) |