qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: xen-devel@lists.xensource.com, qemu-devel@nongnu.org,
	Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [Xen-devel] Re: [Qemu-devel] [PATCH 05/13] xen: groundwork for xen support
Date: Tue, 26 Aug 2008 13:57:42 +0100	[thread overview]
Message-ID: <20080826125742.GB19615@redhat.com> (raw)
In-Reply-To: <18611.56211.660082.627144@mariner.uk.xensource.com>

On Tue, Aug 26, 2008 at 11:31:47AM +0100, Ian Jackson wrote:
> Gerd Hoffmann writes ("[Qemu-devel] [PATCH 05/13] xen: groundwork for xen support"):
> > +/*
> > + * Figure the environment we are running in.
> > + * Returns true when xen is present, false otherwise.
> > + * Also checks whenever the domain specified via -domid
> > + * exists (so we can attach) or whenever it must be created.
> > + */
> 
> I don't think this is the right approach.  The intent appears to be
> that if you run a particular qemu rune, it will do a completely
> different thing when running under Xen.

This particular check is doing two different jobs in one go. I think 
they need to be dealt with separately.

 - Check to see if running on Xen or not. This is a similar idea to
   to pv_ops where we have one kernel binary, and probe at runtime
   to decide whether to run in KVM, Xen, VMWare or bare metal mode.

   This is important to QEMU too. Merging the source trees for all 
   projects using QEMU is just the first step. A single binary for
   all is the holy grail, though may not be practical for Mini-OS
   usage

 - Check to see whether the guest domain is pre-created (ie attaching
   to an existing VM created by XenD), or whether QEMU is constructing
   the domain from scratch.

Probing for whether a domain ID exists in the hypervisor, and if not, then
creating it, has a nasty race condition, where XenD could launch QEMU
and then (for whatever reason) decide to kill off the domain, but QEMU
then re-creates it during its startup procedure.

If we want QEMU to explicitly created Xen domains from scratch, rather than
attaching to an existing one, then there needs to be a way to reliably 
specify this behaviour via the CLI.

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

  parent reply	other threads:[~2008-08-26 12:57 UTC|newest]

Thread overview: 117+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-21 16:27 [Qemu-devel] [PATCH 00/13] merge some xen bits into qemu Gerd Hoffmann
2008-08-21 16:27 ` [Qemu-devel] [PATCH 01/13] Handle terminating signals Gerd Hoffmann
2008-08-21 20:11   ` Anthony Liguori
     [not found]   ` <m2n.s.1KWGbo-001Nr9@chiark.greenend.org.uk>
2008-08-26 10:44     ` Ian Jackson
2008-08-26 12:16       ` Gerd Hoffmann
2008-08-26 12:36         ` Ian Jackson
2008-08-26 12:58           ` Gerd Hoffmann
2008-08-26 17:55             ` Jamie Lokier
2008-08-26 13:17           ` Anthony Liguori
2008-08-26 13:38             ` [Xen-devel] " Ian Jackson
2008-08-26 14:52               ` Avi Kivity
2008-08-26 17:49                 ` Jamie Lokier
2008-08-26 15:04               ` Anthony Liguori
2008-08-26 15:08                 ` Ian Jackson
2008-08-26 15:20                   ` Anthony Liguori
2008-08-26 15:28                     ` Ian Jackson
2008-08-26 15:36                       ` Anthony Liguori
2008-08-26 17:47                         ` Jamie Lokier
2008-08-26 18:03                           ` Jamie Lokier
2008-08-26 18:50                           ` Anthony Liguori
2008-08-27  9:46                           ` Ian Jackson
2008-08-27 16:27                             ` Jamie Lokier
2008-08-27 16:35                               ` Ian Jackson
2008-08-27 17:55                                 ` Anthony Liguori
2008-08-27 18:41                                 ` Jamie Lokier
2008-08-28  9:34                                   ` Ian Jackson
2008-09-07  2:41                                     ` Anthony Liguori
2008-08-26 15:36                       ` Samuel Thibault
2008-08-26 15:21                   ` Anthony Liguori
     [not found]               ` <m2n.s.1KXzwZ-002RA9@chiark.greenend.org.uk>
2008-08-26 15:23                 ` Ian Jackson
2008-08-26 15:29                   ` Avi Kivity
     [not found]                   ` <m2n.s.1KY0XT-002RJM@chiark.greenend.org.uk>
2008-08-26 15:38                     ` Ian Jackson
2008-08-26 16:12                       ` Avi Kivity
2008-08-26 16:14                         ` Julian Seward
2008-08-26 16:39                           ` Anthony Liguori
2008-08-27  8:05                           ` Avi Kivity
2008-08-27  8:49                             ` Alan Cox
2008-08-27  9:10                               ` Avi Kivity
2008-08-27  9:16                                 ` Keir Fraser
2008-08-27  9:12                               ` Gleb Natapov
     [not found]             ` <m2n.s.1KXz4u-002Qvq@chiark.greenend.org.uk>
2008-08-26 14:55               ` Ian Jackson
2008-08-21 16:27 ` [Qemu-devel] [PATCH 02/13] add DisplayState->idle Gerd Hoffmann
2008-08-21 16:33   ` [Qemu-devel] " Samuel Thibault
2008-08-21 20:12   ` [Qemu-devel] " Anthony Liguori
2008-08-21 16:27 ` [Qemu-devel] [PATCH 03/13] add container_of() macro to osdep.h Gerd Hoffmann
2008-08-21 20:12   ` Anthony Liguori
2008-08-21 16:27 ` [Qemu-devel] [PATCH 04/13] move GUI_REFRESH_INTERVAL define from vl.c to console.h Gerd Hoffmann
2008-08-21 20:12   ` Anthony Liguori
2008-08-21 16:27 ` [Qemu-devel] [PATCH 05/13] xen: groundwork for xen support Gerd Hoffmann
2008-08-21 20:18   ` Anthony Liguori
2008-08-21 16:27 ` [Qemu-devel] [PATCH 06/13] xen: backend driver core Gerd Hoffmann
2008-08-21 16:27 ` [Qemu-devel] [PATCH 07/13] xen: add console backend driver Gerd Hoffmann
2008-08-21 16:27 ` [Qemu-devel] [PATCH 08/13] xen: add framebuffer " Gerd Hoffmann
2008-08-21 16:27 ` [Qemu-devel] [PATCH 09/13] xen: add block device " Gerd Hoffmann
2008-08-21 16:27 ` [Qemu-devel] [PATCH 10/13] xen: add net " Gerd Hoffmann
2008-08-21 16:27 ` [Qemu-devel] [PATCH 11/13] xen: blk & nic configuration via cmd line Gerd Hoffmann
2008-08-21 16:27 ` [Qemu-devel] [PATCH 12/13] set vnc password from xenstore Gerd Hoffmann
2008-08-21 20:14   ` Anthony Liguori
2008-08-21 20:19     ` [Xen-devel] " Daniel P. Berrange
2008-08-21 20:22       ` Anthony Liguori
2008-08-21 20:26         ` Daniel P. Berrange
2008-08-21 21:34         ` Gerd Hoffmann
2008-08-21 21:48           ` Daniel P. Berrange
2008-08-21 22:36             ` Anthony Liguori
2008-08-24  9:03               ` Avi Kivity
2008-08-22  7:04             ` Gerd Hoffmann
2008-08-22 19:11               ` Jamie Lokier
2008-08-22 19:01             ` Jamie Lokier
2008-08-21 22:34           ` Anthony Liguori
2008-08-22  8:27             ` Gerd Hoffmann
2008-08-24  8:57         ` Avi Kivity
2008-08-24  9:59           ` Jamie Lokier
2008-08-24 10:07             ` Avi Kivity
2008-08-24 12:48               ` Jamie Lokier
2008-08-21 20:59       ` Jamie Lokier
2008-08-21 21:29       ` Gerd Hoffmann
2008-08-26 10:13     ` Ian Jackson
2008-08-21 20:17   ` [Qemu-devel] Re: [Xen-devel] " Daniel P. Berrange
2008-08-21 21:25     ` Gerd Hoffmann
     [not found]     ` <m2n.s.1KWHfl-001Ntw@chiark.greenend.org.uk>
2008-08-26 10:47       ` Ian Jackson
2008-08-21 16:27 ` [Qemu-devel] [PATCH 13/13] xen: pv domain builder Gerd Hoffmann
     [not found] ` <m2n.s.1KWDD7-002TB9@chiark.greenend.org.uk>
2008-08-26 10:31   ` [Qemu-devel] [PATCH 05/13] xen: groundwork for xen support Ian Jackson
2008-08-26 12:34     ` Gerd Hoffmann
2008-08-26 12:57     ` Daniel P. Berrange [this message]
2008-08-26 13:20       ` [Xen-devel] " Gerd Hoffmann
2008-08-26 13:23         ` Daniel P. Berrange
2008-08-26 13:33           ` Ian Jackson
2008-08-26 14:14             ` Daniel P. Berrange
2008-08-26 14:31               ` Gerd Hoffmann
2008-08-26 14:40                 ` Daniel P. Berrange
2008-08-26 14:49                   ` Gerd Hoffmann
2008-08-26 14:53                     ` Daniel P. Berrange
2008-08-26 19:24                       ` Gerd Hoffmann
2008-08-26 14:53                     ` Ian Jackson
2008-08-27  8:51                       ` Gerd Hoffmann
2008-08-27  9:53                         ` Ian Jackson
2008-08-27  9:56                           ` Daniel P. Berrange
2008-08-27 10:00                             ` Ian Jackson
2008-08-27 10:23                               ` Daniel P. Berrange
2008-08-27 10:37                                 ` Gerd Hoffmann
2008-08-27 10:44                                   ` Daniel P. Berrange
2008-08-27 11:01                                     ` Gerd Hoffmann
     [not found]             ` <m2n.s.1KXzR5-002R2A@chiark.greenend.org.uk>
2008-08-26 15:05               ` Ian Jackson
2008-08-26 15:09                 ` Daniel P. Berrange
2008-08-26 13:24       ` Ian Jackson
2008-08-26 13:50         ` Daniel P. Berrange
     [not found] ` <m2n.s.1KWDfC-002TCd@chiark.greenend.org.uk>
     [not found]   ` <m2n.s.1KWDGv-002TBJ@chiark.greenend.org.uk>
     [not found]     ` <m2n.s.1KWDEt-002TBA@chiark.greenend.org.uk>
2008-08-26 10:42       ` [Qemu-devel] [PATCH 13/13] xen: pv domain builder Ian Jackson
2008-08-26 10:50         ` [Xen-devel] " Samuel Thibault
2008-08-26 13:43           ` Ian Jackson
2008-08-26 21:00           ` Markus Armbruster
2008-08-26 12:55         ` Gerd Hoffmann
2008-08-26 13:14           ` Ian Jackson
2008-08-26 13:53             ` Gerd Hoffmann
2008-08-26 14:19               ` Ian Jackson
2008-08-26 20:00                 ` [Xen-devel] " Gerd Hoffmann
2008-08-27  9:48                   ` Ian Jackson
2008-08-26 13:56             ` Gerd Hoffmann

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=20080826125742.GB19615@redhat.com \
    --to=berrange@redhat.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --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).