[COMMIT master] KVM: PIT: control word is write-only

2010-02-07 Thread Avi Kivity
From: Marcelo Tosatti mtosa...@redhat.com

PIT control word (address 0x43) is write-only, reads are undefined.

Cc: sta...@kernel.org
Signed-off-by: Marcelo Tosatti mtosa...@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);
--
To unsubscribe from this list: send the line unsubscribe kvm-commits in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: KVM: PIT: control word is write-only

2010-02-01 Thread Jason Wang

Marcelo Tosatti wrote:

PIT control word (address 0x43) is write-only, reads are undefined.

Cc: sta...@kernel.org
Signed-off-by: Marcelo Tosatti mtosa...@redhat.com
  

Acked-by: Jason Wang jasow...@redhat.com
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html