Re: [PATCH V3 05/16] migration: SCM_RIGHTS for QEMUFile

2024-11-14 Thread Steven Sistare
On 11/13/2024 3:54 PM, Peter Xu wrote: On Fri, Nov 01, 2024 at 06:47:44AM -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),

Re: [PATCH V3 05/16] migration: SCM_RIGHTS for QEMUFile

2024-11-13 Thread Peter Xu
On Fri, Nov 01, 2024 at 06:47:44AM -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 V3 05/16] migration: SCM_RIGHTS for QEMUFile

2024-11-01 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