From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M9aB2-0001Aq-Id for qemu-devel@nongnu.org; Thu, 28 May 2009 03:37:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M9aAx-000196-VS for qemu-devel@nongnu.org; Thu, 28 May 2009 03:37:24 -0400 Received: from [199.232.76.173] (port=36354 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M9aAx-00018z-Mj for qemu-devel@nongnu.org; Thu, 28 May 2009 03:37:19 -0400 Received: from mx20.gnu.org ([199.232.41.8]:4104) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M9aAx-0002AH-2X for qemu-devel@nongnu.org; Thu, 28 May 2009 03:37:19 -0400 Received: from mail-ew0-f213.google.com ([209.85.219.213]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M9aAw-0000Hn-BY for qemu-devel@nongnu.org; Thu, 28 May 2009 03:37:18 -0400 Received: by ewy9 with SMTP id 9so4706826ewy.34 for ; Thu, 28 May 2009 00:37:17 -0700 (PDT) Message-ID: <4A1E3F29.6070009@codemonkey.ws> Date: Thu, 28 May 2009 02:37:13 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <4A184C2D.7060205@web.de> In-Reply-To: <4A184C2D.7060205@web.de> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 1/2] kvm: Rework VCPU synchronization List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: qemu-devel Jan Kiszka wrote: > During startup and after reset we have to synchronize user space to the > in-kernel KVM state. Namely, we need to transfer the VCPU registers when > they change due to VCPU as well as APIC reset. > > This patch refactors the required hooks so that kvm_init_vcpu registers > its own per-VCPU reset handler and adds a cpu_synchronize_state to the > APIC reset. That way we no longer depend on the new reset order (and can > drop this disliked interface again) and we can even drop a KVM hook in > main(). > > Signed-off-by: Jan Kiszka > > diff --git a/kvm-all.c b/kvm-all.c > index c89e3b1..1364982 100644 > --- a/kvm-all.c > +++ b/kvm-all.c > @@ -143,6 +143,15 @@ static int kvm_set_user_memory_region(KVMState *s, > KVMSlot *slot) > This patch (this line, in particular) is whitespace damaged. Regards, Anthony Liguori