All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: Jason Wang <jasowang@redhat.com>
Cc: "Ben Chaney" <bchaney@akamai.com>,
	qemu-devel@nongnu.org, "Peter Xu" <peterx@redhat.com>,
	"Fabiano Rosas" <farosas@suse.de>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"Stefano Garzarella" <sgarzare@redhat.com>,
	"Alex Williamson" <alex@shazbot.org>,
	"Cédric Le Goater" <clg@redhat.com>,
	"Eric Blake" <eblake@redhat.com>, "Stefan Weil" <sw@weilnetz.de>,
	"Daniel P. Berrangé" <berrange@redhat.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Hamza Khan" <hamza.khan@nutanix.com>,
	"Mark Kanda" <mark.kanda@oracle.com>,
	"Joshua Hunt" <johunt@akamai.com>,
	"Max Tottenham" <mtottenh@akamai.com>,
	"Steve Sistare" <steven.sistare@oracle.com>
Subject: Re: [PATCH v3 6/8] tap: cpr support
Date: Fri, 05 Dec 2025 07:46:44 +0100	[thread overview]
Message-ID: <877bv11l4b.fsf@pond.sub.org> (raw)
In-Reply-To: <CACGkMEs0cNNYewaEnMVVWr8ng4kRJGotqwk5O1z1fs4BTnzPhQ@mail.gmail.com> (Jason Wang's message of "Fri, 5 Dec 2025 08:51:43 +0800")

Jason Wang <jasowang@redhat.com> writes:

> Hi Markus,
>
> On Thu, Dec 4, 2025 at 4:09 PM Markus Armbruster <armbru@redhat.com> wrote:
>>
>> Ben Chaney <bchaney@akamai.com> writes:
>>
>> > From: Steve Sistare <steven.sistare@oracle.com>
>> >
>> > Provide the cpr=on option to preserve TAP and vhost descriptors during
>> > cpr-transfer, so the management layer does not need to create a new
>> > device for the target.
>> >
>> > Save all tap fd's in canonical order, leveraging the index argument of
>> > cpr_save_fd.  For the i'th queue, the tap device fd is saved at index 2*i,
>> > and the vhostfd (if any) at index 2*i+1.
>> >
>> > tap and vhost fd's are passed by name to the monitor when a NIC is hot
>> > plugged, but the name is not known to qemu after cpr.  Allow the manager
>> > to pass -1 for the fd "name" in the new qemu args to indicate that QEMU
>> > should search for a saved value.  Example:
>> >
>> >   -netdev tap,id=hostnet2,fds=-1:-1,vhostfds=-1:-1,cpr=on
>>
>> Hmm.  See below.
>>
>> >
>> > Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
>> > Signed-off-by: Ben Chaney <bchaney@akamai.com>
>>
>> [...]
>>
>> > diff --git a/qapi/net.json b/qapi/net.json
>> > index 118bd34965..264213b5d9 100644
>> > --- a/qapi/net.json
>> > +++ b/qapi/net.json
>> > @@ -355,6 +355,8 @@
>>    ##
>>    # @NetdevTapOptions:
>>    #
>>    # Used to configure a host TAP network interface backend.
>>    #
>>    # @ifname: interface name
>>    #
>>    # @fd: file descriptor of an already opened tap
>>    #
>>    # @fds: multiple file descriptors of already opened multiqueue capable
>>    #     tap
>>
>> Not this patch's fault: the interface is misguided, and its
>> documentation inadequate.
>>
>> @fds is a string of file descriptor names or numbers separated by ':'.
>> Not documented.  I found out by reading the code.
>>
>> This violates QAPI design principle "no string parsing".  It should be
>> an array of strings.
>>
>
> I agree with your concern. Just a note that this "fds" was introduced
> before QAPI if I am not wrong.

It's from 2013 (commit 264986e2c8f).  QAPI was still young then
(netdev_add had been QAPIfied less than a year ago), we had much to
learn, and interface review barely happened.  All understandable, and no
reason to throw shade on anyone involved :)



  reply	other threads:[~2025-12-05  6:47 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-03 18:51 [PATCH v3 0/8] Live update: tap and vhost Ben Chaney
2025-12-03 18:51 ` [PATCH v3 1/8] migration: stop vm earlier for cpr Ben Chaney
2025-12-03 18:51 ` [PATCH v3 2/8] migration: cpr setup notifier Ben Chaney
2025-12-03 18:51 ` [PATCH v3 3/8] vhost: reset vhost devices for cpr Ben Chaney
2025-12-03 18:51 ` [PATCH v3 4/8] cpr: delete all fds Ben Chaney
2025-12-03 18:51 ` [PATCH v3 5/8] tap: common return label Ben Chaney
2025-12-03 18:51 ` [PATCH v3 6/8] tap: cpr support Ben Chaney
2025-12-04  8:09   ` Markus Armbruster
2025-12-05  0:51     ` Jason Wang
2025-12-05  6:46       ` Markus Armbruster [this message]
2025-12-04 17:46   ` Cédric Le Goater
2025-12-04 17:56   ` Daniel P. Berrangé
2025-12-03 18:51 ` [PATCH v3 7/8] tap: postload fix for cpr Ben Chaney
2025-12-03 18:51 ` [PATCH v3 8/8] tap: cpr fixes Ben Chaney
2025-12-04 17:59   ` Daniel P. Berrangé
2025-12-04 12:52 ` [PATCH v3 0/8] Live update: tap and vhost Vladimir Sementsov-Ogievskiy
2025-12-08 21:03   ` Chaney, Ben
2025-12-09  7:27     ` Vladimir Sementsov-Ogievskiy
2025-12-08 10:08 ` Cédric Le Goater
2025-12-08 14:22   ` Mark Kanda
2025-12-08 14:42     ` Cédric Le Goater
2025-12-09 18:36   ` Chaney, Ben
  -- strict thread matches above, loose matches on Subject: below --
2025-12-03 18:43 Ben Chaney
2025-12-03 18:43 ` [PATCH v3 6/8] tap: cpr support Ben Chaney

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=877bv11l4b.fsf@pond.sub.org \
    --to=armbru@redhat.com \
    --cc=alex@shazbot.org \
    --cc=bchaney@akamai.com \
    --cc=berrange@redhat.com \
    --cc=clg@redhat.com \
    --cc=eblake@redhat.com \
    --cc=farosas@suse.de \
    --cc=hamza.khan@nutanix.com \
    --cc=jasowang@redhat.com \
    --cc=johunt@akamai.com \
    --cc=mark.kanda@oracle.com \
    --cc=mst@redhat.com \
    --cc=mtottenh@akamai.com \
    --cc=pbonzini@redhat.com \
    --cc=peterx@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=sgarzare@redhat.com \
    --cc=steven.sistare@oracle.com \
    --cc=sw@weilnetz.de \
    /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.