]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: x86: Kill cur_tsc_{nsec,offset,write} fields
authorDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 26 Apr 2024 17:24:10 +0000 (18:24 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 4 Jun 2024 10:31:46 +0000 (11:31 +0100)
commit767d5e71e259cd515eae697a97b1af248e332d8d
treeaf1bffd746a52468b7ea1db3bbbe4b18a9ded933
parent8e9d28bef3b69c25557925882b35e2b94bf19e3b
KVM: x86: Kill cur_tsc_{nsec,offset,write} fields

These pointlessly duplicate the last_tsc_{nsec,offset,write} values.

The only place they were used was where the TSC is stable and a new vCPU
is being synchronized to the previous setting, in which case the 'last_'
value is definitely identical.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/x86.c