virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 3/6] staging: hv: Fixed the value of the 64bit-hole inside ring buffer
@ 2010-08-03 17:31 Hank Janssen
  2010-08-03 17:44 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Hank Janssen @ 2010-08-03 17:31 UTC (permalink / raw)
  To: 'linux-kernel@vger.kernel.org',
	'devel@driverdev.osuosl.org',
	'virtualization@lists.osdl.org'
  Cc: Haiyang Zhang, 'gregkh@suse.de'

From: Haiyang Zhang <haiyangz@microsoft.com>

Fixed the value of the 64bit-hole inside ring buffer, this caused a problem on Hyper-V when running checked Windows builds.

Signed-off-by:Hank Janssen <hjanssen@microsoft.com>
Signed-off-by:Haiyang Zhang <haiyangz@microsoft.com>

---
 drivers/staging/hv/ring_buffer.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/hv/ring_buffer.c b/drivers/staging/hv/ring_buffer.c
index 66a4974..133f909 100644
--- a/drivers/staging/hv/ring_buffer.c
+++ b/drivers/staging/hv/ring_buffer.c
@@ -192,8 +192,7 @@ Description:
 static inline u64
 GetRingBufferIndices(RING_BUFFER_INFO *RingInfo)  {
-	return ((u64)RingInfo->RingBuffer->WriteIndex << 32)
-	|| RingInfo->RingBuffer->ReadIndex;
+	return (u64)RingInfo->RingBuffer->WriteIndex << 32;
 }
 
 
--
1.6.0.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 3/6] staging: hv: Fixed the value of the 64bit-hole inside ring buffer
  2010-08-03 17:31 [PATCH 3/6] staging: hv: Fixed the value of the 64bit-hole inside ring buffer Hank Janssen
@ 2010-08-03 17:44 ` Greg KH
  2010-08-04  4:25   ` Hank Janssen
  0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2010-08-03 17:44 UTC (permalink / raw)
  To: Hank Janssen
  Cc: 'linux-kernel@vger.kernel.org',
	'devel@driverdev.osuosl.org',
	'virtualization@lists.osdl.org', Haiyang Zhang

On Tue, Aug 03, 2010 at 05:31:57PM +0000, Hank Janssen wrote:
> From: Haiyang Zhang <haiyangz@microsoft.com>
> 
> Fixed the value of the 64bit-hole inside ring buffer, this caused a problem on Hyper-V when running checked Windows builds.

What was the problem, and why would this fix it?  Was it a bug in this
code, by virtue that the code was incorrect in the client and the
checked builds properly warned of this, or something else?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH 3/6] staging: hv: Fixed the value of the 64bit-hole inside ring buffer
  2010-08-03 17:44 ` Greg KH
@ 2010-08-04  4:25   ` Hank Janssen
  2010-08-04 17:05     ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Hank Janssen @ 2010-08-04  4:25 UTC (permalink / raw)
  To: Greg KH
  Cc: 'linux-kernel@vger.kernel.org',
	'devel@driverdev.osuosl.org',
	'virtualization@lists.osdl.org', Haiyang Zhang


>>On Tue, Aug 03, 2010 at 05:31:57PM +0000, Hank Janssen wrote:
>> From: Haiyang Zhang <haiyangz@microsoft.com>
>> 
>> Fixed the value of the 64bit-hole inside ring buffer, this caused a problem on Hyper-V 
>>when running checked Windows builds.
>
>What was the problem, and why would this fix it?  Was it a bug in this code, 
>by virtue that the code was incorrect in the client and the checked builds properly warned
>of this, or something else?

Checked builds of Windows are used internally and given to external system builders at times.
They are builds that for example that all elements in a structure follow the definition of that 
Structure. The bug this fixed was for a field that we did not fill in at all (Because we do
Not use it on the Linux side), and the checked build of windows gives errors on it internally 
to the Windows logs.

This fixes that error.

Thanks,

Hank.
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 3/6] staging: hv: Fixed the value of the 64bit-hole inside ring buffer
  2010-08-04  4:25   ` Hank Janssen
@ 2010-08-04 17:05     ` Greg KH
  0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2010-08-04 17:05 UTC (permalink / raw)
  To: Hank Janssen
  Cc: 'linux-kernel@vger.kernel.org',
	'devel@driverdev.osuosl.org',
	'virtualization@lists.osdl.org', Haiyang Zhang

On Wed, Aug 04, 2010 at 04:25:40AM +0000, Hank Janssen wrote:
> 
> >>On Tue, Aug 03, 2010 at 05:31:57PM +0000, Hank Janssen wrote:
> >> From: Haiyang Zhang <haiyangz@microsoft.com>
> >> 
> >> Fixed the value of the 64bit-hole inside ring buffer, this caused a problem on Hyper-V 
> >>when running checked Windows builds.
> >
> >What was the problem, and why would this fix it?  Was it a bug in this code, 
> >by virtue that the code was incorrect in the client and the checked builds properly warned
> >of this, or something else?
> 
> Checked builds of Windows are used internally and given to external system builders at times.
> They are builds that for example that all elements in a structure follow the definition of that 
> Structure. The bug this fixed was for a field that we did not fill in at all (Because we do
> Not use it on the Linux side), and the checked build of windows gives errors on it internally 
> to the Windows logs.
> 
> This fixes that error.

Wonderful, please provide this information in the changelog comment.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-04 17:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-03 17:31 [PATCH 3/6] staging: hv: Fixed the value of the 64bit-hole inside ring buffer Hank Janssen
2010-08-03 17:44 ` Greg KH
2010-08-04  4:25   ` Hank Janssen
2010-08-04 17:05     ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).