From: Ewan Mellor <ewan@xensource.com>
To: "Tian, Kevin" <kevin.tian@intel.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: When is "physical-device" created in xenstore?
Date: Tue, 20 Sep 2005 14:12:08 +0100 [thread overview]
Message-ID: <20050920131208.GA10070@uk.xensource.com> (raw)
In-Reply-To: <571ACEFD467F7749BC50E0A98C17CDD802C0686E@pdsmsx403>
On Tue, Sep 20, 2005 at 07:41:09PM +0800, Tian, Kevin wrote:
> If making following temp hack in XendDomainInfo.py:
>
> back = { 'type' : type,
> 'params' : params,
> 'frontend' : frontpath,
> - 'frontend-id' : "%i" % self.domid }
> + 'frontend-id' : "%i" % self.domid,
> + 'physical-device' : "%li" % blkdev_name_to_number(params) }
> xstransact.Write(backpath, back)
>
> Then physical-device is created under backend and the communication can be
> setup. However this hard code definitely breaks existing logical
> behind. Should I do any specific configuration? From the Blkctl.py, it said
> that "phy" type doesn't require bind/unbind script, but I didn't find the
> place to add that item specifically. ;-(
Hi Kevin,
The key physical-device is created inside the block-phy script, as I think you
found. This is called by xen-backend.agent, which in turn is called by the
Linux hotplug system (keying off the name 'xen-backend'). The file Blkctl.py
is completely unused, AFAICT, and should be removed.
The problems that you are having starting your device are probably down to a
broken or nonexistent installation of the hotplug system. You should check
that first. If your hotplug system is working, then maybe you are failing to
find xenstore-write.
HTH,
Ewan.
next prev parent reply other threads:[~2005-09-20 13:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-20 11:41 When is "physical-device" created in xenstore? Tian, Kevin
2005-09-20 13:12 ` Ewan Mellor [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-09-21 9:06 Tian, Kevin
2005-09-20 8:36 Tian, Kevin
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=20050920131208.GA10070@uk.xensource.com \
--to=ewan@xensource.com \
--cc=kevin.tian@intel.com \
--cc=xen-devel@lists.xensource.com \
/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.