From: Paolo Bonzini Subject: Re: [PATCH] KVM: Switch 'requests' to be 64-bit (explicitly) Date: Thu, 5 Jul 2018 14:41:25 +0200 Message-ID: References: <1523744804-8220-1-git-send-email-karahmed@amazon.de> <53700469-74f0-f3b0-96a4-d8ace2919b36@redhat.com> <1527003728.13207.55.camel@amazon.de> <5f346c4e-73f2-6a73-7915-e9fa911191ec@redhat.com> <1530793361.23804.13.camel@amazon.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: "rkrcmar@redhat.com" To: "Raslan, KarimAllah" , "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" Return-path: In-Reply-To: <1530793361.23804.13.camel@amazon.de> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org 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