* KVM: PIT: control word is write-only
@ 2010-01-29 19:28 Marcelo Tosatti
2010-02-01 8:21 ` Jason Wang
0 siblings, 1 reply; 2+ messages in thread
From: Marcelo Tosatti @ 2010-01-29 19:28 UTC (permalink / raw)
To: kvm; +Cc: Jason Wang
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 caad189..6a74246 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);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: KVM: PIT: control word is write-only
2010-01-29 19:28 KVM: PIT: control word is write-only Marcelo Tosatti
@ 2010-02-01 8:21 ` Jason Wang
0 siblings, 0 replies; 2+ messages in thread
From: Jason Wang @ 2010-02-01 8:21 UTC (permalink / raw)
To: Marcelo Tosatti; +Cc: kvm
Marcelo Tosatti wrote:
> PIT control word (address 0x43) is write-only, reads are undefined.
>
> Cc: stable@kernel.org
> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
>
Acked-by: Jason Wang <jasowang@redhat.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-01 8:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-29 19:28 KVM: PIT: control word is write-only Marcelo Tosatti
2010-02-01 8:21 ` Jason Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox