xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Juergen Gross <jgross@suse.com>
To: Daniel Smith <dpsmith.dev@gmail.com>, xen-devel@lists.xenproject.org
Subject: Re: [Xen-devel] Running xenstored in Linux stubdom
Date: Wed, 4 Sep 2019 18:12:02 +0200	[thread overview]
Message-ID: <2e2293bc-4187-3fe8-52d6-96f709ae4c3c@suse.com> (raw)
In-Reply-To: <CADAP9AWJ46Oh=b-1K1hTNnkD=0DTYtYGX4L7VQp51QBaQCeYNw@mail.gmail.com>

On 04.09.19 17:45, Daniel Smith wrote:
> Greetings,
> 
> I am attempting to see if I can get xenstored to run within a Linux
> stubdom for a variety of reasons. The way I have it constructed at
> this point is that embedded within the initramfs of dom0 is the linux
> stubdom image along with the init-xenstore-domain helper. The init
> script within the initramfs does basic Linux start setup, launches
> udev and then attempts to start the stubdom using the helper binary.
> The helper binary hangs and using strace shows the last calls before
> hanging is,
> 
> write(3, "/tool/xenstored/domid\0:, 22) = 22
> write(3, "1", 1)                                      = 1
> read(3,
> 
> For the stubdom itself, its init script does the basic Linux start
> setup and then executes xenstored in foreground. I have tested the
> stubdom as a regular guest passing the --no-domain-init flag and I see
> no issues with the domain starting and launching xenstored.
> 
> For a point of reference, I have been able to successfully use the
> minios stubdom in place of the Linux stubdom. I have been reviewing
> the minios version to see what I might be missing in the LInux version
> to no avail. Perhaps others may have insight on what the issue may be.

The stubdom gets an event channel to use for dom0 xenbstore connection
via commandline parameter ("--event <event-nr>"). This needs to be used
in the stubdom for setting up the communication path.


Juergen

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2019-09-04 16:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-04 15:45 [Xen-devel] Running xenstored in Linux stubdom Daniel Smith
2019-09-04 16:12 ` Juergen Gross [this message]
2019-09-04 17:26   ` Daniel Smith
2019-09-06 18:01     ` Daniel Smith
2019-09-09  9:08       ` Juergen Gross

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=2e2293bc-4187-3fe8-52d6-96f709ae4c3c@suse.com \
    --to=jgross@suse.com \
    --cc=dpsmith.dev@gmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).