From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NF6M6-0001d6-JW for qemu-devel@nongnu.org; Mon, 30 Nov 2009 08:31:54 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NF6M1-0001ar-Rf for qemu-devel@nongnu.org; Mon, 30 Nov 2009 08:31:54 -0500 Received: from [199.232.76.173] (port=57104 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NF6M1-0001aj-L3 for qemu-devel@nongnu.org; Mon, 30 Nov 2009 08:31:49 -0500 Received: from mail-pz0-f188.google.com ([209.85.222.188]:33965) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NF6M1-0008Oy-7J for qemu-devel@nongnu.org; Mon, 30 Nov 2009 08:31:49 -0500 Received: by pzk26 with SMTP id 26so2261132pzk.4 for ; Mon, 30 Nov 2009 05:31:48 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <4B13B4FE.4040107@redhat.com> References: <1259256300-23937-1-git-send-email-glommer@redhat.com> <1259256300-23937-2-git-send-email-glommer@redhat.com> <1259256300-23937-3-git-send-email-glommer@redhat.com> <1259256300-23937-4-git-send-email-glommer@redhat.com> <1259256300-23937-5-git-send-email-glommer@redhat.com> <1259256300-23937-6-git-send-email-glommer@redhat.com> <4B129425.8090006@redhat.com> <5d6222a80911300345w3df34c9bvad12344df484d935@mail.gmail.com> <4B13B4FE.4040107@redhat.com> Date: Mon, 30 Nov 2009 11:31:48 -0200 Message-ID: <5d6222a80911300531s749872aew2caebe2d192a1eca@mail.gmail.com> Subject: Re: [Qemu-devel] [PATCH 5/7] tell kernel about all registers instead of just mp_state From: Glauber Costa Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Glauber Costa , aliguori@us.ibm.com, qemu-devel@nongnu.org On Mon, Nov 30, 2009 at 10:05 AM, Avi Kivity wrote: > On 11/30/2009 01:45 PM, Glauber Costa wrote: >>> >>> Better to use cpu_synchronize_state() instead. >>> >>> >> >> I might be misreading it, but : >> >> void kvm_cpu_synchronize_state(CPUState *env) >> { >> =C2=A0 =C2=A0 if (!env->kvm_state->regs_modified) { >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 kvm_arch_get_registers(env); >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 env->kvm_state->regs_modified =3D 1; >> =C2=A0 =C2=A0 } >> } >> >> Only does get. And we need put. >> > > It will autoput during the next guest entry. So it should be working already, no? We do a cpu_synchronize_state() on the beginning of that function, and vcpu does not run until it is finished. > > -- > error compiling committee.c: too many arguments to function > > --=20 Glauber Costa. "Free as in Freedom" http://glommer.net "The less confident you are, the more serious you have to act."