From: Paolo Bonzini Subject: Re: [PATCH 03/15] hyperv: use standard bitops Date: Thu, 22 Dec 2016 13:33:54 +0100 Message-ID: References: <20161220155602.6298-1-rkagan@virtuozzo.com> <20161220155602.6298-4-rkagan@virtuozzo.com> <20161221120044.GA15501@aepfle.de> <20161221132337.GA16492@rkaganb.sw.ru> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Roman Kagan , Olaf Hering , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , "K. Y. Srinivasan" , Vitaly Kuznetsov , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Haiyang Zhang , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, "Denis V . Lunev" Return-path: In-Reply-To: <20161221132337.GA16492@rkaganb.sw.ru> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: "devel" List-Id: kvm.vger.kernel.org On 21/12/2016 14:23, Roman Kagan wrote: > On Wed, Dec 21, 2016 at 01:00:44PM +0100, Olaf Hering wrote: >> On Tue, Dec 20, Roman Kagan wrote: >> >> Reverting commit 22356585712d ("staging: hv: use sync_bitops when >> interacting with the hypervisor") is save because ....... >> >>> - sync_set_bit(channel->monitor_bit, >>> + set_bit(channel->monitor_bit, > > It isn't indeed. I didn't realize there was a UP case where it made a > difference, and failed to locate the commit where it changed. > > I'll drop this part, thanks. Perhaps the sync_bitops should be renamed to virt_bitops. This would match virt_* memory barriers and would make their usage much more obvious. Paolo