From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: KVM: pvmmu breakage with gcc 4.3.0 Date: Sun, 29 Jun 2008 11:56:50 +0300 Message-ID: <48674E52.4070107@qumranet.com> References: <20080626021047.GA10263@dmt.cnet> <486308C2.5080304@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Anthony Liguori , Marcelo Tosatti , Anthony Liguori , kvm-devel To: Alexandre Oliva Return-path: Received: from il.qumranet.com ([212.179.150.194]:23515 "EHLO il.qumranet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752113AbYF2I4x (ORCPT ); Sun, 29 Jun 2008 04:56:53 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: Alexandre Oliva wrote: > I thought a better approach > was to have __pa do something along the lines of > > ({ char *__buf = (char*)buffer; asm ("" : : "o"(*__buf)); ... }) > > to make it clear that physical addresses are used. > > I agree, I think such a patch is important for future-proofing Linux against increasing gcc optimization capabilities. -- error compiling committee.c: too many arguments to function