From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoaJ5-00076W-HN for qemu-devel@nongnu.org; Tue, 10 Jul 2012 09:16:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SoaIz-0001YC-6Y for qemu-devel@nongnu.org; Tue, 10 Jul 2012 09:16:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoaIy-0001Y3-Ut for qemu-devel@nongnu.org; Tue, 10 Jul 2012 09:16:41 -0400 From: Igor Mammedov Date: Tue, 10 Jul 2012 15:15:50 +0200 Message-Id: <1341926152-541-1-git-send-email-imammedo@redhat.com> Subject: [Qemu-devel] [PATCH 0/2 v2] target-i386: refactor reset handling and move it into cpu.c List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, ehabkost@redhat.com, jan.kiszka@siemens.com, mtosatti@redhat.com, mdroth@linux.vnet.ibm.com, blauwirbel@gmail.com, avi@redhat.com, pbonzini@redhat.com, afaerber@suse.de v2: ommited moving of x86_cpu_realize() from cpu_x86_init() to pc_new_cpu(), to keep cpu_init implementation in -softmmu and -user targets the same in single place and maintanable. tree for testing: https://github.com/imammedo/qemu/tree/x86_reset comiple & run tested with x86_64-linux-user, x86_64-softmmu targets Igor Mammedov (2): target-i386: move cpu halted decision into x86_cpu_reset target-i386: move cpu_reset and reset callback to cpu.c hw/apic.h | 2 +- hw/apic_common.c | 20 ++++++++++++++------ hw/pc.c | 18 +----------------- target-i386/cpu.c | 25 +++++++++++++++++++++++++ target-i386/helper.c | 1 - target-i386/kvm.c | 5 +++-- 6 files changed, 44 insertions(+), 27 deletions(-)