[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] net: Add persistent flag to -net tap option
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH] net: Add persistent flag to -net tap option |
Date: |
Fri, 19 Dec 2014 08:29:13 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 |
On 12/15/2014 05:05 AM, Roy Vardi wrote:
> From: Roy Vardi <address@hidden>
>
> Add 'persistent' boolean flag to -net tap option.
> When set to off - tap interface will be released on shutdown
> When set to on\not specified - tap interface will remain
>
> Running with -net tap,persistent=off will force the tap interface
> down when qemu goes down, thus ensuring that there're no zombie tap
> interfaces left
>
> This is achieved using another ioctl
>
> Note: This commit includes the above support only for linux systems
>
> Signed-off-by: Roy Vardi <address@hidden>
> ---
> +++ b/qapi-schema.json
> @@ -2007,6 +2007,8 @@
> #
> # @queues: #optional number of queues to be created for multiqueue capable
> tap
> #
> +# @persistent: #optional for opening tap in persistent mode
Missing a '(since 2.3)' designator; also might be worth mentioning that
the default is true if omitted.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org