KVM: i8254: pass struct kvm_pit instead of kvm in PIT
authorRadim Krčmář <rkrcmar@redhat.com>
Wed, 2 Mar 2016 21:56:43 +0000 (22:56 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 4 Mar 2016 08:29:55 +0000 (09:29 +0100)
commit09edea72b7f9fd8a8d26c1f7504d989b9773ee5e
tree41d3482e71883d6ebabce616bc91c8d6d982da9c
parentb69d920f68b119bdc0483f0c33d34fd0c57724f5
KVM: i8254: pass struct kvm_pit instead of kvm in PIT

This patch passes struct kvm_pit into internal PIT functions.
Those functions used to get PIT through kvm->arch.vpit, even though most
of them never used *kvm for other purposes.  Another benefit is that we
don't need to set kvm->arch.vpit during initialization.

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/i8254.c
arch/x86/kvm/i8254.h
arch/x86/kvm/x86.c