xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Wei Liu <wei.liu2@citrix.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Xen-devel <xen-devel@lists.xenproject.org>,
	Wei Liu <wei.liu2@citrix.com>, Jan Beulich <JBeulich@suse.com>
Subject: Re: [PATCH RFC 2/2] xen: make available hvm_fep to non-debug build as well
Date: Thu, 16 Jun 2016 13:20:55 +0100	[thread overview]
Message-ID: <20160616122055.GR28116@citrix.com> (raw)
In-Reply-To: <f7719257-0808-5189-49b4-220477d373cc@citrix.com>

On Thu, Jun 16, 2016 at 01:12:34PM +0100, Andrew Cooper wrote:
> On 16/06/16 12:52, Wei Liu wrote:
> >
> >>> +        printk("**********************************************\n");
> >>> +        printk("******* WARNING: HVM FORCED EMULATION PREFIX IS PERMITTED\n");
> 
> I would say "available" rather than permitted in this case.
> 
> >>> +        printk("******* This option is *ONLY* intended to aid debugging "
> >>> +               "and testing of Xen\n");
> 
> Despite the line length, I would keep this string on a single line.  If
> you want it a little shorter, you can drop "debugging and", leaving just
> testing.
> 
> >>> +        printk("******* that HVM guest can enter instruction emulator "
> >>> +               "with UD instruction.\n");
> 
> I think this like isn't necessary.  Anyone who is unclear what FEP is
> can look it up.
> 
> >>> +        printk("******* It has implication on the security of the system.\n");
> 
> implications.
> 

All fixed.

> >>> +        printk("******* Please *DO NOT* use this in production.\n");
> >>> +        printk("**********************************************\n");
> >>> +        add_taint(TAINT_HVM_FEP);
> >> Should we perhaps taint the system only the first time a guest
> >> makes use of this?
> >>
> > Doesn't that add overhead to a potential hot path? Arguably it is only
> > setting a bit in a flag, but still...
> 
> FEP is not a fastpath at all.  It would be fine to defer to
> hvm_ud_intercept().
> 

NP.

Wei.

> ~Andrew

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2016-06-16 12:20 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-15 14:31 [PATCH RFC 0/2] Make hvm_fep available to non-debug builds Wei Liu
2016-06-15 14:31 ` [PATCH RFC 1/2] xen/kernel: document 'C' in print_tainted Wei Liu
2016-06-15 14:53   ` Jan Beulich
2016-06-15 14:31 ` [PATCH RFC 2/2] xen: make available hvm_fep to non-debug build as well Wei Liu
2016-06-15 14:39   ` Doug Goldstein
2016-06-15 14:47     ` Wei Liu
2016-06-15 16:12       ` Doug Goldstein
2016-06-15 16:14         ` Wei Liu
2016-06-16 11:37   ` Jan Beulich
2016-06-16 11:52     ` Wei Liu
2016-06-16 12:12       ` Andrew Cooper
2016-06-16 12:20         ` Wei Liu [this message]
2016-06-16 12:31       ` 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=20160616122055.GR28116@citrix.com \
    --to=wei.liu2@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --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 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).