Patchwork [1/5] s390: simplify kvm cpu init

login
register
mail settings
Submitter Alexander Graf
Date March 8, 2013, 8:17 p.m.
Message ID <1362773873-4510-2-git-send-email-agraf@suse.de>
Download mbox | patch
Permalink /patch/226247/
State New
Headers show

Comments

Alexander Graf - March 8, 2013, 8:17 p.m.
From: Christian Borntraeger <borntraeger@de.ibm.com>

There is no special code right now and the reset ioctl is done later
on in the the reset handler anyway. Lets simplify the cpu init.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
---
 target-s390x/kvm.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

Patch

diff --git a/target-s390x/kvm.c b/target-s390x/kvm.c
index 3929771..8f111ae 100644
--- a/target-s390x/kvm.c
+++ b/target-s390x/kvm.c
@@ -103,13 +103,8 @@  unsigned long kvm_arch_vcpu_id(CPUState *cpu)
 
 int kvm_arch_init_vcpu(CPUState *cpu)
 {
-    int ret = 0;
-
-    if (kvm_vcpu_ioctl(cpu, KVM_S390_INITIAL_RESET, NULL) < 0) {
-        perror("cannot init reset vcpu");
-    }
-
-    return ret;
+    /* nothing todo yet */
+    return 0;
 }
 
 void kvm_arch_reset_vcpu(CPUState *cpu)