From: "Jan Beulich" Subject: Re: [PATCH RFC 5/9] x86/traps: Functional prep work Date: Thu, 15 May 2014 11:36:02 +0100 Message-ID: <5374B4B202000078000128F6@mail.emea.novell.com> References: <1400147299-31772-1-git-send-email-andrew.cooper3@citrix.com> <1400147299-31772-6-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1400147299-31772-6-git-send-email-andrew.cooper3@citrix.com> Content-Disposition: inline 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: Tim Deegan , Keir Fraser , Xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 15.05.14 at 11:48, wrote: > --- a/xen/arch/x86/setup.c > +++ b/xen/arch/x86/setup.c > @@ -558,6 +558,12 @@ void __init noreturn __start_xen(unsigned long mbi_p) > .stop_bits = 1 > }; > > + set_processor_id(0); > + set_current((struct vcpu *)0xfffff000); /* debug sanity */ > + this_cpu(curr_vcpu) = idle_vcpu[0] = current; The this_cpu() part wasn't there in the original code - is that really needed, and ... > + > + sort_exception_tables(); > + > percpu_init_areas(); ... is that really safe/meaningful before this function got called? Jan