From: "Sebastian Herbszt" Subject: Re: [PATCH] kvm: bios: Put AP boot up code to 0x1000 Date: Thu, 14 Aug 2008 01:00:48 +0200 Message-ID: <049b01c8fd98$90b27550$0201a8c0@zeug> References: <200807311043.20880.sheng.yang@intel.com> <200808010919.00663.sheng.yang@intel.com> <033901c8f4d6$5b972570$0201a8c0@zeug> <200808051614.33138.sheng.yang@intel.com> <02a901c8f80f$940da820$0201a8c0@zeug> <489E9DAC.3030400@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=response Content-Transfer-Encoding: 7bit Cc: "Yang, Sheng" , To: "Avi Kivity" Return-path: Received: from mail.gmx.net ([213.165.64.20]:53566 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754003AbYHMXB6 (ORCPT ); Wed, 13 Aug 2008 19:01:58 -0400 Sender: kvm-owner@vger.kernel.org List-ID: Avi Kivity wrote: >> >> The AP enters HALT state with IF=0. What can make it resume at the >> following "jmp 1b"? NMI? SMI? >> > > Yes, but also INIT. Are you sure the AP will continue after the hlt instruction on INIT? I think it will start to execute code from the reset vector (0xfffffff0). > We might ignore IF=0 for hlt (which would be a bug). > >> I think i read something about a need for 4kb alignment for the >> startup vector in the mp specs. AP_BOOT_ADDR is currently >> at 0x10000 (16 x 4kb). >> > > Yes, the SIPI address is 4K x sipi vector. > - Sebastian