s390: simplify kvm cpu init
authorChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 4 Feb 2013 22:53:25 +0000 (22:53 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 8 Mar 2013 20:17:46 +0000 (21:17 +0100)
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

index 39297711826f22f6781f8d0992ad42f0ee04a5b2..8f111ae732df81b50362ec5429f0c2e30016c432 100644 (file)
@@ -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)