From: Keir Fraser Subject: Re: APIC handling on x86-64 Date: Mon, 20 Mar 2006 16:00:04 +0000 Message-ID: <4df16aae5b0f18a2dcc9035b5a0c3fb6@cl.cam.ac.uk> References: <441EB3F20200007800013DC5@emea1-mh.id2.novell.com> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <441EB3F20200007800013DC5@emea1-mh.id2.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich Cc: Xen Developers List-Id: xen-devel@lists.xenproject.org On 20 Mar 2006, at 13:53, Jan Beulich wrote: > Hmm, I'm not sure. Both because it wouldn't address all issues (the > I/O APIC redirection table entries also need to be programmed in > physical mode) and because I'm not so certain about legacy 32-bit > issues (on 32-bits you still have to account for the PentiumPro/II/III > behavior, namely the only 4-bit wide IDs, as that at least seems to > imply different cut-off criteria for the decision what destination mode > to use). We can just steal x86/64 phys cluster code for summit. ES7000 already has its own phys cluster code that doesn't look like it will have this issue, Bigsmp uses phys flat, and Default uses logical flat. So summit is the only subarch that needs fixing. Xen's io_apic.c will program logical/phys dest mode appropriately (although it's taken from i386 io_apic.c, those parts of the i386 file are identical to x86/64 io_apic.c). I'd also like to fix send_IPI_mask_sequence() to use physical destination mode. It scares me a bit that 2.6.16 native i386 bigsmp mode uses physical flat model, but uses send_IPI_mask_sequence with logical delivery. Seems weird to me. Both this and the summit fix will be after 3.0.2 now. -- Keir