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.
>=20
> Look at this code:
>  =C2=A0 =C2=A0 ;; Attach interrupt handler.
>  =C2=A0 =C2=A0 (sup:debug-print-line "Handler: " (ahci-irq-handler ahci=
))
>  =C2=A0 =C2=A0 (sup:irq-attach (sup:platform-irq (pci:pci-intr-line loc=
ation))
>  =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
(ahci-irq-handler-function ahci)
>  =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
ahci)
>=20
> and this
>=20
> (defun pci-intr-line (device)
>  =C2=A0 (pci-config/8 device +pci-config-intr-line+)) ;; comment by me:=
 the=20
> constant is #x3c
>=20
> I found that "PCI 0x3c" means PCI interrupt pin. AFAIK, interrupt pins=20
> are not supported by bhyve, is that=C2=A0correct? If it's true, I need =
either=20
> to teach bhyve how to deal with legacy interrupts or to teach Mezzano t=
o=20
> understand MSI. What would be easier in your=C2=A0opinion?

  Legacy interrupts should work fine in bhyve for emulated devices. I'd=20
suspect this would be much easier to debug/enhance as opposed to adding=20
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>