Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754996AbdDLTEn (ORCPT ); Wed, 12 Apr 2017 15:04:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37980 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752674AbdDLTEl (ORCPT ); Wed, 12 Apr 2017 15:04:41 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 3200F7573A Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=rkrcmar@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 3200F7573A Date: Wed, 12 Apr 2017 21:04:33 +0200 From: Radim =?utf-8?B?S3LEjW3DocWZ?= To: Wanpeng Li Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Paolo Bonzini , Wanpeng Li Subject: Re: [PATCH] x86/kvm: virt_xxx memory barriers instead of mandatory barriers Message-ID: <20170412190432.GE20145@potion> References: <1491904161-4099-1-git-send-email-wanpeng.li@hotmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1491904161-4099-1-git-send-email-wanpeng.li@hotmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Wed, 12 Apr 2017 19:04:41 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 567 Lines: 15 2017-04-11 02:49-0700, Wanpeng Li: > From: Wanpeng Li > > virt_xxx memory barriers are implemented trivially using the low-level > __smp_xxx macros, __smp_xxx is equal to a compiler barrier for strong > TSO memory model, however, mandatory barriers will unconditional add > memory barriers, this patch replaces the rmb() in kvm_steal_clock() by > virt_rmb(). > > Cc: Paolo Bonzini > Cc: Radim Krčmář > Signed-off-by: Wanpeng Li > --- Applied to kvm/queue, thanks.