1 From ee73f656a604d5aa9df86a97102e4e462dd79924 Mon Sep 17 00:00:00 2001
2 From: Marcelo Tosatti <mtosatti@redhat.com>
3 Date: Fri, 29 Jan 2010 17:28:41 -0200
4 Subject: KVM: PIT: control word is write-only
6 From: Marcelo Tosatti <mtosatti@redhat.com>
8 commit ee73f656a604d5aa9df86a97102e4e462dd79924 upstream.
10 PIT control word (address 0x43) is write-only, reads are undefined.
12 Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
13 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
16 arch/x86/kvm/i8254.c | 3 +++
17 1 file changed, 3 insertions(+)
19 --- a/arch/x86/kvm/i8254.c
20 +++ b/arch/x86/kvm/i8254.c
21 @@ -465,6 +465,9 @@ static int pit_ioport_read(struct kvm_io
24 addr &= KVM_PIT_CHANNEL_MASK;
28 s = &pit_state->channels[addr];
30 mutex_lock(&pit_state->lock);