From: Daniel De Graaf <dgdegra@tycho.nsa.gov>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel@lists.xenproject.org, Keir Fraser <keir@xen.org>,
ian.campbell@citrix.com
Subject: Re: [PATCH] hvm: Allow HVM guests to make console_io hypercall.
Date: Mon, 30 Sep 2013 10:04:58 -0400 [thread overview]
Message-ID: <5249850A.4030306@tycho.nsa.gov> (raw)
In-Reply-To: <52494CA902000078000F7E5B@nat28.tlf.novell.com>
On 09/30/2013 04:04 AM, Jan Beulich wrote:
>>>> On 27.09.13 at 23:17, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:
>> The console_io hypercall is provided for PV guests and for HVM
>> guests it is done via the 0xe9 port. However the PV hypercall
>> is more efficient as it takes a string rather than one character
>> per write.
>
> While the change itself is fine, there are two questions arising
> from me looking at do_console_io() in this context:
>
> 1) While I can see why VERBOSE ought to control access to
> CONSOLEIO_write, I would think CONSOLEIO_read ought to be
> constrained to the control domain in any case.
I agree on read. Do we still need the restriction on write with
non-VERBOSE builds now that domains' output is restricted to the
guest debug loglevel? I recall this being discussed briefly when
the output changes were being made, but I believe the decision
was only that such a change belonged in a different patch.
> 2) xsm_console_io(), like quite a few other stubs in xsm/dummy.h,
> ignores its "d" parameter and uses current->domain instead. Is
> that really the right way (and if so, why are there other stubs
> that do honor their inputs)?
>
> Jan
No, this is incorrect - it should be using the parameter, same as
any of the other stubs that have a parameter that is always set
to current->domain.
--
Daniel De Graaf
National Security Agency
next prev parent reply other threads:[~2013-09-30 14:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-27 21:17 [PATCH] hvm: Allow HVM guests to make console_io hypercall Konrad Rzeszutek Wilk
2013-09-30 8:04 ` Jan Beulich
2013-09-30 14:04 ` Daniel De Graaf [this message]
2013-09-30 15:26 ` Jan Beulich
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=5249850A.4030306@tycho.nsa.gov \
--to=dgdegra@tycho.nsa.gov \
--cc=JBeulich@suse.com \
--cc=ian.campbell@citrix.com \
--cc=keir@xen.org \
--cc=xen-devel@lists.xenproject.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.