From: Tim Deegan Subject: Re: [PATCH 1/4] x86/HVM: replace plain number in hvm_combine_hw_exceptions() Date: Thu, 22 Jan 2015 15:42:09 +0100 Message-ID: <20150122144209.GA98445@deinos.phlegethon.org> References: <54C10EE1020000780005827E@mail.emea.novell.com> <54C10FCD0200007800058291@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YEIxY-0000j9-4I for xen-devel@lists.xenproject.org; Thu, 22 Jan 2015 14:42:12 +0000 Content-Disposition: inline In-Reply-To: <54C10FCD0200007800058291@mail.emea.novell.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: Jan Beulich Cc: xen-devel , Keir Fraser , Andrew Cooper List-Id: xen-devel@lists.xenproject.org At 13:57 +0000 on 22 Jan (1421931437), Jan Beulich wrote: > While doing so also take care of #VE here (even if we don't make use of > it yet). > > Signed-off-by: Jan Beulich > > --- a/xen/arch/x86/hvm/hvm.c > +++ b/xen/arch/x86/hvm/hvm.c > @@ -205,6 +205,16 @@ int hvm_event_needs_reinjection(uint8_t > */ > uint8_t hvm_combine_hw_exceptions(uint8_t vec1, uint8_t vec2) > { > + const unsigned int contributory_exceptions = > + (1 << TRAP_divide_error) | > + (1 << TRAP_invalid_tss) | > + (1 << TRAP_no_segment) | > + (1 << TRAP_stack_error) | > + (1 << TRAP_gp_fault); == 0x3c01, i.e. TRAP_page_fault has gone missing. AFAICS that's correct, but please mention it in the patch description. Cheers, Tim.