From owner-freebsd-virtualization@FreeBSD.ORG Tue Jan 21 00:41:36 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B72B1461; Tue, 21 Jan 2014 00:41:36 +0000 (UTC) Received: from os.inf.tu-dresden.de (os.inf.tu-dresden.de [IPv6:2002:8d4c:3001:48::99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7A57F1E21; Tue, 21 Jan 2014 00:41:36 +0000 (UTC) Received: from [178.5.125.60] (helo=android-433a6bf599ba4d8.fritz.box) by os.inf.tu-dresden.de with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.82) id 1W5PPH-00069T-20; Tue, 21 Jan 2014 01:41:31 +0100 User-Agent: Kaiten Mail In-Reply-To: <3298215.G6vx8QjdMB@pippin.baldwin.cx> References: <52D6B18D.4080204@citrix.com> <1389805150.16498.18.camel@janus.xn--pl-wia.net> <3298215.G6vx8QjdMB@pippin.baldwin.cx> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Subject: Re: KVM Clock From: Julian Stecklina Date: Tue, 21 Jan 2014 01:41:26 +0100 To: John Baldwin ,freebsd-virtualization@freebsd.org Message-ID: X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jan 2014 00:41:36 -0000 John Baldwin wrote: >There is the __compiler_membar() macro in that you could >use if >this code is x86-specific (and thus knows it only needs a compiler >barrier). Ah. Thanks. This will do. Something like access_once would be perfect, though. I'll post an updated patch that does not duplicate code that is in xen/ soonish. Didn't get around to testing it the last days. Julian -- Out of office. Please excuse my brevity.