Revision d5900813

b/target-s390x/kvm.c
344 344

  
345 345
static int s390_cpu_initial_reset(CPUState *env)
346 346
{
347
    /* XXX */
348
    fprintf(stderr, "XXX SIGP init\n");
349
    return -1;
347
    int i;
348

  
349
    if (kvm_vcpu_ioctl(env, KVM_S390_INITIAL_RESET, NULL) < 0) {
350
        perror("cannot init reset vcpu");
351
    }
352

  
353
    /* Manually zero out all registers */
354
    cpu_synchronize_state(env);
355
    for (i = 0; i < 16; i++) {
356
        env->regs[i] = 0;
357
    }
358

  
359
    dprintf("DONE: SIGP initial reset: %p\n", env);
360
    return 0;
350 361
}
351 362

  
352 363
static int handle_sigp(CPUState *env, struct kvm_run *run, uint8_t ipa1)

Also available in: Unified diff