xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Kevin Tian <kevin.tian@intel.com>, Keir Fraser <keir@xen.org>,
	Tim Deegan <tim@xen.org>, Eddie Dong <eddie.dong@intel.com>,
	Xen-devel <xen-devel@lists.xen.org>,
	Jun Nakajima <jun.nakajima@intel.com>
Subject: Re: [PATCH for-4.5 2/2] x86/hvm: Improve "Emulation failed @" error messages
Date: Fri, 26 Sep 2014 14:16:51 +0100	[thread overview]
Message-ID: <54256743.7050808@citrix.com> (raw)
In-Reply-To: <542580E20200007800039AC0@mail.emea.novell.com>

On 26/09/14 14:06, Jan Beulich wrote:
>>>> On 26.09.14 at 14:57, <andrew.cooper3@citrix.com> wrote:
>> On 26/09/14 13:41, Tim Deegan wrote:
>>> At 13:09 +0100 on 26 Sep (1411733364), Andrew Cooper wrote:
>>>> As identified in the other thread, "16bit" is misleading as the
>>>> instruction bytes are actually 32bit code in a 16bit segment.
>>>>
>>>> I am not sure what the best solution here is.  Perhaps we can trust
>>>> anyone capable of interpreting this error to know that "16b" != "Real"
>>>> or "v86" when it comes to decoding the instruction.
>>> Hmm.  I can see that 16bit is a bit misleading if you don't
>>> know/remember that vm86 and real mode would be reported as such.  OTOH
>>> that is infomration that's needed for decoding -- the instruction will
>>> have 16bit operands and addresses even though it uses 32bit registers
>>> and protected segments.
>>>
>>> Maybe we should report it as '16bit protected' or similar?
>> How about following the convention at http://sandpile.org/x86/mode.htm ?
>>
>> Currently, we can distinguish between RM16, VM16, (P/C)M{16,32} and
>> PM64, which is good enough for decoding the bytes correctly.
>>
>> Alternatively, we could extend {vmx,svm}_guest_x86_mode() to provide a
>> rather more complete enum of processor modes and cover the other cases?
> None of this is relevant for instruction decoding. Even the 16-bit
> protected / real / vm86 mode distinction is relevant there, that's
> only useful as additional context.

I presume you mean "is irrelevant there" ?

The question is whether we want to provide more or less context.

For now, I will move to just 16/32/64bit as it is the simpler course of
action.  More context can easily be added in the future, as extending
???_guest_x86_mode() will be quite invasive and we are currently in a
code freeze.

~Andrew

  reply	other threads:[~2014-09-26 13:16 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-26 10:10 [PATCH for-4.5 0/2] Improve "Emulation failed" error message Andrew Cooper
2014-09-26 10:10 ` [PATCH for-4.5 1/2] xen/vsprintf: Introduce %*ph extended format specifier for hex buffers Andrew Cooper
2014-09-26 11:32   ` Jan Beulich
2014-09-26 12:16     ` Andrew Cooper
2014-09-26 12:31       ` Jan Beulich
2014-09-26 12:32         ` Andrew Cooper
2014-09-26 11:49   ` Tim Deegan
2014-09-26 11:57     ` Jan Beulich
2014-09-26 10:10 ` [PATCH for-4.5 2/2] x86/hvm: Improve "Emulation failed @" error messages Andrew Cooper
2014-09-26 11:39   ` Jan Beulich
2014-09-26 12:04     ` Andrew Cooper
2014-09-26 12:36       ` Jan Beulich
2014-09-26 12:53         ` Andrew Cooper
2014-09-26 12:05   ` Tim Deegan
2014-09-26 12:09     ` Andrew Cooper
2014-09-26 12:41       ` Tim Deegan
2014-09-26 12:57         ` Andrew Cooper
2014-09-26 13:06           ` Jan Beulich
2014-09-26 13:16             ` Andrew Cooper [this message]
2014-09-26 13:32               ` Jan Beulich
2014-09-26 14:15 ` [PATCH for-4.5 0/2] Improve "Emulation failed" error message Konrad Rzeszutek Wilk

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=54256743.7050808@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=eddie.dong@intel.com \
    --cc=jun.nakajima@intel.com \
    --cc=keir@xen.org \
    --cc=kevin.tian@intel.com \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xen.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).