All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Jackson <ian.jackson@citrix.com>
To: Jason Andryuk <jandryuk@gmail.com>
Cc: "Anthony Perard" <anthony.perard@citrix.com>,
	"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
	"Marek Marczykowski-Górecki" <marmarek@invisiblethingslab.com>,
	"Wei Liu" <wl@xen.org>
Subject: Re: [PATCH v6 09/18] libxl: add save/restore support for qemu-xen in stubdomain
Date: Mon, 18 May 2020 15:24:34 +0100	[thread overview]
Message-ID: <24258.39586.245004.804616@mariner.uk.xensource.com> (raw)
In-Reply-To: <20200518011353.326287-10-jandryuk@gmail.com>

Jason Andryuk writes ("[PATCH v6 09/18] libxl: add save/restore support for qemu-xen in stubdomain"):
> From: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
...
>      if (state->saved_state) {
> -        /* This file descriptor is meant to be used by QEMU */
> -        *dm_state_fd = open(state->saved_state, O_RDONLY);
> -        flexarray_append(dm_args, "-incoming");
> -        flexarray_append(dm_args, GCSPRINTF("fd:%d",*dm_state_fd));
> +        if (is_stubdom) {
> +            /* Linux stubdomain must replace $STUBDOM_RESTORE_INCOMING_ARG
> +             * with the approriate fd:$num argument for the
> +             * STUBDOM_CONSOLE_RESTORE console 2.
> +             */
> +            flexarray_append(dm_args, "-incoming");
> +            flexarray_append(dm_args, "$STUBDOM_RESTORE_INCOMING_ARG");
> +        } else {
> +            /* This file descriptor is meant to be used by QEMU */
> +            *dm_state_fd = open(state->saved_state, O_RDONLY);
> +            flexarray_append(dm_args, "-incoming");
> +            flexarray_append(dm_args, GCSPRINTF("fd:%d",*dm_state_fd));

Hrk.  The stubdom script is expected to spot this particular value in
the dm_args array and seddery it.  OK.  This is, at leasst, sound.
I'm happy with the code and the protocol.

I think this needs a change to this doc:

  Subject: [PATCH v6 01/18] Document ioemu MiniOS stubdomain protocol

  +Toolstack to MiniOS ioemu stubdomain protocol
  +---------------------------------------------

Provided that you update the docs commit and take my ack off that,
please add my ack to this code :-).

Or you can fold the docs change into this commit, if you prefer, in
which case I'll review this patch again.

Thanks,
Ian.


  reply	other threads:[~2020-05-18 14:25 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-18  1:13 [PATCH v6 00/18] Add support for qemu-xen runnning in a Linux-based stubdomain Jason Andryuk
2020-05-18  1:13 ` [PATCH v6 01/18] Document ioemu MiniOS stubdomain protocol Jason Andryuk
2020-05-18  1:13 ` [PATCH v6 02/18] Document ioemu Linux " Jason Andryuk
2020-05-18  1:13 ` [PATCH v6 03/18] libxl: fix qemu-trad cmdline for no sdl/vnc case Jason Andryuk
2020-05-18  1:13 ` [PATCH v6 04/18] libxl: Allow running qemu-xen in stubdomain Jason Andryuk
2020-05-18  1:13 ` [PATCH v6 05/18] libxl: Handle Linux stubdomain specific QEMU options Jason Andryuk
2020-05-18  1:13 ` [PATCH v6 06/18] libxl: write qemu arguments into separate xenstore keys Jason Andryuk
2020-05-18 14:19   ` Ian Jackson
2020-05-18 15:20     ` Jason Andryuk
2020-05-18 16:34       ` Ian Jackson
2020-05-18  1:13 ` [PATCH v6 07/18] xl: add stubdomain related options to xl config parser Jason Andryuk
2020-05-18  1:13 ` [PATCH v6 08/18] tools/libvchan: notify server when client is connected Jason Andryuk
2020-05-18  1:13 ` [PATCH v6 09/18] libxl: add save/restore support for qemu-xen in stubdomain Jason Andryuk
2020-05-18 14:24   ` Ian Jackson [this message]
2020-05-18 15:30     ` Jason Andryuk
2020-05-18 16:29       ` Ian Jackson
2020-05-18  1:13 ` [PATCH v6 10/18] tools: add missing libxenvchan cflags Jason Andryuk
2020-05-18  1:13 ` [PATCH v6 11/18] tools: add simple vchan-socket-proxy Jason Andryuk
2020-05-18  1:13 ` [PATCH v6 12/18] libxl: Refactor kill_device_model to libxl__kill_xs_path Jason Andryuk
2020-05-18  1:13 ` [PATCH v6 13/18] libxl: use vchan for QMP access with Linux stubdomain Jason Andryuk
2020-05-18 14:27   ` Ian Jackson
2020-05-18  1:13 ` [PATCH v6 14/18] libxl: require qemu in dom0 for multiple stubdomain consoles Jason Andryuk
2020-05-18 14:27   ` Ian Jackson
2020-05-18  1:13 ` [PATCH v6 15/18] libxl: ignore emulated IDE disks beyond the first 4 Jason Andryuk
2020-05-18  1:13 ` [PATCH v6 16/18] libxl: consider also qemu in stubdomain in libxl__dm_active check Jason Andryuk
2020-05-18  1:13 ` [PATCH v6 17/18] docs: Add device-model-domid to xenstore-paths Jason Andryuk
2020-05-18  1:13 ` [PATCH v6 18/18] libxl: Check stubdomain kernel & ramdisk presence Jason Andryuk
2020-05-18 14:28 ` [PATCH v6 00/18] Add support for qemu-xen runnning in a Linux-based stubdomain Ian Jackson

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=24258.39586.245004.804616@mariner.uk.xensource.com \
    --to=ian.jackson@citrix.com \
    --cc=anthony.perard@citrix.com \
    --cc=jandryuk@gmail.com \
    --cc=marmarek@invisiblethingslab.com \
    --cc=wl@xen.org \
    --cc=xen-devel@lists.xenproject.org \
    /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.