Patchwork net: Add the missing option declaration of "vhostforce"

login
register
mail settings
Submitter Jason Wang
Date Feb. 25, 2011, 8:11 a.m.
Message ID <20110225081126.6224.57164.stgit@dhcp-91-7.nay.redhat.com.englab.nay.redhat.com>
Download mbox | patch
Permalink /patch/84518/
State New
Headers show

Comments

Jason Wang - Feb. 25, 2011, 8:11 a.m.
Signed-off-by: Jason Wang <jasowang@redhat.com>
---
 net.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
Michael S. Tsirkin - Feb. 25, 2011, 8:30 a.m.
On Fri, Feb 25, 2011 at 04:11:27PM +0800, Jason Wang wrote:
> Signed-off-by: Jason Wang <jasowang@redhat.com>


Acked-by: Michael S. Tsirkin <mst@redhat.com>

> ---
>  net.c |    6 +++++-
>  1 files changed, 5 insertions(+), 1 deletions(-)
> 
> diff --git a/net.c b/net.c
> index 9ba5be2..21d4443 100644
> --- a/net.c
> +++ b/net.c
> @@ -1025,7 +1025,11 @@ static const struct {
>                  .name = "vhostfd",
>                  .type = QEMU_OPT_STRING,
>                  .help = "file descriptor of an already opened vhost net device",
> -            },
> +            }, {
> +                .name = "vhostforce",
> +                .type = QEMU_OPT_BOOL,
> +                .help = "force vhost on for non-MSIX virtio guests",
> +        },
>  #endif /* _WIN32 */
>              { /* end of list */ }
>          },
Aurelien Jarno - March 6, 2011, 7:17 p.m.
On Fri, Feb 25, 2011 at 04:11:27PM +0800, Jason Wang wrote:
> Signed-off-by: Jason Wang <jasowang@redhat.com>
> ---
>  net.c |    6 +++++-
>  1 files changed, 5 insertions(+), 1 deletions(-)
> 
> diff --git a/net.c b/net.c
> index 9ba5be2..21d4443 100644
> --- a/net.c
> +++ b/net.c
> @@ -1025,7 +1025,11 @@ static const struct {
>                  .name = "vhostfd",
>                  .type = QEMU_OPT_STRING,
>                  .help = "file descriptor of an already opened vhost net device",
> -            },
> +            }, {
> +                .name = "vhostforce",
> +                .type = QEMU_OPT_BOOL,
> +                .help = "force vhost on for non-MSIX virtio guests",
> +        },
>  #endif /* _WIN32 */
>              { /* end of list */ }
>          },
> 

Thanks, applied to HEAD and stable-0.14

Patch

diff --git a/net.c b/net.c
index 9ba5be2..21d4443 100644
--- a/net.c
+++ b/net.c
@@ -1025,7 +1025,11 @@  static const struct {
                 .name = "vhostfd",
                 .type = QEMU_OPT_STRING,
                 .help = "file descriptor of an already opened vhost net device",
-            },
+            }, {
+                .name = "vhostforce",
+                .type = QEMU_OPT_BOOL,
+                .help = "force vhost on for non-MSIX virtio guests",
+        },
 #endif /* _WIN32 */
             { /* end of list */ }
         },