commit | ee73f656a604d5aa9df86a97102e4e462dd79924 | [log] [tgz] |
---|---|---|
author | Marcelo Tosatti <mtosatti@redhat.com> | Fri Jan 29 17:28:41 2010 -0200 |
committer | Avi Kivity <avi@redhat.com> | Tue Feb 09 19:20:15 2010 +0200 |
tree | 7d6b179b3b56acb74125777304067b3a905a0738 | |
parent | 923de3cf5bf12049628019010e36623fca5ef6d1 [diff] [blame] |
KVM: PIT: control word is write-only PIT control word (address 0x43) is write-only, reads are undefined. Cc: stable@kernel.org Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
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 @@ return -EOPNOTSUPP; addr &= KVM_PIT_CHANNEL_MASK; + if (addr == 3) + return 0; + s = &pit_state->channels[addr]; mutex_lock(&pit_state->lock);