projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa1dcdd
)
KVM: PIT: control word is write-only
author
Marcelo Tosatti
<mtosatti@redhat.com>
Fri, 29 Jan 2010 19:28:41 +0000
(17:28 -0200)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 23 Feb 2010 15:37:52 +0000
(07:37 -0800)
commit
ee73f656a604d5aa9df86a97102e4e462dd79924
upstream.
PIT control word (address 0x43) is write-only, reads are undefined.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/i8254.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/i8254.c
b/arch/x86/kvm/i8254.c
index 144e7f60b5e2c50f14edde7e3732761fbc22d8d9..88ad1627a89d0c6a420f7bfa0ddd953a89b33b2a 100644
(file)
--- a/
arch/x86/kvm/i8254.c
+++ b/
arch/x86/kvm/i8254.c
@@
-465,6
+465,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);