From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [patch 1/3] QEMU/KVM: x86: separate TSC load from kvm_arch_load_regs Date: Wed, 10 Dec 2008 12:10:47 +0200 Message-ID: <493F95A7.9050208@redhat.com> References: <20081209011247.570596925@localhost.localdomain> <20081209012212.014302332@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, Benjamin Serebrin To: Marcelo Tosatti Return-path: Received: from mx2.redhat.com ([66.187.237.31]:53440 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754560AbYLJKKx (ORCPT ); Wed, 10 Dec 2008 05:10:53 -0500 In-Reply-To: <20081209012212.014302332@localhost.localdomain> Sender: kvm-owner@vger.kernel.org List-ID: Marcelo Tosatti wrote: > kvm_load_registers is a general interface to load registers, and is > used by vmport, gdbstub, etc. The TSC MSR is continually counting, so > it can't be simply read and written back as the other registers/MSR's > (doing so overwrites the current count). > > Introduce kvm_load_tsc and use it for x86's migration CPU load code. > --- /dev/null > +++ kvm-userspace.tip/qemu/qemu-kvm-x86.h > @@ -0,0 +1,13 @@ > +/* > + * qemu/kvm integration > + * > + * Copyright (C) 2006-2008 Qumranet Technologies > Qumranet is no more. But please drop this header and just put the declaration in qemu-kvm.h. We're merging it anyway into qemu upstream and this is just more more thing we'll need to drop. -- error compiling committee.c: too many arguments to function