From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5G5k-0004GP-10 for qemu-devel@nongnu.org; Mon, 20 Jan 2014 09:44:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5G5f-0006Ev-0v for qemu-devel@nongnu.org; Mon, 20 Jan 2014 09:44:43 -0500 Received: from mx1.redhat.com ([209.132.183.28]:27962) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5G5e-0006Eq-Nl for qemu-devel@nongnu.org; Mon, 20 Jan 2014 09:44:38 -0500 From: Paolo Bonzini Date: Mon, 20 Jan 2014 15:44:04 +0100 Message-Id: <1390229051-28635-3-git-send-email-pbonzini@redhat.com> In-Reply-To: <1390229051-28635-1-git-send-email-pbonzini@redhat.com> References: <1390229051-28635-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 2/9] target-i386: do not special case TSC writeback List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: gleb@kernel.org, Fernando Luis Vazquez Cao , mtosatti@redhat.com, =?UTF-8?q?Fernando=20Luis=20V=C3=A1zquez=20Cao?= From: Fernando Luis V=C3=A1zquez Cao Newer kernels are capable of synchronizing TSC values of multiple VCPUs on writeback, but we were excluding the power up case, which is not neede= d anymore. Signed-off-by: Fernando Luis Vazquez Cao Signed-off-by: Paolo Bonzini Signed-off-by: Fernando Luis V=C3=A1zquez Cao --- target-i386/kvm.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 01ebca2..312a46b 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -1151,15 +1151,7 @@ static int kvm_put_msrs(X86CPU *cpu, int level) } #endif if (level =3D=3D KVM_PUT_FULL_STATE) { - /* - * KVM is yet unable to synchronize TSC values of multiple VCPUs= on - * writeback. Until this is fixed, we only write the offset to S= MP - * guests after migration, desynchronizing the VCPUs, but avoidi= ng - * huge jump-backs that would occur without any writeback at all. - */ - if (smp_cpus =3D=3D 1 || env->tsc !=3D 0) { - kvm_msr_entry_set(&msrs[n++], MSR_IA32_TSC, env->tsc); - } + kvm_msr_entry_set(&msrs[n++], MSR_IA32_TSC, env->tsc); } /* * The following MSRs have side effects on the guest or are too heav= y --=20 1.8.3.1