[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v5 09/21] libxl: add save/restore support for qemu-xen in stubdomain
Jason Andryuk writes ("Re: [PATCH v5 09/21] libxl: add save/restore support for qemu-xen in stubdomain"): > On Thu, May 14, 2020 at 12:35 PM Ian Jackson <ian.jackson@xxxxxxxxxx> wrote: > > I suggest randomly allocating one in the range [64,192>. My random > > number generator picked 119. So 118 and 119 ? > > This makes sense and would be the easiest change. Cool. > > Also, why couldn't your wrapper script add this argument ? If you do > > that there then there is one place that knows the fd number and a > > slightly less tortuous linkage between libxl and the script... > > I like this idea, but there is a complication. "-incoming" is only > added when performing a restore, so it cannot just be blindly added to > all qemu command lines in the stubdom. Two options I see are to > either communicate a restore some other way (so the stubdom scripts > can add the appropriate option), or pass something though dm_args, but > let the script convert it into something usable. > > There is "-incoming defer" where we can later specify > "migrate_incoming fd:119". Another option is to `sed > s/defer/fd:119/`, but that is a little tricky since we need to look at > the preceding key to know if we should sed the second. We could pass > only "-incoming" and require the stubdom script to modify that option. > > I haven't tested any of this. Erk. I see now why you did it the way you did ! > > It's not stated anywhere here that I can see but I think what is > > happening here is that your wrapper script knows the qemu savefile > > pathname and reads it directly. Maybbe a comment would be > > worthwhile ? > > The existing comment "Linux stubdomain connects specific FD to > STUBDOM_CONSOLE_RESTORE" is trying to state that. > STUBDOM_CONSOLE_RESTORE is defined as 2 for console 2 (/dev/hvc2), but > it is only a libxl_internal.h define. Err, by "the qemu savefile pathname" I meant the pathname in dom0. I assume your wrapper script opens that and feeds it to the console. Is that right ? Thanks, Ian.
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |