From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=53690 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLaHM-00037E-44 for qemu-devel@nongnu.org; Thu, 25 Nov 2010 06:46:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PLaHK-0005Mc-Jt for qemu-devel@nongnu.org; Thu, 25 Nov 2010 06:46:19 -0500 Received: from david.siemens.de ([192.35.17.14]:22150) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PLaHK-0005MP-BD for qemu-devel@nongnu.org; Thu, 25 Nov 2010 06:46:18 -0500 Message-ID: <4CEE4C85.9020200@siemens.com> Date: Thu, 25 Nov 2010 12:46:13 +0100 From: Jan Kiszka MIME-Version: 1.0 References: <9E1995D5-0971-4B80-93AF-85315045C6D2@suse.de> <6F3766C8-F8D4-4468-8F6E-7168E3578805@suse.de> In-Reply-To: <6F3766C8-F8D4-4468-8F6E-7168E3578805@suse.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [Patch] Small fix for qemu APIC for Mac OS X support List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: adq , qemu-devel@nongnu.org Am 24.11.2010 12:00, Alexander Graf wrote: >>>> According to to the Intel IA-32 Software Developers Manual Vol 3 page >>>> 290, the version should be 0x14 Pentium 4/Xeon CPUs anyway. >>>> >>>> Signed-off-by: Andrew de Quincey >>>> >>>> diff --git a/hw/apic.c b/hw/apic.c >>>> index 5f4a87c..20304e0 100644 >>>> --- a/hw/apic.c >>>> +++ b/hw/apic.c >>>> @@ -704,7 +704,7 @@ static uint32_t apic_mem_readl(void *opaque, >>>> target_phys_addr_t addr) >>>> val = s->id << 24; >>>> break; >>>> case 0x03: /* version */ >>>> - val = 0x11 | ((APIC_LVT_NB - 1) << 16); /* version 0x11 */ >>>> + val = 0x14 | ((APIC_LVT_NB - 1) << 16); /* version 0x14 */ >>> >>> What exactly changed between the versions? Did new registers get introduced or subtle behavior change? Is there some proper documentation on the changed between the apic versions? >> >> I've been trying to find out; I'm still searching intel's docs to find >> an 0x11 version to compare with :( > > Please try very hard. I haven't found anything myself either yet, but without a spec it's hard to justify these changes upstream :(. > >> The failure mode is that mac os X SL whines about the APIC being an >> unexpected version (0x11) and it wants 0x14 as a minimum. > > Yup, I remember that issue. To really make this all useful, we also need to change the numbers in KVM though. Also, the version has to be set depending on the emulated CPU (even more when there will be emulation differences). Jan -- Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux