diff options
| author | Michael Mueller <[email protected]> | 2017-06-23 12:46:21 +0000 |
|---|---|---|
| committer | Christian Borntraeger <[email protected]> | 2018-01-26 13:13:57 +0000 |
| commit | f180bfdae024b34e71e89dcc82b037dd97f74c3a (patch) | |
| tree | 68aa4e01cd7fda9769e06556f9ce44ebfe6edd3f | |
| parent | KVM: s390: make kvm_s390_get_io_int() aware of GISA (diff) | |
| download | kernel-f180bfdae024b34e71e89dcc82b037dd97f74c3a.tar.gz kernel-f180bfdae024b34e71e89dcc82b037dd97f74c3a.zip | |
KVM: s390: activate GISA for emulated interrupts
If the AIV facility is available, a GISA will be used to manage emulated
adapter interrupts.
Signed-off-by: Michael Mueller <[email protected]>
Reviewed-by: Halil Pasic <[email protected]>
Reviewed-by: Christian Borntraeger <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Reviewed-by: Cornelia Huck <[email protected]>
Signed-off-by: Christian Borntraeger <[email protected]>
| -rw-r--r-- | arch/s390/kvm/interrupt.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/s390/kvm/interrupt.c b/arch/s390/kvm/interrupt.c index f2dc86884ea4..488ecc7ea2a1 100644 --- a/arch/s390/kvm/interrupt.c +++ b/arch/s390/kvm/interrupt.c @@ -2842,7 +2842,13 @@ void kvm_s390_gisa_clear(struct kvm *kvm) void kvm_s390_gisa_init(struct kvm *kvm) { - /* not implemented yet */ + if (!css_general_characteristics.aiv) + kvm->arch.gisa = NULL; + else { + kvm->arch.gisa = &kvm->arch.sie_page2->gisa; + VM_EVENT(kvm, 3, "gisa 0x%pK initialized", kvm->arch.gisa); + kvm_s390_gisa_clear(kvm); + } } void kvm_s390_gisa_destroy(struct kvm *kvm) |
