]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/s390/kvm/interrupt.c
[S390] kvm: make sigp emerg smp capable
[karo-tx-linux.git] / arch / s390 / kvm / interrupt.c
index 35c21bf910c55bff4e1ee45ee968eb69726dd182..c9aeb4b4d0b84e67c9cc5ae1bf6648d31ea7c6dd 100644 (file)
@@ -128,6 +128,10 @@ static void __do_deliver_interrupt(struct kvm_vcpu *vcpu,
                if (rc == -EFAULT)
                        exception = 1;
 
+               rc = put_guest_u16(vcpu, __LC_CPU_ADDRESS, inti->emerg.code);
+               if (rc == -EFAULT)
+                       exception = 1;
+
                rc = copy_to_guest(vcpu, __LC_EXT_OLD_PSW,
                         &vcpu->arch.sie_block->gpsw, sizeof(psw_t));
                if (rc == -EFAULT)