summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/i8254.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-02-10 15:18:15 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2010-02-10 15:18:15 (GMT)
commit2cbd1883881ac490d93514324b947a0267c5ca96 (patch)
tree79211d70db535cfb838f3e79d31dd2ceaf6d22c1 /arch/x86/kvm/i8254.c
parent5993fe31c0e9646233ff4ecea32e3c899036eda9 (diff)
parentee73f656a604d5aa9df86a97102e4e462dd79924 (diff)
downloadlinux-2cbd1883881ac490d93514324b947a0267c5ca96.tar.xz
Merge branch 'kvm-updates/2.6.33' of git://git.kernel.org/pub/scm/virt/kvm/kvm
* 'kvm-updates/2.6.33' of git://git.kernel.org/pub/scm/virt/kvm/kvm: KVM: PIT: control word is write-only kvmclock: count total_sleep_time when updating guest clock Export the symbol of getboottime and mmonotonic_to_bootbased
Diffstat (limited to 'arch/x86/kvm/i8254.c')
-rw-r--r--arch/x86/kvm/i8254.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kvm/i8254.c b/arch/x86/kvm/i8254.c
index 296aba4..15578f1 100644
--- a/arch/x86/kvm/i8254.c
+++ b/arch/x86/kvm/i8254.c
@@ -467,6 +467,9 @@ static int pit_ioport_read(struct kvm_io_device *this,
return -EOPNOTSUPP;
addr &= KVM_PIT_CHANNEL_MASK;
+ if (addr == 3)
+ return 0;
+
s = &pit_state->channels[addr];
mutex_lock(&pit_state->lock);