KVM: s390: a VCPU is already started when delivering interrupts
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Tue, 6 May 2014 14:33:42 +0000 (16:33 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 30 May 2014 07:39:39 +0000 (09:39 +0200)
This patch removes the start of a VCPU when delivering a RESTART interrupt.
Interrupt delivery is called from kvm_arch_vcpu_ioctl_run. So the VCPU is
already considered started - no need to call kvm_s390_vcpu_start. This function
will early exit anyway.

Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/interrupt.c

index bf0d9bc15bcdc77cbaa579edd58214f901189c72..90c8de22a2a0252187d9f176b3ad5f14c5fd8635 100644 (file)
@@ -442,7 +442,6 @@ static void __do_deliver_interrupt(struct kvm_vcpu *vcpu,
                rc |= read_guest_lc(vcpu, offsetof(struct _lowcore, restart_psw),
                                    &vcpu->arch.sie_block->gpsw,
                                    sizeof(psw_t));
-               kvm_s390_vcpu_start(vcpu);
                break;
        case KVM_S390_PROGRAM_INT:
                VCPU_EVENT(vcpu, 4, "interrupt: pgm check code:%x, ilc:%x",