From: "Daniel P. Berrange" <berrange@redhat.com>
To: Christian.Limpach@cl.cam.ac.uk
Cc: Atsushi SAKAI <sakaia@jp.fujitsu.com>,
xen-devel@lists.xensource.com, "You,
Yongkang" <yongkang.you@intel.com>, ?????? <kouya@jp.fujitsu.com>
Subject: Re: Should Qemu monitor be enabled by default
Date: Thu, 12 Apr 2007 21:51:27 +0100 [thread overview]
Message-ID: <20070412205127.GC19956@redhat.com> (raw)
In-Reply-To: <3d8eece20704121340n7ba9b2a9nb67f55eb598019@mail.gmail.com>
On Thu, Apr 12, 2007 at 09:40:26PM +0100, Christian Limpach wrote:
> On 4/12/07, Daniel P. Berrange <berrange@redhat.com> wrote:
> >This part of the patch does not look correct:
> >
> >-- a/tools/python/xen/xend/image.py Thu Apr 12 13:18:08 2007 +0100
> >+++ b/tools/python/xen/xend/image.py Thu Apr 12 13:21:26 2007 +0100
> >@@ -415,6 +415,8 @@ class HVMImageHandler(ImageHandler):
> > else:
> > ret.append('-nographic')
> >
> >+ if int(vmConfig['platform'].get('monitor', 0)) != 0:
> >+ ret.append('-monitor vc')
> > return ret
> >
> > def createDeviceModel(self, restore = False):
> >
> >The '-monitor vc' is already the default for QEMU, so both branches of
> >that if end up reducing to the same functional state - the monitor being
> >enabled. You need to explicitly disable the monitor if the config file
> >has monitor=0
>
> No, the monitor in qemu is off by default, the patch is correct as is.
Is that a recent Xen-specific change to QEMU ? The regular QEMU has always
had the monitor on by default - and its on by default in Xen 3.0.3/4 :
http://fabrice.bellard.free.fr/qemu/qemu-doc.html#SEC10
"-monitor dev
Redirect the monitor to host device dev (same devices as the serial port).
The default device is vc in graphical mode and stdio in non graphical mode."
> >I'm not sure this patch is a good idea long term though. If, as Anthony
> >suggests in previous thread, XenD takes control of the monitor and provides
> >an explicit 'xm monitor' command, then it'll be impossible to also make
> >the monitor also appear on a VC.
> >
> >This also doesn't address the issue that making the monitor appear on a
> >VC is fundamentally a security risk and so can never be enabled in any
> >production environment where you care about integrity of the Dom0 host.
> >I don't see the point in introducing a config file setting which will
> >have to go away once a sustainable 'xm monitor' patch is implemented.
>
> Why shouldn't both co-exist? You can have either monitor=pty or
> monitor=vc. This is how serial ports work already.
What I mean is that if we wanted to implement a 'xm monitor' command,
then XenD would need to launch QEMU with '-monitor pty' (or equivalent)
at which point you'd be unable to also have '-monitor vc' on the same
command line.
> >For the timescales involved in 3.0.5 I think we should instead make sure
> >that 'xm block-configure' works correctly.
>
> How does it not work correctly?
I've not had any trouble with it myself, but I've not tested it much.
I was refering to the earlier mail in this thread
http://lists.xensource.com/archives/html/xen-devel/2007-04/msg00222.html
where Nishi indicated his motivation for wanting access to the monitor
via a VC was that block-configure wasn't reliable.
Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=|
|=- Perl modules: http://search.cpan.org/~danberr/ -=|
|=- Projects: http://freshmeat.net/~danielpb/ -=|
|=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
next prev parent reply other threads:[~2007-04-12 20:51 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-10 3:35 Should Qemu monitor be enabled by default You, Yongkang
2007-04-10 5:34 ` You, Yongkang
2007-04-10 9:22 ` Keir Fraser
2007-04-10 9:32 ` Christian Limpach
2007-04-10 9:53 ` You, Yongkang
2007-04-10 10:00 ` Christian Limpach
2007-04-10 12:50 ` Hidetoshi Nishi
2007-04-11 8:02 ` Atsushi SAKAI
2007-04-11 9:24 ` Christian Limpach
2007-04-11 11:06 ` Atsushi SAKAI
2007-04-11 11:32 ` Atsushi SAKAI
2007-04-11 12:10 ` Christian Limpach
2007-04-12 6:40 ` You, Yongkang
2007-04-12 15:38 ` Daniel P. Berrange
2007-04-12 16:09 ` You, Yongkang
2007-04-12 20:40 ` Christian Limpach
2007-04-12 20:51 ` Daniel P. Berrange [this message]
2007-04-12 21:00 ` Christian Limpach
2007-04-12 21:04 ` Daniel P. Berrange
2007-04-12 20:53 ` Christian Limpach
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=20070412205127.GC19956@redhat.com \
--to=berrange@redhat.com \
--cc=Christian.Limpach@cl.cam.ac.uk \
--cc=kouya@jp.fujitsu.com \
--cc=sakaia@jp.fujitsu.com \
--cc=xen-devel@lists.xensource.com \
--cc=yongkang.you@intel.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.