From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Iurii Mykhalskyi <iurii.mykhalskyi@globallogic.com>,
Wei Liu <wei.liu2@citrix.com>
Cc: Pavlo Suikov <pavlo.suikov@globallogic.com>,
Andrii Anisov <andrii.anisov@globallogic.com>,
xen-devel@lists.xen.org
Subject: Re: Hotplugged devices in Xen 4.5 and domain reboot
Date: Tue, 1 Dec 2015 16:56:27 +0100 [thread overview]
Message-ID: <565DC32B.7010300@citrix.com> (raw)
In-Reply-To: <CAC+yBMvsKTe0hQzq0ykpsa3VbvVjFYapm7YdO=ufJQxjLB5LsA@mail.gmail.com>
Hello,
El 01/12/15 a les 15.58, Iurii Mykhalskyi ha escrit:
> Our real usb mass-storage device are located at driver domain (DomD). So we
> setup second block-device backend there.
>
> To hotplug usb mass-storage from DomD we use follow command:
>
> xl block-attach domU_id phy:/bla-bla,xvda10,w,backend="DomD"
This is not possible by design, you should only be able to execute `xl
block-attach ...` from the control domain (Dom0). This is due to the
fact that attaching a new device to a guest requires write permissions
in the guest xenstore paths, which the driver domain should not have.
>
> There was no support of attaching block-device in runtime from domain other
> to Domain-0, so we have made some hacks to allow call block-attach command
> from non-dom0 privileged domain.
Do you have either the `xl devd` command running or udev rules
correctly setup inside of the driver domain?
Does something like the following work? If not, could you paste the
error when running it with -vvv.
xl block-attach DomU format=raw,vdev=hdc,access=rw,backend=DomD,target=/path/to/dev
Roger.
prev parent reply other threads:[~2015-12-01 15:56 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-01 13:24 Hotplugged devices in Xen 4.5 and domain reboot Pavlo Suikov
2015-12-01 14:02 ` Wei Liu
2015-12-01 14:58 ` Iurii Mykhalskyi
2015-12-01 15:29 ` Wei Liu
2015-12-01 15:41 ` Ian Campbell
2015-12-01 16:48 ` Iurii Mykhalskyi
2015-12-01 17:05 ` Ian Campbell
2015-12-01 21:03 ` Doug Goldstein
2015-12-02 9:31 ` Ian Campbell
2015-12-01 17:21 ` Wei Liu
2015-12-02 9:28 ` Ian Campbell
2015-12-01 17:52 ` Roger Pau Monné
2015-12-02 9:30 ` Ian Campbell
2015-12-01 15:56 ` Roger Pau Monné [this message]
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=565DC32B.7010300@citrix.com \
--to=roger.pau@citrix.com \
--cc=andrii.anisov@globallogic.com \
--cc=iurii.mykhalskyi@globallogic.com \
--cc=pavlo.suikov@globallogic.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.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.