From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:53542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJoXY-0008PF-5D for qemu-devel@nongnu.org; Thu, 04 Oct 2012 12:44:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJoXS-00085r-Fr for qemu-devel@nongnu.org; Thu, 04 Oct 2012 12:44:48 -0400 Received: from thoth.sbs.de ([192.35.17.2]:23138) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJoXS-00085U-5l for qemu-devel@nongnu.org; Thu, 04 Oct 2012 12:44:42 -0400 Message-ID: <506DBCF6.9030000@siemens.com> Date: Thu, 04 Oct 2012 18:44:38 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <1349361818-15331-1-git-send-email-imammedo@redhat.com> In-Reply-To: <1349361818-15331-1-git-send-email-imammedo@redhat.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] target-i386: initialize APIC at CPU level List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: aliguori@us.ibm.com, ehabkost@redhat.com, gleb@redhat.com, Don@CloudSwitch.com, qemu-devel@nongnu.org, afaerber@suse.de On 2012-10-04 16:43, Igor Mammedov wrote: > + /* XXX: mapping more APICs at the same memory location */ > + if (apic_mapped == 0) { > + /* NOTE: the APIC is directly connected to the CPU - it is not > + on the global memory bus. */ > + /* XXX: what if the base changes? */ > + sysbus_mmio_map(sysbus_from_qdev(env->apic_state), 0, MSI_ADDR_BASE); > + apic_mapped = 1; > + } > + > + return; Unneeded return. Jan > +#endif > +} > + > void x86_cpu_realize(Object *obj, Error **errp) > { > X86CPU *cpu = X86_CPU(obj); > @@ -1878,6 +1934,8 @@ void x86_cpu_realize(Object *obj, Error **errp) > qemu_register_reset(x86_cpu_machine_reset_cb, cpu); > #endif > > + x86_cpu_apic_init(cpu, errp); > + > mce_init(cpu); > qemu_init_vcpu(&cpu->env); > cpu_reset(CPU(cpu)); > -- Siemens AG, Corporate Technology, CT RTC ITP SDP-DE Corporate Competence Center Embedded Linux