Skip to contentSkip to conversation

KVM: x86: remove unused last_kernel_ns variable

PATCH Marcelo Tosatti 2 participants 2 messages Jan 29, 2014 – Jan 30, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Remove unused last_kernel_ns variable.

arch/x86/include/asm/kvm_host.h +0 -1
index fdf83af..0ffe714 100644
@@ -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;
arch/x86/kvm/x86.c +0 -1
index 0c76f7c..0206b87 100644
@@ -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;
 
 	/*
maintainer
#1 lore raw

Il 29/01/2014 20:31, Marcelo Tosatti ha scritto:

Quoted 23 lines

Remove unused last_kernel_ns variable.

arch/x86/include/asm/kvm_host.h +0 -1
index fdf83af..0ffe714 100644
@@ -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;
arch/x86/kvm/x86.c +0 -0
index 0c76f7c..0206b87 100644

arch/x86/kvm/x86.c static int kvm_guest_time_update(struct kvm_vcpu *v) · line 1570

Quoted 7 lines
arch/x86/kvm/x86.c +0 -1
@@ -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