lkml.org 
[lkml]   [2018]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] KVM: Switch 'requests' to be 64-bit (explicitly)
From
Date
On 05/07/2018 14:22, Raslan, KarimAllah wrote:
>> They don't support atomics on double-word data.
> But they support atomics on single words. Of which there are two.
> We don't need atomic updates of the whole 64-bit quantity (a là 
> cmpxchg). Do we strictly need this to be atomic accross the 64-bit?
>
> Looking at the use cases for "requests":
>
> kvm_clear_request
> kvm_test_request
> kvm_request_pending
> kvm_check_request
>
> ... and all of them would still work if the atomicity is only at the 
> word level, right?
>

Good point! Then yes, requests can be made 64 bit wide.

Paolo

\
 
 \ /
  Last update: 2018-07-05 14:43    [W:0.055 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site