KVM: i8254: add kvm_pit_reset_reinject
authorRadim Krčmář <rkrcmar@redhat.com>
Wed, 2 Mar 2016 21:56:40 +0000 (22:56 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 4 Mar 2016 08:29:43 +0000 (09:29 +0100)
commitfd700a00dc2e821be92b0b56fd5d8ebf8c63f9ba
tree6caefdf1838286fc32377bd65794f086f82ffdad
parentf6e0a0c113f78a0e13c69762b2ab342d6c69220d
KVM: i8254: add kvm_pit_reset_reinject

pit_state.pending and pit_state.irq_ack are always reset at the same
time.  Create a function for them.

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