All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Durrant <Paul.Durrant@citrix.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
	Ian Campbell <Ian.Campbell@citrix.com>,
	Stefano Stabellini <Stefano.Stabellini@eu.citrix.com>
Subject: Re: [Qemu-devel] [Xen-devel] [PATCH] Remove hardcoded xen-platform device initialization
Date: Fri, 14 Jun 2013 14:11:34 +0000	[thread overview]
Message-ID: <9AAE0902D5BC7E449B7C8E4E778ABCD0039B3F@LONPEX01CL01.citrite.net> (raw)
In-Reply-To: <51BB1FB4.1030006@redhat.com>

> -----Original Message-----
> From: Paolo Bonzini [mailto:paolo.bonzini@gmail.com] On Behalf Of Paolo
> Bonzini
> Sent: 14 June 2013 14:51
> To: Paul Durrant
> Cc: Ian Campbell; Stefano Stabellini; qemu-devel@nongnu.org; xen-
> devel@lists.xen.org
> Subject: Re: [Xen-devel] [PATCH] Remove hardcoded xen-platform device
> initialization
> 
> Il 14/06/2013 06:38, Paul Durrant ha scritto:
> >>>> I think the right solution for this is to move towards using
> >>>> the normal "-M pc" machine.  libxl can simply use "-M pc
> >>>> -machine accel=xen -device xen-platform-pv"; older versions
> >>>> that use the xenfv machine will still work.
> >>>>
> >>>> And if you do this, you will also get the benefit of
> >>>> versioned machine types.
> >>>>
> >>
> >> Thanks. I'll have a look at that.
> >
> > It's a little more complicated than I thought. There are two machine
> > types, xenpv and xenfv (i.e. HVM), and they share the accel=xen
> > option.
> 
> Yes, I was talking of xenfv only.
> 
> > Thus QEMU attaches to the VM in the machine code rather than
> > the accelerator init code. Using -M pc is therefore not an option,
> > unless we perhaps have separate accel options.
> 
> You're talking about xen_hvm_init, right?  IIRC there is a hypercall
> that lets you know if a domain is PV or FV so you could move large parts
> of it to accelerator init.  What's left can be done in "if
> (xen_enabled())" (especially those parts that have matching TCG/KVM code
> in normal "-M pc" initialization, and have that code currently disabled
> for Xen: unifying the two or at least doing an if/else would be nicer).
> 
> > Either way this
> > doesn't address the backwards compatibility issue. I think QEMU is
> > going to need to know which version of the Xen toolstack invoked it
> > unless we specify a compatibility matrix.
> 
> Yes, "xenfv" needs to stay as legacy for compatibility purposes.  But if
> you move the toolchain and QEMU towards using "-M pc" (requiring new
> QEMU for new toolchains that do) it would be a very nice cleanup.  It is
> also needed if you ever want to support Q35/PCIe.
> 

I think we're still going to need -M xenpv, I think; it's quite distinct from pc. I guess we could use -M pc for HVM and gate the accel code as you suggest but, if that's the way we're going, it would seem more logical just to ditch the accel code for xenpv completely (assuming we can do all we need from the machine init) and then use -M pc -accel=xen for HVM guests going forward. But that does rather screw up my autodiscovery plans because I would not know, for a given qemu binary, which machine type to use. If I create a new xenfv-2.0 machine type though I *can* do auto discovery... in which case do we need the -accel=xen option at all?

  Paul

  parent reply	other threads:[~2013-06-14 14:11 UTC|newest]

Thread overview: 65+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-13  9:50 [Qemu-devel] [PATCH] Remove hardcoded xen-platform device initialization Paul Durrant
2013-06-13 17:33 ` Stefano Stabellini
2013-06-13 17:44   ` Ian Campbell
2013-06-13 17:44   ` [Qemu-devel] [Xen-devel] " Ian Campbell
2013-06-13 18:02     ` Paolo Bonzini
2013-06-13 18:02     ` [Qemu-devel] [Xen-devel] " Paolo Bonzini
2013-06-14  9:00       ` Paul Durrant
2013-06-14 10:38         ` [Qemu-devel] " Paul Durrant
2013-06-14 10:38         ` [Qemu-devel] [Xen-devel] " Paul Durrant
2013-06-14 13:50           ` Paolo Bonzini
2013-06-14 13:50           ` [Qemu-devel] [Xen-devel] " Paolo Bonzini
2013-06-14 14:11             ` Paul Durrant
2013-06-14 14:11             ` Paul Durrant [this message]
2013-06-14 14:57               ` Paolo Bonzini
2013-06-14 14:57               ` [Qemu-devel] [Xen-devel] " Paolo Bonzini
2013-06-14 15:10                 ` Paul Durrant
2013-06-14 15:10                 ` [Qemu-devel] [Xen-devel] " Paul Durrant
2013-06-18 18:56                   ` Stefano Stabellini
2013-06-18 18:56                   ` [Qemu-devel] [Xen-devel] " Stefano Stabellini
2013-06-18 19:12                     ` Paolo Bonzini
2013-06-18 19:12                     ` [Qemu-devel] [Xen-devel] " Paolo Bonzini
2013-06-18 19:35                       ` Stefano Stabellini
2013-06-18 21:38                         ` [Qemu-devel] " Andreas Färber
2013-06-18 21:38                         ` [Qemu-devel] [Xen-devel] " Andreas Färber
2013-06-19  8:29                           ` [Qemu-devel] " Ian Campbell
2013-06-19  8:29                           ` [Qemu-devel] [Xen-devel] " Ian Campbell
2013-06-19  8:37                             ` Paul Durrant
2013-06-19  8:37                             ` [Qemu-devel] " Paul Durrant
2013-06-19  8:41                             ` [Qemu-devel] [Xen-devel] " Paolo Bonzini
2013-06-19  8:56                               ` [Qemu-devel] " Ian Campbell
2013-06-19  8:56                               ` [Qemu-devel] [Xen-devel] " Ian Campbell
2013-06-19  9:11                                 ` Paul Durrant
2013-06-19  9:11                                 ` [Qemu-devel] " Paul Durrant
2013-06-19 12:51                                 ` Paolo Bonzini
2013-06-19 12:51                                 ` [Qemu-devel] [Xen-devel] " Paolo Bonzini
2013-06-19 13:47                                 ` [Qemu-devel] " Stefano Stabellini
2013-06-19 13:47                                 ` [Qemu-devel] [Xen-devel] " Stefano Stabellini
2013-06-19  8:41                             ` [Qemu-devel] " Paolo Bonzini
2013-06-19  8:27                         ` [Qemu-devel] [Xen-devel] " Paul Durrant
2013-06-19 13:55                           ` Stefano Stabellini
2013-06-19 13:55                           ` [Qemu-devel] [Xen-devel] " Stefano Stabellini
2013-06-19 15:09                             ` Ian Campbell
2013-06-19 15:09                             ` [Qemu-devel] [Xen-devel] " Ian Campbell
2013-06-19  8:27                         ` Paul Durrant
2013-06-18 19:35                       ` Stefano Stabellini
2013-06-19  8:11                     ` Ian Campbell
2013-06-19  8:11                     ` [Qemu-devel] [Xen-devel] " Ian Campbell
2013-06-19 13:53                       ` Stefano Stabellini
2013-06-19 14:00                         ` [Qemu-devel] " Paul Durrant
2013-06-19 14:00                         ` [Qemu-devel] [Xen-devel] " Paul Durrant
2013-06-19 16:27                           ` Stefano Stabellini
2013-06-20  7:32                             ` Paul Durrant
2013-06-20  7:32                             ` [Qemu-devel] " Paul Durrant
2013-06-19 16:27                           ` Stefano Stabellini
2013-06-19 13:53                       ` Stefano Stabellini
2013-06-14  9:00       ` Paul Durrant
2013-06-14  8:56     ` [Qemu-devel] [Xen-devel] " Paul Durrant
2013-06-14  8:56     ` [Qemu-devel] " Paul Durrant
2013-06-14  8:50   ` Paul Durrant
2013-06-14 13:52     ` Paolo Bonzini
2013-06-14 13:52     ` [Qemu-devel] " Paolo Bonzini
2013-06-14 13:57       ` Paul Durrant
2013-06-14 13:57       ` [Qemu-devel] " Paul Durrant
2013-06-14  8:50   ` Paul Durrant
2013-06-13 17:33 ` Stefano Stabellini

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=9AAE0902D5BC7E449B7C8E4E778ABCD0039B3F@LONPEX01CL01.citrite.net \
    --to=paul.durrant@citrix.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=Stefano.Stabellini@eu.citrix.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --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.