xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Julien Grall <julien.grall@arm.com>
Cc: Peng Fan <van.freenix@gmail.com>,
	xen-devel@lists.xenproject.org, sstabellini@kernel.org
Subject: Re: Unable to add disk on ARM64
Date: Fri, 12 Aug 2016 16:57:06 +0200	[thread overview]
Message-ID: <20160812145706.3tzmc2ll7ubd7ukl@mac> (raw)
In-Reply-To: <b4e50ff8-e176-487f-9499-666ef8a8bf53@arm.com>

On Fri, Aug 12, 2016 at 03:00:34PM +0200, Julien Grall wrote:
> On 12/08/2016 14:24, Peng Fan wrote:
> > Hi,
> 
> Hello Peng,
> 
> I have CCed Roger who is more familiar than me with the hotplug scripts.
> 
> > I am using xen master branch on i.MX8 ARM64.
> > 
> > My xl configuration:
> > 
> > kernel = "/root/xen/Image"
> > memory = "128"
> > name = "DomU"
> > vcpus = 1
> > serial="pty"
> > disk = [ 'phy:/dev/loop0,xvda,w' ]
> > extra = "console=hvc0 root=/dev/xvda debug=/bin/sh"
> > 
> > 
> > And I "losetup /dev/loop0 /root/DomU-rootfs" in Dom0 Linux.
> > 
> > But I met the following error:
> > libxl: debug: libxl_aoutils.c:593:libxl__async_exec_start: forking to execute: /etc/xen/scripts/block add ^M^M
> > Device /dev/loop0 is mounted in the privileged domain,^M^M
> > and so cannot be mounted by a guest.^M^M
> > libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: /etc/xen/scripts/block add [800] exited with error status 1^M^M
> > libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch w=0xfee100: deregister unregistered^M^M
> > libxl: error: libxl_devi
> > ce.c:1202:device_hotplug_child_death_cb: script: Device /dev/loop0 is mounted in the privileged domain,^M^M
> > and so cannot be mounted by a guest.^M^M
> 
> From my understanding, you have mounted /dev/loop0 in Dom0, is that correct?
> However, we don't support sharing the same mounting point by default (Roger
> can you confirm).

It seems like the hotplug script has detected that you have the device 
already attached to Dom0, can you paste the output of `xenstore-ls -fp` 
when this happens?
 
It could be that there's some garbage in xenstore from a device that hasn't 
been properly detached.

Roger.

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

  reply	other threads:[~2016-08-12 14:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-12 12:24 Unable to add disk on ARM64 Peng Fan
2016-08-12 13:00 ` Julien Grall
2016-08-12 14:57   ` Roger Pau Monné [this message]
2016-08-13  2:48     ` Peng Fan
2016-08-13 14:13     ` Peng Fan

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=20160812145706.3tzmc2ll7ubd7ukl@mac \
    --to=roger.pau@citrix.com \
    --cc=julien.grall@arm.com \
    --cc=sstabellini@kernel.org \
    --cc=van.freenix@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).