diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2008-04-04 09:12:35 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-04-27 05:00:58 -0400 |
commit | 7e8e6ab48d78147f69c1ba2d6a362f8d33254468 (patch) | |
tree | 760391ea70e033a7b2551663430da3f737e3db59 /arch/s390/kvm/kvm-s390.c | |
parent | bed1d1dfc4a458d82bcd258082638cbba860190d (diff) |
KVM: s390: Fix incorrect return value
kvm_arch_vcpu_ioctl_run currently incorrectly always returns 0.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'arch/s390/kvm/kvm-s390.c')
-rw-r--r-- | arch/s390/kvm/kvm-s390.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index d3b1de83678b..d96613765973 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c | |||
@@ -497,7 +497,7 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) | |||
497 | vcpu_put(vcpu); | 497 | vcpu_put(vcpu); |
498 | 498 | ||
499 | vcpu->stat.exit_userspace++; | 499 | vcpu->stat.exit_userspace++; |
500 | return 0; | 500 | return rc; |
501 | } | 501 | } |
502 | 502 | ||
503 | static int __guestcopy(struct kvm_vcpu *vcpu, u64 guestdest, const void *from, | 503 | static int __guestcopy(struct kvm_vcpu *vcpu, u64 guestdest, const void *from, |