Re: [RFC V1 00/14] precreate phase

2024-10-29 Thread Peter Xu
On Tue, Oct 29, 2024 at 10:20:24AM -0300, Fabiano Rosas wrote: > Daniel P. Berrangé writes: > > > On Fri, Oct 25, 2024 at 02:43:06PM +0100, Daniel P. Berrangé wrote: > >> > >> The migration QAPI design has always felt rather odd to me, in that we > >> have perfectly good commands "migrate" & "mi

Re: [RFC V1 00/14] precreate phase

2024-10-29 Thread Daniel P . Berrangé
On Tue, Oct 29, 2024 at 10:20:24AM -0300, Fabiano Rosas wrote: > Daniel P. Berrangé writes: > > > On Fri, Oct 25, 2024 at 02:43:06PM +0100, Daniel P. Berrangé wrote: > >> > >> The migration QAPI design has always felt rather odd to me, in that we > >> have perfectly good commands "migrate" & "mi

Re: [RFC V1 00/14] precreate phase

2024-10-29 Thread Fabiano Rosas
Daniel P. Berrangé writes: > On Fri, Oct 25, 2024 at 02:43:06PM +0100, Daniel P. Berrangé wrote: >> >> The migration QAPI design has always felt rather odd to me, in that we >> have perfectly good commands "migrate" & "migrate-incoming" that are able >> to accept an arbitrary list of parameters

Re: [RFC V1 00/14] precreate phase

2024-10-29 Thread Daniel P . Berrangé
On Fri, Oct 25, 2024 at 02:43:06PM +0100, Daniel P. Berrangé wrote: > > The migration QAPI design has always felt rather odd to me, in that we > have perfectly good commands "migrate" & "migrate-incoming" that are able > to accept an arbitrary list of parameters when invoked. Instead of passing >

Re: [RFC V1 00/14] precreate phase

2024-10-29 Thread Daniel P . Berrangé
Dst qemu then accepts and reads the > > > > > migration > > > > > channel. > > > > > > > > > > We need a way to send monitor commands that set dst migration > > > > > capabilities, > > > > > before src qem

Re: [RFC V1 00/14] precreate phase

2024-10-28 Thread Peter Xu
> > > > Regarding: "what you want is effectively to execute monitor commands > > > > from the migration stream" > > > > > > > > That is not the goal of this series. It could be someone else's goal, > > > > when > > &g

Re: [RFC V1 00/14] precreate phase

2024-10-25 Thread Steven Sistare
oal, when fully developing a precreate phase, and in that context I understand and agree with your comments. I have a narrower immediate problem to solve, however. For CPR, src qemu sends file descriptors to dst qemu using SCM_RIGHTS over a dedicated channel, then src qemu sends migration state

Re: [RFC V1 00/14] precreate phase

2024-10-25 Thread Daniel P . Berrangé
24 at 05:16:14PM -0400, Steven Sistare wrote: > > > > > > > > > > Regarding: "what you want is effectively to execute monitor commands > > > > > from the migration stream" > > > > > > > > > > That is not the goal of

Re: [RFC V1 00/14] precreate phase

2024-10-25 Thread Steven Sistare
nitor commands from the migration stream" That is not the goal of this series. It could be someone else's goal, when fully developing a precreate phase, and in that context I understand and agree with your comments. I have a narrower immediate problem to solve, however. For CPR, src

Re: [RFC V1 00/14] precreate phase

2024-10-25 Thread Daniel P . Berrangé
> > > from the migration stream" > > > > > > That is not the goal of this series. It could be someone else's goal, > > > when > > > fully developing a precreate phase, and in that context I understand and > > > agree with your commen

Re: [RFC V1 00/14] precreate phase

2024-10-25 Thread Daniel P . Berrangé
On Thu, Oct 24, 2024 at 05:16:14PM -0400, Steven Sistare wrote: > > Regarding: "what you want is effectively to execute monitor commands > from the migration stream" > > That is not the goal of this series. It could be someone else's goal, when > fully developi

Re: [RFC V1 00/14] precreate phase

2024-10-24 Thread Steven Sistare
can issue query-migrate to get the socket-address for dynamically allocated port numbers during precreate. In this series QEMU passes through and does not linger in the precreate phase, and the user sees no change in behavior.  The cpr-transfer series will linger in the phase for an incoming CPR

Re: [RFC V1 13/14] net: cleanup for precreate phase

2024-10-23 Thread Steven Sistare
On 10/21/2024 3:20 PM, Peter Xu wrote: On Thu, Oct 17, 2024 at 08:14:14AM -0700, Steve Sistare wrote: Guard against unconfigured state if cleanup is called early, such as during the precreate phase. Signed-off-by: Steve Sistare Reviewed-by: Peter Xu One nitpick.. --- net/net.c | 4

Re: [RFC V1 00/14] precreate phase

2024-10-23 Thread Paolo Bonzini
ddress for dynamically allocated port numbers during precreate. In this series QEMU passes through and does not linger in the precreate phase, and the user sees no change in behavior. The cpr-transfer series will linger in the phase for an incoming CPR operation, and exit the phase when the migrate

Re: [RFC V1 06/14] vl: precreate phase

2024-10-23 Thread Fabiano Rosas
Steve Sistare writes: > Refactor qemu_init into actions performed during the precreate phase, > and actions performed when exiting precreate. For now, always exit > the precreate phase immediately at init time. Future patches will add > conditions that cause QEMU to linger in t

Re: [RFC V1 13/14] net: cleanup for precreate phase

2024-10-21 Thread Peter Xu
On Thu, Oct 17, 2024 at 08:14:14AM -0700, Steve Sistare wrote: > Guard against unconfigured state if cleanup is called early, such as > during the precreate phase. > > Signed-off-by: Steve Sistare Reviewed-by: Peter Xu One nitpick.. > --- > net/net.c | 4 +++- > 1 file

Re: [RFC V1 00/14] precreate phase

2024-10-21 Thread Steven Sistare
MU command line or from a migrate_incoming command. Thus the user can issue query-migrate to get the socket-address for dynamically allocated port numbers during precreate. In this series QEMU passes through and does not linger in the precreate phase, and the user sees no change in behavior. The cp

Re: [RFC V1 00/14] precreate phase

2024-10-17 Thread Peter Xu
which can come > > from either the QEMU command line or from a migrate_incoming command. > > Thus the user can issue query-migrate to get the socket-address for > > dynamically allocated port numbers during precreate. > > > > In this series QEMU passes through and does

Re: [RFC V1 13/14] net: cleanup for precreate phase

2024-10-17 Thread Steven Sistare
cc jason. The cover letter for this series is here: https://lore.kernel.org/qemu-devel/1729178055-207271-1-git-send-email-steven.sist...@oracle.com - Steve On 10/17/2024 11:14 AM, Steve Sistare wrote: Guard against unconfigured state if cleanup is called early, such as during the precreate

Re: [RFC V1 00/14] precreate phase

2024-10-17 Thread Steven Sistare
et-address for dynamically allocated port numbers during precreate. In this series QEMU passes through and does not linger in the precreate phase, and the user sees no change in behavior. The cpr-transfer series will linger in the phase for an incoming CPR operation, and exit the phase when t

[RFC V1 13/14] net: cleanup for precreate phase

2024-10-17 Thread Steve Sistare
Guard against unconfigured state if cleanup is called early, such as during the precreate phase. Signed-off-by: Steve Sistare --- net/net.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/net.c b/net/net.c index d9b23a8..207fdb0 100644 --- a/net/net.c +++ b/net/net.c

[RFC V1 06/14] vl: precreate phase

2024-10-17 Thread Steve Sistare
Refactor qemu_init into actions performed during the precreate phase, and actions performed when exiting precreate. For now, always exit the precreate phase immediately at init time. Future patches will add conditions that cause QEMU to linger in the precreate phase while running the main loop

[RFC V1 00/14] precreate phase

2024-10-17 Thread Steve Sistare
ers during precreate. In this series QEMU passes through and does not linger in the precreate phase, and the user sees no change in behavior. The cpr-transfer series will linger in the phase for an incoming CPR operation, and exit the phase when the migrate command is send to source QEMU and causes d

Re: precreate phase

2024-10-10 Thread Peter Xu
On Thu, Oct 10, 2024 at 11:19:15PM +0200, Paolo Bonzini wrote: > Moving migration_object_init() earlier sounds like a good idea anyway! I take the last sentence back of my other reply - I believe I underestimated the potential reviewers of the upcoming precreate patchset.. :) -- Peter Xu

Re: precreate phase

2024-10-10 Thread Paolo Bonzini
now if you think this is the right solution, and I will revive it. Preview:   0725d70 vl: precreate phase   edd2dee net: cleanup for precreate phase   4733c00 accel: encapsulate search state   6d26ea4 accel: accel preinit function   518e737 accel: split configure_accelerators   8ef936b acc

Re: precreate phase

2024-10-10 Thread Peter Xu
there a branch we could skim somewhere? Yes a tree can be clearer, with an example usage. This design looks even cleaner to me (but maybe misunderstood some part), it may slow down the merge because we need broader reviews. So it's just that it might have higher chance miss 9.2. > > &

Re: precreate phase

2024-10-10 Thread Fabiano Rosas
ght > solution, and I will revive it. Seems reasonable to me, given the requirements we're working with. Was there a branch we could skim somewhere? > > Preview: > >0725d70 vl: precreate phase >edd2dee net: cleanup for precreate phase >4733c00 accel: encap

precreate phase

2024-10-10 Thread Steven Sistare
o I need a few days to rebase it and test. It is not small, and requires approvals from additional maintainers. Let me know if you think this is the right solution, and I will revive it. Preview: 0725d70 vl: precreate phase edd2dee net: cleanup for precreate phase 4733c00 accel: encapsul