Re: [PATCH V2 07/13] migration: SCM_RIGHTS for QEMUFile

2024-10-07 Thread Peter Xu
On Mon, Oct 07, 2024 at 05:35:37PM +0100, Daniel P. Berrangé wrote: > See 'man 7 unix': > > [quote] >At least one byte of real data should be sent when >sending ancillary data. On Linux, this is required to >successfully send ancillary data over a UNIX domain >stream socke

Re: [PATCH V2 07/13] migration: SCM_RIGHTS for QEMUFile

2024-10-07 Thread Daniel P . Berrangé
On Mon, Oct 07, 2024 at 12:06:21PM -0400, Peter Xu wrote: > On Mon, Sep 30, 2024 at 12:40:38PM -0700, Steve Sistare wrote: > > Define functions to put/get file descriptors to/from a QEMUFile, for qio > > channels that support SCM_RIGHTS. Maintain ordering such that > > put(A), put(fd), put(B) >

Re: [PATCH V2 07/13] migration: SCM_RIGHTS for QEMUFile

2024-10-07 Thread Peter Xu
On Mon, Sep 30, 2024 at 12:40:38PM -0700, Steve Sistare wrote: > Define functions to put/get file descriptors to/from a QEMUFile, for qio > channels that support SCM_RIGHTS. Maintain ordering such that > put(A), put(fd), put(B) > followed by > get(A), get(fd), get(B) > always succeeds. Other

[PATCH V2 07/13] migration: SCM_RIGHTS for QEMUFile

2024-09-30 Thread Steve Sistare
Define functions to put/get file descriptors to/from a QEMUFile, for qio channels that support SCM_RIGHTS. Maintain ordering such that put(A), put(fd), put(B) followed by get(A), get(fd), get(B) always succeeds. Other get orderings may succeed but are not guaranteed. Signed-off-by: Steve Sis