From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: KVM: x86: remove unused last_kernel_ns variable Date: Thu, 30 Jan 2014 11:58:20 +0100 Message-ID: <52EA304C.7020709@redhat.com> References: <20140129193138.GA3763@amt.cnet> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: Marcelo Tosatti , kvm-devel Return-path: Received: from mail-ea0-f169.google.com ([209.85.215.169]:39206 "EHLO mail-ea0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751836AbaA3K62 (ORCPT ); Thu, 30 Jan 2014 05:58:28 -0500 Received: by mail-ea0-f169.google.com with SMTP id h10so1550994eak.28 for ; Thu, 30 Jan 2014 02:58:27 -0800 (PST) In-Reply-To: <20140129193138.GA3763@amt.cnet> Sender: kvm-owner@vger.kernel.org List-ID: Il 29/01/2014 20:31, Marcelo Tosatti ha scritto: > > Remove unused last_kernel_ns variable. > > Signed-off-by: Marcelo Tosatti > > diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h > index fdf83af..0ffe714 100644 > --- a/arch/x86/include/asm/kvm_host.h > +++ b/arch/x86/include/asm/kvm_host.h > @@ -444,7 +444,6 @@ struct kvm_vcpu_arch { > } st; > > u64 last_guest_tsc; > - u64 last_kernel_ns; > u64 last_host_tsc; > u64 tsc_offset_adjustment; > u64 this_tsc_nsec; > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c > index 0c76f7c..0206b87 100644 > --- a/arch/x86/kvm/x86.c > +++ b/arch/x86/kvm/x86.c > @@ -1565,7 +1565,6 @@ static int kvm_guest_time_update(struct kvm_vcpu *v) > /* With all the info we got, fill in the values */ > vcpu->hv_clock.tsc_timestamp = tsc_timestamp; > vcpu->hv_clock.system_time = kernel_ns + v->kvm->arch.kvmclock_offset; > - vcpu->last_kernel_ns = kernel_ns; > vcpu->last_guest_tsc = tsc_timestamp; > > /* > Applying to kvm/queue, thanks. Paolo