Re: [PATCH vhost v2 19/19] virtio_net: sq support premapped mode

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

 



On Mon, 26 Feb 2024 06:57:17 -0500, "Michael S. Tsirkin" <mst@xxxxxxxxxx> wrote:
> On Mon, Feb 26, 2024 at 07:39:09PM +0800, Xuan Zhuo wrote:
> > On Mon, 26 Feb 2024 06:36:53 -0500, "Michael S. Tsirkin" <mst@xxxxxxxxxx> wrote:
> > > On Mon, Feb 26, 2024 at 07:33:29PM +0800, Xuan Zhuo wrote:
> > > > > what is dma_map_direct? can't find it in the tree.
> > > >
> > > > YES.
> > > >
> > > >
> > > > diff --git a/kernel/dma/mapping.c b/kernel/dma/mapping.c
> > > > index 58db8fd70471..5a8f7a927aa1 100644
> > > > --- a/kernel/dma/mapping.c
> > > > +++ b/kernel/dma/mapping.c
> > > > @@ -144,6 +144,18 @@ static inline bool dma_map_direct(struct device *dev,
> > > >         return dma_go_direct(dev, *dev->dma_mask, ops);
> > > >  }
> > > >
> > > > +bool dma_is_direct(struct device *dev)
> > > > +{
> > > > +       if (!dma_map_direct(dev, ops))
> > > > +               return false;
> > > > +
> > > > +       if (is_swiotlb_force_bounce(dev))
> > > > +               return false;
> > > > +
> > > > +       return true;
> > > > +}
> > > > +EXPORT_SYMBOL(dma_unmap_page_attrs);
> > > > +
> > > >
> > > > Thanks.
> > >
> > >
> > > where is it? linux-next?
> >
> >
> > I see it in the vhost branch kernel/dma/mapping.c.
> >
> > Maybe you miss it.
> >
> > Thanks.
> >
>
> which hash?

fd0b29af02bb75acc94eb08c06e2c10cbce2ea67

>
> > >
> > > --
> > > MST
> > >
>




[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