From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:38592) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URl5C-0006d1-CB for qemu-devel@nongnu.org; Mon, 15 Apr 2013 11:12:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URl5A-0004lA-Q2 for qemu-devel@nongnu.org; Mon, 15 Apr 2013 11:12:38 -0400 Received: from cantor2.suse.de ([195.135.220.15]:47289 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URl5A-0004l4-K7 for qemu-devel@nongnu.org; Mon, 15 Apr 2013 11:12:36 -0400 Message-ID: <516C18E2.7090101@suse.de> Date: Mon, 15 Apr 2013 17:12:34 +0200 From: =?ISO-8859-15?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <1365691918-30594-1-git-send-email-imammedo@redhat.com> <1365691918-30594-3-git-send-email-imammedo@redhat.com> In-Reply-To: <1365691918-30594-3-git-send-email-imammedo@redhat.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 02/19] cpu: Pass CPUState to *cpu_synchronize_post*() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: aliguori@us.ibm.com, ehabkost@redhat.com, claudio.fontana@huawei.com, qemu-devel@nongnu.org, aderumier@odiso.com, lcapitulino@redhat.com, jfrei@linux.vnet.ibm.com, yang.z.zhang@intel.com, pbonzini@redhat.com, lig.fnst@cn.fujitsu.com, rth@twiddle.net Am 11.04.2013 16:51, schrieb Igor Mammedov: > ... so it could be called from without requiring CPUArchState >=20 > Signed-off-by: Igor Mammedov > Reviewed-by: Eduardo Habkost Thanks a lot, applied to qom-cpu (with one change below): https://github.com/afaerber/qemu-cpu/commits/qom-cpu I believe this is the missing prerequisite to cleaning up after my monitor qemu_get_cpu() patch. > diff --git a/kvm-stub.c b/kvm-stub.c > index 760aadc..82875dd 100644 > --- a/kvm-stub.c > +++ b/kvm-stub.c > @@ -42,11 +42,11 @@ void kvm_cpu_synchronize_state(CPUArchState *env) > { > } > =20 > -void kvm_cpu_synchronize_post_reset(CPUArchState *env) > +void kvm_cpu_synchronize_post_reset(CPUState *env) Renamed argument to cpu for consistency. > { > } > =20 > -void kvm_cpu_synchronize_post_init(CPUArchState *env) > +void kvm_cpu_synchronize_post_init(CPUState *cpu) > { > } > =20 Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrnbe= rg