From: Tim Deegan Subject: Re: [PATCH for-4.5 2/2] x86/hvm: Improve "Emulation failed @" error messages Date: Fri, 26 Sep 2014 14:05:45 +0200 Message-ID: <20140926120545.GB35563@deinos.phlegethon.org> References: <1411726207-2689-1-git-send-email-andrew.cooper3@citrix.com> <1411726207-2689-3-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1411726207-2689-3-git-send-email-andrew.cooper3@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Kevin Tian , Keir Fraser , Jan Beulich , Eddie Dong , Xen-devel , Jun Nakajima List-Id: xen-devel@lists.xenproject.org At 11:10 +0100 on 26 Sep (1411726207), Andrew Cooper wrote: > +static const char *guest_x86_mode_to_str(int mode) > +{ > + switch ( mode ) > + { > + case 0: > + return "Real"; > + case 1: > + return "v8086"; > + case 2: return "16bit"? Otherwise, Reviewed-by: Tim Deegan While you're respinning, could you also shorten all of these strings (e.g. to real/vm86/16b/32b/64b), and trim the rest of the line, something like: (d1) MMIO emulation failed: d1v0 64b @ 0008:ffff82d080102fea: 48 63 8d 40 ff ff ff You can keep the reviewed-by regardless of whatever cosmetic changes. Cheers, Tim. > + case 4: > + return "32bit"; > + case 8: > + return "64bit"; > + default: > + return "Unknown";