From: "Michael S. Tsirkin" <mst@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Paul Durrant <Paul.Durrant@citrix.com>,
Laszlo Ersek <lersek@redhat.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH 0/2] Remove hardcoded xen-platform device initialization (v4)
Date: Thu, 20 Jun 2013 18:12:53 +0300 [thread overview]
Message-ID: <20130620151253.GA18271@redhat.com> (raw)
In-Reply-To: <51C319A0.6010507@redhat.com>
On Thu, Jun 20, 2013 at 05:02:56PM +0200, Paolo Bonzini wrote:
> Il 18/06/2013 16:22, Michael S. Tsirkin ha scritto:
> > On Tue, Jun 18, 2013 at 01:15:57PM +0000, Paul Durrant wrote:
> >>> -----Original Message-----
> >>> From: Laszlo Ersek [mailto:lersek@redhat.com]
> >>> Sent: 18 June 2013 14:14
> >>> To: Michael S. Tsirkin
> >>> Cc: Paul Durrant; qemu-devel@nongnu.org
> >>> Subject: Re: [Qemu-devel] [PATCH 0/2] Remove hardcoded xen-platform
> >>> device initialization (v4)
> >>>
> >>> On 06/18/13 15:01, Michael S. Tsirkin wrote:
> >>>> On Tue, Jun 18, 2013 at 12:57:54PM +0000, Paul Durrant wrote:
> >>>>>> -----Original Message-----
> >>>>>> From: Michael S. Tsirkin [mailto:mst@redhat.com]
> >>>>>> Sent: 18 June 2013 13:52
> >>>>>> To: Laszlo Ersek
> >>>>>> Cc: Paul Durrant; qemu-devel@nongnu.org
> >>>>>> Subject: Re: [Qemu-devel] [PATCH 0/2] Remove hardcoded xen-
> >>> platform
> >>>>>> device initialization (v4)
> >>>>>>
> >>>>>> On Tue, Jun 18, 2013 at 02:37:58PM +0200, Laszlo Ersek wrote:
> >>>>>>> Hi Paul,
> >>>>>>>
> >>>>>>> (xen-devel snipped)
> >>>>>>>
> >>>>>>> On 06/18/13 13:16, Paul Durrant wrote:
> >>>>>>>> Because of concerns over backwards compatibility and a suggestion
> >>> that
> >>>>>>>> xenfv should be retired in favour of using the pc machine type I have
> >>> re-
> >>>>>>>> worked my original patch into 2 patches:
> >>>>>>>>
> >>>>>>>> [PATCH 1/2] Allow use of pc machine type (accel=xen) for Xen HVM
> >>>>>>>> [PATCH 2/2] Move hardcoded initialization of xen-platform device.
> >>>>>>>>
> >>>>>>>> Application of both these patches allows alternative pc machine types
> >>> to
> >>>>>> be
> >>>>>>>> used with the accel=xen option, but preserves the hardcoded
> >>> creation of
> >>>>>>>> the xen-platform device only for machine type xenfv.
> >>>>>>>>
> >>>>>>>> v3:
> >>>>>>>> - Add test for xen_enabled() that went missing in v2
> >>>>>>>>
> >>>>>>>> v4:
> >>>>>>>> - Remove erroneous whitespace hunk
> >>>>>>>> - Replace hw_error() with fprintf()+exit(1)
> >>>>>>>> - Add braces to single-line if
> >>>>>>>
> >>>>>>> can you please offer an opinion in the
> >>>>>>>
> >>>>>>> [PATCH 1/2] pvpanic: initialization cleanup
> >>>>>>> http://thread.gmane.org/gmane.comp.emulators.qemu/216940
> >>>>>>>
> >>>>>>> thread?
> >>>>>>>
> >>>>>>> >From where I stand (which is "quite afar" :)) this series of yours seems
> >>>>>>> somewhat related to my doubt there.
> >>>>>>>
> >>>>>>> Thanks!
> >>>>>>> Laszlo
> >>>>>>
> >>>>>> OK will make it skip fwcfg as we did earlier.
> >>>>>> Thanks for the review.
> >>>>>>
> >>>>>
> >>>>> Yes, I think the assert(fw_cfg) would be problematic in the xen case
> >>> where, up until my patch, machine types was necessarily xenfv.
> >>>>>
> >>>>> Paul
> >>>>
> >>>> Do you guys actually need the pvpanic device?
> >>>> How do you know which port to use without fwcfg?
> >>>
> >>> Xen domains don't know the port and don't use the pvpanic device, but
> >>> qemu starts at least. In other words, the pvpanic device is created, but
> >>> unreachable. Maybe the has_pvpanic logic should depend on (or extended
> >>> with) !xen_enabled().
> >>>
> >>
> >> That seems entirely reasonable to me.
> >
> > We can just skip creating the device if there's no fw cfg.
>
> No, in principle Xen domains could use another scheme to find the port
> (xenstore for example). If Xen domains do not want it, they can just
> add an "if". Or we could just skip the fw_cfg step. The device will be
> there but not ACPI-discoverable.
>
> Paolo
That's a good reason to hide it. We don't want multiple
mechanisms to discover the same feature, it's a
maintainance headache.
For example, if we do this guests might try to use these ports for something
else by mistake. Or they will start hard-coding the port,
then it will break if user tweaks it from command line.
Simply put, if xen wants to use features exposed through fw cfg,
let's add fw cfg support for xen and use let xen use fw cfg to discover
them.
--
MST
prev parent reply other threads:[~2013-06-20 15:12 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-18 11:16 [Qemu-devel] [PATCH 0/2] Remove hardcoded xen-platform device initialization (v4) Paul Durrant
2013-06-18 11:17 ` [Qemu-devel] [PATCH 1/2] Allow use of pc machine type (accel=xen) for Xen HVM domains Paul Durrant
2013-06-20 14:44 ` [Qemu-devel] [Xen-devel] " Stefano Stabellini
2013-06-25 12:01 ` Stefano Stabellini
2013-06-25 12:58 ` Paul Durrant
2013-06-18 11:17 ` [Qemu-devel] [PATCH 2/2] Move hardcoded initialization of xen-platform device Paul Durrant
2013-06-20 14:44 ` [Qemu-devel] [Xen-devel] " Stefano Stabellini
2013-06-18 12:23 ` [Qemu-devel] [PATCH 0/2] Remove hardcoded xen-platform device initialization (v4) Paolo Bonzini
2013-06-18 12:37 ` Laszlo Ersek
2013-06-18 12:51 ` Michael S. Tsirkin
2013-06-18 12:57 ` Paul Durrant
2013-06-18 13:01 ` Michael S. Tsirkin
2013-06-18 13:06 ` Paul Durrant
2013-06-18 13:14 ` Laszlo Ersek
2013-06-18 13:15 ` Paul Durrant
2013-06-18 14:22 ` Michael S. Tsirkin
2013-06-20 15:02 ` Paolo Bonzini
2013-06-20 15:12 ` Michael S. Tsirkin [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=20130620151253.GA18271@redhat.com \
--to=mst@redhat.com \
--cc=Paul.Durrant@citrix.com \
--cc=lersek@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.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 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).