From: Laurent Vivier <lvivier@redhat.com>
To: Jason Wang <jasowang@redhat.com>, qemu-devel@nongnu.org
Cc: lulu@redhat.com, mst@redhat.com
Subject: Re: [PATCH 1/9] vhost-vdpa: remove the default devname
Date: Wed, 9 Sep 2020 10:40:42 +0200 [thread overview]
Message-ID: <d2c1b263-7cc0-1ebc-38fe-198c44951bb5@redhat.com> (raw)
In-Reply-To: <20200831082737.10983-2-jasowang@redhat.com>
On 31/08/2020 10:27, Jason Wang wrote:
> The code doesn't have a default vhostdev, so remove the default
> description in net.json.
>
> Signed-off-by: Jason Wang <jasowang@redhat.com>
> ---
> qapi/net.json | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/qapi/net.json b/qapi/net.json
> index ddb113e5e5..a2a94fad3e 100644
> --- a/qapi/net.json
> +++ b/qapi/net.json
> @@ -438,7 +438,6 @@
> # specifications with a vendor specific control path.
> #
> # @vhostdev: path of vhost-vdpa device
> -# (default:'/dev/vhost-vdpa-0')
> #
> # @queues: number of queues to be created for multiqueue vhost-vdpa
> # (default: 1)
>
If you remove the default, you must also set the parameter as not
optional (remove the star in front of its declaration):
diff --git a/qapi/net.json b/qapi/net.json
index ddb113e5e5a8..012830ca1a27 100644
--- a/qapi/net.json
+++ b/qapi/net.json
@@ -447,7 +447,7 @@
##
{ 'struct': 'NetdevVhostVDPAOptions',
'data': {
- '*vhostdev': 'str',
+ 'vhostdev': 'str',
'*queues': 'int' } }
##
And then you'll have:
$ ./qemu-system-x86_64 -netdev vhost-vdpa,id=hostnet1
qemu-system-x86_64: Parameter 'vhostdev' is missing
And PATCH 2 becomes useless.
Thanks,
Laurent
next prev parent reply other threads:[~2020-09-09 8:43 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-31 8:27 [PATCH 0/9] refine vhost-vdpa initialization Jason Wang
2020-08-31 8:27 ` [PATCH 1/9] vhost-vdpa: remove the default devname Jason Wang
2020-09-09 8:40 ` Laurent Vivier [this message]
2020-08-31 8:27 ` [PATCH 2/9] vhost-vdpa: mandate vhostdev Jason Wang
2020-09-09 8:42 ` Laurent Vivier
2020-08-31 8:27 ` [PATCH 3/9] vhost-vdpa: remove the unnecessary assert(s->vhost_net) Jason Wang
2020-08-31 8:27 ` [PATCH 4/9] vhost-vdpa: refine info string Jason Wang
2020-09-16 15:52 ` Laurent Vivier
2020-08-31 8:27 ` [PATCH 5/9] vhost-vdpa: remove the unnecessary initialization Jason Wang
2020-09-16 15:53 ` Laurent Vivier
2020-08-31 8:27 ` [PATCH 6/9] vhost-vdpa: remove the unnecessary queue index assignment Jason Wang
2020-09-16 15:54 ` Laurent Vivier
2020-08-31 8:27 ` [PATCH 7/9] vhost-vdpa: squash net_vhost_vdpa_init() into net_init_vhost_vdpa() Jason Wang
2020-09-16 15:58 ` Laurent Vivier
2020-08-31 8:27 ` [PATCH 8/9] vhost-vdpa: add accurate error string when fail to open vhost vDPA device Jason Wang
2020-09-16 16:09 ` Laurent Vivier
2020-08-31 8:27 ` [PATCH 9/9] vhost-vdpa: allow pre-opend file descriptor Jason Wang
2020-08-31 11:16 ` Cindy Lu
2020-09-01 6:53 ` Jason Wang
2020-09-16 16:04 ` Eric Blake
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=d2c1b263-7cc0-1ebc-38fe-198c44951bb5@redhat.com \
--to=lvivier@redhat.com \
--cc=jasowang@redhat.com \
--cc=lulu@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).