From: Yuanhan Liu <yuanhan.liu@linux.intel.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Jason Wang <jasowang@redhat.com>,
dev@dpdk.org, huawei.xie@intel.com, vkaplans@redhat.com
Subject: Re: [PATCH V2 2/2] virtio: support IOMMU platform
Date: Tue, 11 Oct 2016 12:14:45 +0800 [thread overview]
Message-ID: <20161011041445.GK1597@yliu-dev.sh.intel.com> (raw)
In-Reply-To: <20161007042444.jbfoimmbuaxh2ped@redhat.com>
On Fri, Oct 07, 2016 at 07:24:44AM +0300, Michael S. Tsirkin wrote:
> On Wed, Sep 28, 2016 at 04:25:12PM +0800, Jason Wang wrote:
> > Negotiate VIRTIO_F_IOMMU_PLATFORM to have IOMMU support.
> >
> > Signed-off-by: Jason Wang <jasowang@redhat.com>
> > ---
> > Changes from v1:
> > - remove unnecessary NEED_MAPPING flag
>
> One thing we probably should do is enable this flag
> with VFIO but not with UIO or VFIO-noiommu.
Good suggestion. I think we could do that in another patch.
> > ---
> > drivers/net/virtio/virtio_ethdev.h | 3 ++-
> > drivers/net/virtio/virtio_pci.h | 3 ++-
> > 2 files changed, 4 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/net/virtio/virtio_ethdev.h b/drivers/net/virtio/virtio_ethdev.h
> > index 2ecec6e..04a06e2 100644
> > --- a/drivers/net/virtio/virtio_ethdev.h
> > +++ b/drivers/net/virtio/virtio_ethdev.h
> > @@ -63,7 +63,8 @@
> > 1u << VIRTIO_NET_F_CTRL_RX | \
> > 1u << VIRTIO_NET_F_CTRL_VLAN | \
> > 1u << VIRTIO_NET_F_MRG_RXBUF | \
> > - 1ULL << VIRTIO_F_VERSION_1)
> > + 1ULL << VIRTIO_F_VERSION_1 | \
> > + 1ULL << VIRTIO_F_IOMMU_PLATFORM )
>
> Space before ) looks kind of ugly.
Yes, a bit. I will remove it while apply.
> > #define VIRTIO_TRANSPORT_F_START 28
> > -#define VIRTIO_TRANSPORT_F_END 32
> > +#define VIRTIO_TRANSPORT_F_END 34
> >
>
> This seems unused. Drop it?
Indeed. I will submit a patch to remove both (_START and _END).
--yliu
next prev parent reply other threads:[~2016-10-11 4:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-28 8:25 [PATCH V2 1/2] net/virtio: support modern device id Jason Wang
2016-09-28 8:25 ` [PATCH V2 2/2] virtio: support IOMMU platform Jason Wang
2016-09-29 12:39 ` Maxime Coquelin
2016-10-07 4:24 ` Michael S. Tsirkin
2016-10-11 4:14 ` Yuanhan Liu [this message]
2016-10-20 4:07 ` Jason Wang
2016-10-20 2:29 ` Jason Wang
2016-09-29 12:38 ` [PATCH V2 1/2] net/virtio: support modern device id Maxime Coquelin
2016-10-11 4:14 ` Yuanhan Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161011041445.GK1597@yliu-dev.sh.intel.com \
--to=yuanhan.liu@linux.intel.com \
--cc=dev@dpdk.org \
--cc=huawei.xie@intel.com \
--cc=jasowang@redhat.com \
--cc=mst@redhat.com \
--cc=vkaplans@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.