From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752819AbbETIdj (ORCPT ); Wed, 20 May 2015 04:33:39 -0400 Received: from mga02.intel.com ([134.134.136.20]:41890 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751423AbbETIdg (ORCPT ); Wed, 20 May 2015 04:33:36 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,464,1427785200"; d="scan'208";a="574142204" Message-ID: <555C460B.9090508@linux.intel.com> Date: Wed, 20 May 2015 16:30:03 +0800 From: Xiao Guangrong User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Paolo Bonzini , linux-kernel@vger.kernel.org, kvm@vger.kernel.org CC: rkrcmar@redhat.com, bdas@redhat.com Subject: Re: [PATCH 06/11] KVM: x86: pass kvm_mmu_page to gfn_to_rmap References: <1431956923-35602-1-git-send-email-pbonzini@redhat.com> <1431956923-35602-7-git-send-email-pbonzini@redhat.com> In-Reply-To: <1431956923-35602-7-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/18/2015 09:48 PM, Paolo Bonzini wrote: > This is always available, and we can use the role to look up the right > memslots array. > How about pass role instead of sp so that it can be used if no sp is available?