From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ralf Baechle Subject: Re: [PATCH 2/30] MIPS: Export pgd/pmd symbols for KVM Date: Tue, 17 Jan 2017 17:24:06 +0100 Message-ID: <20170117162406.GD24215@linux-mips.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: linux-mips@linux-mips.org, Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= , kvm@vger.kernel.org To: James Hogan Return-path: Received: from eddie.linux-mips.org ([148.251.95.138]:50750 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751120AbdAQQYJ (ORCPT ); Tue, 17 Jan 2017 11:24:09 -0500 Received: from localhost.localdomain ([127.0.0.1]:35574 "EHLO linux-mips.org" rhost-flags-OK-OK-OK-FAIL) by eddie.linux-mips.org with ESMTP id S23993894AbdAQQYIWTMog (ORCPT ); Tue, 17 Jan 2017 17:24:08 +0100 Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On Fri, Jan 06, 2017 at 01:32:34AM +0000, James Hogan wrote: > Export pgd_init(), pmd_init(), invalid_pmd_table and > tlbmiss_handler_setup_pgd to GPL kernel modules so that MIPS KVM can use > the inline page table management functions and switch between page > tables: > > - pgd_init() is used inline by pgd_alloc(), which KVM will use to > allocate page directory tables for GVA mappings. > > - pmd_init() will be used directly by KVM to initialise newly allocated > pmd tables with invalid lower level table pointers. > > - invalid_pmd_table is used by pud_present(), pud_none(), and > pud_clear(), which KVM will use to test and clear pud entries. > > - tlbmiss_handler_setup_pgd() will be called by KVM entry code to switch > to the appropriate GVA page tables. > > Signed-off-by: James Hogan > Cc: Ralf Baechle > Cc: Paolo Bonzini > Cc: "Radim Krčmář" > Cc: linux-mips@linux-mips.org > Cc: kvm@vger.kernel.org Acked-by: Ralf Baechle Ralf