Re: one question about MSI-X support for vPCI

2020-11-19 Thread Peter pan
Hi, Jan, The following is my debug log: On root cell, enable root cell: [ 267.783070] uio_ivshmem 0003:00:00.0: output_section at 0xfb70a000, size 0x2000 [ 267.792364] ivshmem-net 0003:00:01.0: enabling device ( -> 0002) [ 267.798798] ivshmem-net 0003:00:01.0: TX

Re: one question about MSI-X support for vPCI

2020-11-19 Thread Jan Kiszka
On 19.11.20 08:52, Peter pan wrote: > Hi, Jan, > > After some investigation, I found the root cause of the issue: the > carrier is not > changed to be on if we open virtual NIC in inmate firstly, attached > patch can > fix this issue, please help to review, by the way where I can upstream > this

Re: one question about MSI-X support for vPCI

2020-11-18 Thread Peter pan
Hi, Jan, After some investigation, I found the root cause of the issue: the carrier is not changed to be on if we open virtual NIC in inmate firstly, attached patch can fix this issue, please help to review, by the way where I can upstream this patch? Thanks. Best Regards, Jiafei.

Re: one question about MSI-X support for vPCI

2020-11-18 Thread Jan Kiszka
On 18.11.20 10:50, Peter pan wrote: > Hi, Jan, > > I have one new issue and not sure it is a know issue. > > The issue is: when I ifconfig up ivshmem-net NIC in root cell firstly > and then ifconfig up ivshmem NIC in inmate cell (runing Linux),  I can > ping through between two NICs, but if I

Re: one question about MSI-X support for vPCI

2020-11-18 Thread Peter pan
Hi, Jan, I have one new issue and not sure it is a know issue. The issue is: when I ifconfig up ivshmem-net NIC in root cell firstly and then ifconfig up ivshmem NIC in inmate cell (runing Linux), I can ping through between two NICs, but if I ifconfig up NIC in inmate cell before ifconfig up

Re: one question about MSI-X support for vPCI

2020-11-13 Thread Peter pan
Thanks Jan, now it works with INTx. Jiafei. 在2020年11月12日星期四 UTC+8 下午9:05:15 写道: > On 12.11.20 09:50, Peter pan wrote: > > Dear Jailhouse Community, > > > > I am runing Jailhouse on kernel v5.4, and port some ivshmem patches > > from http://git.kiszka.org/?p=linux.git;a=summary > >

Re: one question about MSI-X support for vPCI

2020-11-12 Thread Jan Kiszka
On 12.11.20 09:50, Peter pan wrote: > Dear Jailhouse Community, > > I am runing Jailhouse on kernel v5.4, and port some ivshmem patches > from http://git.kiszka.org/?p=linux.git;a=summary > > > The issue I have is uio_shmem and ivshmem-net will

one question about MSI-X support for vPCI

2020-11-12 Thread Peter pan
Dear Jailhouse Community, I am runing Jailhouse on kernel v5.4, and port some ivshmem patches from http://git.kiszka.org/?p=linux.git;a=summary The issue I have is uio_shmem and ivshmem-net will probe failed when I use MSI-X mode for vPCI after I run Jailhouse enable command. Please find the

Re: Question about MSI-X

2018-10-01 Thread Henning Schild
Am Mon, 1 Oct 2018 17:38:27 +0200 schrieb Claudio Scordino : > Hi Jan, > > Il 28/09/2018 14:11, Jan Kiszka ha scritto: > > On 28.09.18 12:07, Claudio Scordino wrote: > >> Dear all, > >> > >> I'm implementing a minimal inmate driver for i210 and I wonder if > >> I have understood correctly the

Re: Question about MSI-X

2018-10-01 Thread Jan Kiszka
On 01.10.18 17:38, Claudio Scordino wrote: Hi Jan, Il 28/09/2018 14:11, Jan Kiszka ha scritto: On 28.09.18 12:07, Claudio Scordino wrote: Dear all, I'm implementing a minimal inmate driver for i210 and I wonder if I have understood correctly the usage of the MSI-X functions. Once the

Re: Question about MSI-X

2018-10-01 Thread Claudio Scordino
Hi Jan, Il 28/09/2018 14:11, Jan Kiszka ha scritto: On 28.09.18 12:07, Claudio Scordino wrote: Dear all, I'm implementing a minimal inmate driver for i210 and I wonder if I have understood correctly the usage of the MSI-X functions. Once the correct MSI-X bar (BAR3, in my case) has been

Re: Question about MSI-X

2018-09-28 Thread Jan Kiszka
On 28.09.18 12:07, Claudio Scordino wrote: > Dear all, > > I'm implementing a minimal inmate driver for i210 and I wonder if I have > understood correctly the usage of the MSI-X functions. > > Once the correct MSI-X bar (BAR3, in my case) has been mapped, I need to > invoke > both: > >

Question about MSI-X

2018-09-28 Thread Claudio Scordino
Dear all, I'm implementing a minimal inmate driver for i210 and I wonder if I have understood correctly the usage of the MSI-X functions. Once the correct MSI-X bar (BAR3, in my case) has been mapped, I need to invoke both: int_set_handler(IRQ_VECTOR, irq_handler);