xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Egger <Christoph.Egger@amd.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: qemu and xl semantics
Date: Fri, 17 Dec 2010 10:49:05 +0100	[thread overview]
Message-ID: <201012171049.06005.Christoph.Egger@amd.com> (raw)
In-Reply-To: <1292577314.32368.11432.camel@zakaz.uk.xensource.com>

On Friday 17 December 2010 10:15:14 Ian Campbell wrote:
> On Fri, 2010-12-17 at 09:00 +0000, Christoph Egger wrote:
> > Hi!
> >
> > When I start a guest with xm  the disk startup script assigns a loopback
> > device for qemu to open it.
> >
> > Now it seems that qemu opens the disk image directly. Then when
> > the loopback device wants to open the disk image then that fails
> > with EBUSY.
>
> By "Now..." you mean "With xl..." ?

no, I mean with xm.

>
> > How is the disk startup script supposed to work with the new
> > semantic for
> > a) HVM guests
> > b) PV guests
> > ?
>
> I think this is all very specific to the precise disk type you have in
> your config, i.e. tap: vs file: vs phy: etc. Which are you using?

I use 'file'.

> > The network startup script adds the tap device to the bridge
> > or assigns an ip address.
> > With xl neither the disk nor the network script runs.
> > So when I start the guest with xl then I have
> > the tap device assigned to the guest but the
> > tap device is not configured in the dom0.
> >
> > How does the 'xl' way work in respect to the network script
> > used with 'xm' ?
>
> On Linux these are run from the hotplug event, via the udev rules. I
> presume you are talking about on NetBSD though?

Yes.

> Under Linux I think it was always the same under xm too although there
> have been some tweaks recently, e.g. the vif script is now always
> /etc/xen/scripts/vif-setup which handles the indirection to the script
> in the domain config or the default. Previously xend the hotplug rules
> called the configured script directly. This change was
> 21549:8bcaec29574e and was common to xm and xl I think.

On NetBSD a xenbackendd starts along with xenstored.
xenbackendd watches on /local/domain/0/backend
and invokes the corresponding scripts when something changes
beneath that.

'xend' is doing that in DevController.py. Since 'xl' is not interacting
with 'xend' the scripts don't get launched at all.

Christoph


-- 
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632

  reply	other threads:[~2010-12-17  9:49 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-17  9:00 qemu and xl semantics Christoph Egger
2010-12-17  9:15 ` Ian Campbell
2010-12-17  9:49   ` Christoph Egger [this message]
2010-12-17 10:32     ` Ian Campbell
2010-12-17 17:21       ` Christoph Egger
2010-12-20 10:23         ` Ian Campbell
2010-12-22 15:42           ` Christoph Egger
2010-12-22 16:08             ` Ian Campbell
2010-12-22 16:47               ` Christoph Egger
2010-12-22 17:10                 ` Ian Campbell
2011-01-03  9:57                   ` Christoph Egger
2011-01-04 14:31                     ` Ian Campbell

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=201012171049.06005.Christoph.Egger@amd.com \
    --to=christoph.egger@amd.com \
    --cc=Ian.Campbell@citrix.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 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).