diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2021-12-21 18:59:53 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-12-21 18:59:53 +0100 |
commit | 5e4e84f1124aa02643833b7ea40abd5a8e964388 (patch) | |
tree | e9fd709bc454be266c1935fa06652e01caf693d8 /arch/s390/kvm/interrupt.c | |
parent | Merge remote-tracking branch 'kvm/master' into HEAD (diff) | |
parent | KVM: s390: Clarify SIGP orders versus STOP/RESTART (diff) | |
download | linux-5e4e84f1124aa02643833b7ea40abd5a8e964388.tar.xz linux-5e4e84f1124aa02643833b7ea40abd5a8e964388.zip |
Merge tag 'kvm-s390-next-5.17-1' of git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux into HEAD
KVM: s390: Fix and cleanup
- fix sigp sense/start/stop/inconsistency
- cleanups
Diffstat (limited to 'arch/s390/kvm/interrupt.c')
-rw-r--r-- | arch/s390/kvm/interrupt.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/s390/kvm/interrupt.c b/arch/s390/kvm/interrupt.c index dbabd6f2404e..db933c252dbc 100644 --- a/arch/s390/kvm/interrupt.c +++ b/arch/s390/kvm/interrupt.c @@ -2116,6 +2116,13 @@ int kvm_s390_is_stop_irq_pending(struct kvm_vcpu *vcpu) return test_bit(IRQ_PEND_SIGP_STOP, &li->pending_irqs); } +int kvm_s390_is_restart_irq_pending(struct kvm_vcpu *vcpu) +{ + struct kvm_s390_local_interrupt *li = &vcpu->arch.local_int; + + return test_bit(IRQ_PEND_RESTART, &li->pending_irqs); +} + void kvm_s390_clear_stop_irq(struct kvm_vcpu *vcpu) { struct kvm_s390_local_interrupt *li = &vcpu->arch.local_int; |