From mboxrd@z Thu Jan 1 00:00:00 1970 From: Glauber Costa Subject: Re: [patch 08/18] x86: pvclock: generic pvclock vsyscall initialization Date: Mon, 29 Oct 2012 18:39:04 +0400 Message-ID: <508E9508.6070408@parallels.com> References: <20121024131340.742340256@redhat.com> <20121024131621.658249278@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Cc: , , , , , , To: Marcelo Tosatti Return-path: Received: from mx2.parallels.com ([64.131.90.16]:36798 "EHLO mx2.parallels.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758820Ab2J2OjQ (ORCPT ); Mon, 29 Oct 2012 10:39:16 -0400 In-Reply-To: <20121024131621.658249278@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 10/24/2012 05:13 PM, Marcelo Tosatti wrote: > + */ > +int __init pvclock_init_vsyscall(void) > +{ > + int idx; > + unsigned int size = PVCLOCK_VSYSCALL_NR_PAGES*PAGE_SIZE; > + > + pvclock_vdso_info = __alloc_bootmem(size, PAGE_SIZE, 0); > + if (!pvclock_vdso_info) > + return -ENOMEM; > + > + memset(pvclock_vdso_info, 0, size); > + > + for (idx = 0; idx <= (PVCLOCK_FIXMAP_END-PVCLOCK_FIXMAP_BEGIN); idx++) { > + __set_fixmap(PVCLOCK_FIXMAP_BEGIN + idx, > + __pa_symbol(pvclock_vdso_info) + (idx*PAGE_SIZE), > + PAGE_KERNEL_VVAR); BTW, Previous line is whitespace damaged.