Skip to content

Commit 45e3b47

Browse files
committed
Merge tag 'kvm-s390-master-4.16-3' of git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux
KVM: s390: Fixes - Fix random memory corruption when running as guest2 (e.g. KVM in LPAR) and starting guest3 (nested KVM) with many CPUs (e.g. a nested guest with 200 vcpu) - io interrupt delivery counter was not exported
2 parents db56793 + f07afa0 commit 45e3b47

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/s390/kvm/kvm-s390.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ struct kvm_stats_debugfs_item debugfs_entries[] = {
8686
{ "deliver_prefix_signal", VCPU_STAT(deliver_prefix_signal) },
8787
{ "deliver_restart_signal", VCPU_STAT(deliver_restart_signal) },
8888
{ "deliver_program_interruption", VCPU_STAT(deliver_program_int) },
89+
{ "deliver_io_interrupt", VCPU_STAT(deliver_io_int) },
8990
{ "exit_wait_state", VCPU_STAT(exit_wait_state) },
9091
{ "instruction_epsw", VCPU_STAT(instruction_epsw) },
9192
{ "instruction_gs", VCPU_STAT(instruction_gs) },
@@ -2146,6 +2147,7 @@ static void sca_add_vcpu(struct kvm_vcpu *vcpu)
21462147
/* we still need the basic sca for the ipte control */
21472148
vcpu->arch.sie_block->scaoh = (__u32)(((__u64)sca) >> 32);
21482149
vcpu->arch.sie_block->scaol = (__u32)(__u64)sca;
2150+
return;
21492151
}
21502152
read_lock(&vcpu->kvm->arch.sca_lock);
21512153
if (vcpu->kvm->arch.use_esca) {

0 commit comments

Comments
 (0)