[PATCH RFC V3 3/6] KVM: LAPIC: introduce set_target_expiration() to set target expiration time

2016-10-13 Thread Wanpeng Li
From: Wanpeng Li Introduce set_target_expiration() to set target expiration time which is when LVTT current-count register counts down to zero and a timer interrupt is generated. Cc: Paolo Bonzini Cc: Radim Krčmář Cc: Yunhong

[PATCH RFC V3 3/6] KVM: LAPIC: introduce set_target_expiration() to set target expiration time

2016-10-13 Thread Wanpeng Li
From: Wanpeng Li Introduce set_target_expiration() to set target expiration time which is when LVTT current-count register counts down to zero and a timer interrupt is generated. Cc: Paolo Bonzini Cc: Radim Krčmář Cc: Yunhong Jiang Signed-off-by: Wanpeng Li --- arch/x86/kvm/lapic.c | 47