HI David, It works> Thanks a lot for your very quick response.
> -----Original Message----- > From: David Marchand <[email protected]> > Sent: Thursday, March 9, 2023 10:44 PM > To: Pei, Andy <[email protected]> > Cc: [email protected]; Burakov, Anatoly <[email protected]>; David > Christensen <[email protected]>; Volodymyr Fialko > <[email protected]>; Maxime Coquelin <[email protected]>; > Xia, Chenbo <[email protected]> > Subject: Re: enable ASAN issue when run on a Virtio PCI device > > On Thu, Mar 9, 2023 at 2:44 PM David Marchand > <[email protected]> wrote: > > On Thu, Mar 9, 2023 at 2:05 PM Pei, Andy <[email protected]> wrote: > > > I am running testpmd on a virtio PCI device, and encounter this issue > when enable ASAN. > > > > > > I got this ERROR, > > > > > > check_vq_phys_addr_ok(): vring address shouldn't be above 16TB! > > > virtio_init_queue(): setup_queue failed > > > eth_virtio_pci_init(): Failed to init virtio device > > > EAL: Releasing PCI mapped resource for 0000:18:00.0 > > > EAL: Calling pci_unmap_resource for 0000:18:00.0 at 0x7fc9c0000000 > > > EAL: Calling pci_unmap_resource for 0000:18:00.0 at 0x7fc197a75000 > > > EAL: Requested device 0000:18:00.0 cannot be used > > > EAL: Bus (pci) probe failed. > > > TELEMETRY: No legacy callbacks, legacy socket not created > > > testpmd: No probed ethernet devices > > > > > > > > > How to fix this issue when ASAN is enabled, huge pages are all mapped to > very high address, adding “--base-virtaddr” args does not works. > > > > I am not able to reproduce your issue. > > You'll have to share more details about your setup. > > Actually, relooking at the code, I think we can do something on virtio side, > for > modern devices and Maxime seemed to agree. > > Can you have a try with: > https://patchwork.dpdk.org/project/dpdk/patch/20230309143604.2354288- > [email protected]/ > > > Thanks. > > -- > David Marchand
