diff options
author | Sheng Yang <sheng.yang@intel.com> | 2008-03-03 11:50:59 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-04-27 05:00:22 -0400 |
commit | e0f63cb9277b64850854aee301762beeeb463473 (patch) | |
tree | ae10bac92ee6cc1a658b479a311fac67ebd3524c /arch/x86/kvm/i8254.c | |
parent | 7837699fa6d7adf81f26ab73a5f6897ea1ab9d6a (diff) |
KVM: Add save/restore supporting of in kernel PIT
Signed-off-by: Sheng Yang <sheng.yang@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'arch/x86/kvm/i8254.c')
-rw-r--r-- | arch/x86/kvm/i8254.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/kvm/i8254.c b/arch/x86/kvm/i8254.c index c7435093bbee..8642f9d1206a 100644 --- a/arch/x86/kvm/i8254.c +++ b/arch/x86/kvm/i8254.c | |||
@@ -288,6 +288,13 @@ static void pit_load_count(struct kvm *kvm, int channel, u32 val) | |||
288 | } | 288 | } |
289 | } | 289 | } |
290 | 290 | ||
291 | void kvm_pit_load_count(struct kvm *kvm, int channel, u32 val) | ||
292 | { | ||
293 | mutex_lock(&kvm->arch.vpit->pit_state.lock); | ||
294 | pit_load_count(kvm, channel, val); | ||
295 | mutex_unlock(&kvm->arch.vpit->pit_state.lock); | ||
296 | } | ||
297 | |||
291 | static void pit_ioport_write(struct kvm_io_device *this, | 298 | static void pit_ioport_write(struct kvm_io_device *this, |
292 | gpa_t addr, int len, const void *data) | 299 | gpa_t addr, int len, const void *data) |
293 | { | 300 | { |