Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Oct 2024 16:12:37 +1000
From:      Peter Grehan <grehan@freebsd.org>
To:        Vasily Postnicov <shamaz.mazum@gmail.com>
Cc:        freebsd-virtualization@freebsd.org
Subject:   Re: Running Mezzano in bhyve
Message-ID:  <e395fc30-0582-4d51-b1b3-cf5157bdd3a9@freebsd.org>
In-Reply-To: <CADnZ6BkHkNBD5LaEZCeSy7QnfquwB-Wv3sYu4S=P58ZyVGrDQQ@mail.gmail.com>
References:  <CADnZ6B=ex24mbGN3du6UuS84akJZAxTcG5xqt0HB0RN5S262cQ@mail.gmail.com> <17f4077d-647d-4848-9d6f-97f9886ef636@freebsd.org> <CADnZ6BkWd-v=y0L9%2BGiu=ys_Cuk5nm6djApSXYLufYuv=WnQWQ@mail.gmail.com> <CADnZ6B=LwZyiBTvXGek37e23t_e3ub4K%2BE96QaahukPbobkHhg@mail.gmail.com> <8b249b64-d041-4f12-b6cb-fdb528837f22@freebsd.org> <CADnZ6BkKh5V9_Y%2BTGrGpc=vTW2q81pdWJn8MUVvWNOiV35nBFw@mail.gmail.com> <CADnZ6BkHkNBD5LaEZCeSy7QnfquwB-Wv3sYu4S=P58ZyVGrDQQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

> I suspect PCI interrupts are not functioning correctly.
> 
> Look at this code:
>      ;; Attach interrupt handler.
>      (sup:debug-print-line "Handler: " (ahci-irq-handler ahci))
>      (sup:irq-attach (sup:platform-irq (pci:pci-intr-line location))
>                      (ahci-irq-handler-function ahci)
>                      ahci)
> 
> and this
> 
> (defun pci-intr-line (device)
>    (pci-config/8 device +pci-config-intr-line+)) ;; comment by me: the 
> constant is #x3c
> 
> I found that "PCI 0x3c" means PCI interrupt pin. AFAIK, interrupt pins 
> are not supported by bhyve, is that correct? If it's true, I need either 
> to teach bhyve how to deal with legacy interrupts or to teach Mezzano to 
> understand MSI. What would be easier in your opinion?

  Legacy interrupts should work fine in bhyve for emulated devices. I'd 
suspect this would be much easier to debug/enhance as opposed to adding 
MSI (and likely MSI-x).

later,

Peter.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e395fc30-0582-4d51-b1b3-cf5157bdd3a9>