lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1708947549.7906592-2-xuanzhuo@linux.alibaba.com>
Date: Mon, 26 Feb 2024 19:39:09 +0800
From: Xuan Zhuo <xuanzhuo@...ux.alibaba.com>
To: "Michael S. Tsirkin" <mst@...hat.com>
Cc: virtualization@...ts.linux.dev,
 Richard Weinberger <richard@....at>,
 Anton Ivanov <anton.ivanov@...bridgegreys.com>,
 Johannes Berg <johannes@...solutions.net>,
 Jason Wang <jasowang@...hat.com>,
 "David S. Miller" <davem@...emloft.net>,
 Eric Dumazet <edumazet@...gle.com>,
 Jakub Kicinski <kuba@...nel.org>,
 Paolo Abeni <pabeni@...hat.com>,
 Hans de Goede <hdegoede@...hat.com>,
 Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>,
 Vadim Pasternak <vadimp@...dia.com>,
 Bjorn Andersson <andersson@...nel.org>,
 Mathieu Poirier <mathieu.poirier@...aro.org>,
 Cornelia Huck <cohuck@...hat.com>,
 Halil Pasic <pasic@...ux.ibm.com>,
 Eric Farman <farman@...ux.ibm.com>,
 Heiko Carstens <hca@...ux.ibm.com>,
 Vasily Gorbik <gor@...ux.ibm.com>,
 Alexander Gordeev <agordeev@...ux.ibm.com>,
 Christian Borntraeger <borntraeger@...ux.ibm.com>,
 Sven Schnelle <svens@...ux.ibm.com>,
 Alexei Starovoitov <ast@...nel.org>,
 Daniel Borkmann <daniel@...earbox.net>,
 Jesper Dangaard Brouer <hawk@...nel.org>,
 John Fastabend <john.fastabend@...il.com>,
 linux-um@...ts.infradead.org,
 netdev@...r.kernel.org,
 platform-driver-x86@...r.kernel.org,
 linux-remoteproc@...r.kernel.org,
 linux-s390@...r.kernel.org,
 kvm@...r.kernel.org,
 bpf@...r.kernel.org,
 Christoph Hellwig <hch@....de>
Subject: Re: [PATCH vhost v2 19/19] virtio_net: sq support premapped mode

On Mon, 26 Feb 2024 06:36:53 -0500, "Michael S. Tsirkin" <mst@...hat.com> 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.


>
> --
> MST
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ