All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: "You, Yongkang" <yongkang.you@intel.com>
Cc: Atsushi SAKAI <sakaia@jp.fujitsu.com>,
	xen-devel@lists.xensource.com, ?????? <kouya@jp.fujitsu.com>,
	Christian.Limpach@cl.cam.ac.uk
Subject: Re: Should Qemu monitor be enabled by default
Date: Thu, 12 Apr 2007 16:38:31 +0100	[thread overview]
Message-ID: <20070412153831.GM4393@redhat.com> (raw)
In-Reply-To: <094BCE01AFBE9646AF220B0B3F367AABCD9F85@pdsmsx413.ccr.corp.intel.com>

On Thu, Apr 12, 2007 at 02:40:23PM +0800, You, Yongkang wrote:
> Hi Christian,
> 
> We worked out a simple patch and tried it well. Please apply. 

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

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.

For the timescales involved in 3.0.5 I think we should instead make sure
that 'xm block-configure' works correctly.

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  -=| 

  reply	other threads:[~2007-04-12 15:38 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 [this message]
2007-04-12 16:09               ` You, Yongkang
2007-04-12 20:40               ` Christian Limpach
2007-04-12 20:51                 ` Daniel P. Berrange
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=20070412153831.GM4393@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.