KVM: PIT: control word is write-only
PIT control word (address 0x43) is write-only, reads are undefined.
Signed-off-by Marcelo Tosatti <[email protected]>
arch/x86/kvm/i8254.c +3 -0
@@ -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);
Jason Wang
Acked-byQuoted 5 lines · Marcelo Tosatti
PIT control word (address
0x43) is write-only, reads are undefined.Signed-off-by Marcelo Tosatti <[email protected]>
Acked-by Jason Wang <[email protected]>