From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH] Use cmpxchg for pte updates on walk_addr() Date: Sun, 09 Dec 2007 10:38:08 +0200 Message-ID: <475BA970.4080300@qumranet.com> References: <20071206150409.GA31735@dmt> <47581418.8000506@qumranet.com> <20071207023237.GA2841@dmt> <4758D4D2.8090208@qumranet.com> <20071207125658.GB2841@dmt> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel To: Marcelo Tosatti Return-path: In-Reply-To: <20071207125658.GB2841@dmt> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Marcelo Tosatti wrote: > Oops! > > Updated patch: > > > Applied, thanks. > #define PT_LEVEL_BITS PT64_LEVEL_BITS > #ifdef CONFIG_X86_64 > #define PT_MAX_FULL_LEVELS 4 > + #define CMPXCHG cmpxchg > #else > + #define CMPXCHG cmpxchg64 > #define PT_MAX_FULL_LEVELS 2 > #endif > I updated the #undef block at the end of paging_tmpl.h to account for the new define, otherwise it wouldn't compile cleanly on i386 due to CMPXCHG being redefined. I picked up the patch description and signoff from the first version of this patch, but please keep them with the patch next time. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php