Re: [PATCH 09/10] KVM: s390: add and wire function gib_alert_irq_handler()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 31.10.18 13:10, Pierre Morel wrote:
  void kvm_s390_gib_destroy(void)
  {
      if (!gib)
          return;

I think we should clear the alert list
before unregistering the interruption.

That is the host shutdown case

What do you mean exactly with "clear the alert list" ?



+    unregister_adapter_interrupt(&gib_alert_irq);

We also should unregister the adapter interrupt only after having
unregister the GIB.


so you suggest:

  chsc_sgib(0)
  unregister_adapter_interrupt()

makes sense.



      chsc_sgib(0);
      free_page((unsigned long)gib);
      gib = NULL;
@@ -3034,6 +3057,14 @@ void kvm_s390_gib_init(u8 nisc)
          return;
      }
+    gib_alert_irq.isc = nisc;
+    rc = register_adapter_interrupt(&gib_alert_irq);
+    if (rc) {
+        KVM_EVENT(3, "gib 0x%pK GAI registration failed rc: %d",
+              gib, rc);
+        goto out_free;
+    }




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux