Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756180AbbHDMO0 (ORCPT ); Tue, 4 Aug 2015 08:14:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60535 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755962AbbHDMOY (ORCPT ); Tue, 4 Aug 2015 08:14:24 -0400 Subject: Re: [PATCH 6/9] KVM: MMU: introduce the framework to check reserved bits on sptes To: Xiao Guangrong References: <1438685961-8107-1-git-send-email-guangrong.xiao@linux.intel.com> <1438685961-8107-7-git-send-email-guangrong.xiao@linux.intel.com> Cc: gleb@kernel.org, mtosatti@redhat.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org From: Paolo Bonzini Message-ID: <55C0AC9C.6070606@redhat.com> Date: Tue, 4 Aug 2015 14:14:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <1438685961-8107-7-git-send-email-guangrong.xiao@linux.intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 937 Lines: 34 On 04/08/2015 12:59, Xiao Guangrong wrote: > +/* > + * the page table on host is the shadow page table for the page > + * table in guest or amd nested guest, its mmu features completely > + * follow the features in guest. > + */ > +void > +reset_shadow_rsvds_bits_mask(struct kvm_vcpu *vcpu, struct kvm_mmu *context) > +{ > + __reset_rsvds_bits_mask(vcpu, &context->shadow_rsvd_check, > + boot_cpu_data.x86_phys_bits, > + context->shadow_root_level, context->nx, This should be cpu_has_nx, I think. > + guest_cpuid_has_gbpages(vcpu), This should be cpu_has_gbpages. > is_pse(vcpu)); This should be cpu_has_pse. Paolo > +} > +EXPORT_SYMBOL_GPL(reset_shadow_rsvds_bits_mask); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/