From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:49364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXEbL-0001cp-Rz for qemu-devel@nongnu.org; Wed, 23 May 2012 12:39:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SXEbJ-00080X-Oi for qemu-devel@nongnu.org; Wed, 23 May 2012 12:39:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:19331) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXEbJ-000803-GT for qemu-devel@nongnu.org; Wed, 23 May 2012 12:39:53 -0400 From: Igor Mammedov Date: Wed, 23 May 2012 18:39:35 +0200 Message-Id: <1337791181-27446-1-git-send-email-imammedo@redhat.com> Subject: [Qemu-devel] [PATCH qom-next v2 0/6] target-i386: re-factor CPU creation/initialization to QOM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, aliguori@us.ibm.com, wei.liu2@citrix.com, ehabkost@redhat.com, stefano.stabellini@eu.citrix.com, sw@weilnetz.de, mtosatti@redhat.com, agraf@suse.de, blauwirbel@gmail.com, avi@redhat.com, jan.kiszka@siemens.com, anthony.perard@citrix.com, pbonzini@redhat.com, afaerber@suse.de Moving code related to CPU creation and initialization internal parts from board level into apic and cpu objects will allow X86CPU to better model QOM object life-cycle. It will allow to create X86CPU as any other object by creating it with object_new() then setting properties and then calling x86_cpu_realize() to make it running. Later x86_cpu_realize() should become realize property. 1 pc: Enable MSI support at APIC level http://thread.gmane.org/gmane.comp.emulators.kvm.devel/91186 included here to prevent confilict since qom-next doesn't have it but patches 4, 5 are depending on it. I guess it would be best way to avoid confilicts, correct me if I'm wrong. 2 target-i386: move cpu halted decision into x86_cpu_reset 3 target-i386: add cpu-model property to x86_cpu 4 pc: move apic_mapped initialization into common apic init code 5 target-i386: make initialize CPU in QOM way 6 target-i386: move reset callback to cpu.c git tree for testing: https://github.com/imammedo/qemu/tree/x86-cpu-realize-v2 Compile & Run tested: target-i386: tcg and kvm mode i386-linux-user: running of /bin/ls and /usr/bin/make on qemu tree