Skip to content

Commit

Permalink
s390: simplify kvm cpu init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
borntraeger authored and agraf committed Mar 8, 2013
1 parent 0bc472a commit 1c9d2a1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions target-s390x/kvm.c
Expand Up @@ -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)
Expand Down

0 comments on commit 1c9d2a1

Please sign in to comment.