[S390] kvm: make sigp emerg smp capable
SIGP emerg needs to pass the source vpu adress into __LC_CPU_ADDRESS of the target guest. Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
cadfce7277
commit
8bb3a2ebcf
|
@ -174,6 +174,10 @@ struct kvm_s390_prefix_info {
|
||||||
__u32 address;
|
__u32 address;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct kvm_s390_emerg_info {
|
||||||
|
__u16 code;
|
||||||
|
};
|
||||||
|
|
||||||
struct kvm_s390_interrupt_info {
|
struct kvm_s390_interrupt_info {
|
||||||
struct list_head list;
|
struct list_head list;
|
||||||
u64 type;
|
u64 type;
|
||||||
|
@ -181,6 +185,7 @@ struct kvm_s390_interrupt_info {
|
||||||
struct kvm_s390_io_info io;
|
struct kvm_s390_io_info io;
|
||||||
struct kvm_s390_ext_info ext;
|
struct kvm_s390_ext_info ext;
|
||||||
struct kvm_s390_pgm_info pgm;
|
struct kvm_s390_pgm_info pgm;
|
||||||
|
struct kvm_s390_emerg_info emerg;
|
||||||
struct kvm_s390_prefix_info prefix;
|
struct kvm_s390_prefix_info prefix;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -128,6 +128,10 @@ static void __do_deliver_interrupt(struct kvm_vcpu *vcpu,
|
||||||
if (rc == -EFAULT)
|
if (rc == -EFAULT)
|
||||||
exception = 1;
|
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,
|
rc = copy_to_guest(vcpu, __LC_EXT_OLD_PSW,
|
||||||
&vcpu->arch.sie_block->gpsw, sizeof(psw_t));
|
&vcpu->arch.sie_block->gpsw, sizeof(psw_t));
|
||||||
if (rc == -EFAULT)
|
if (rc == -EFAULT)
|
||||||
|
|
Loading…
Reference in New Issue