Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753195AbbETI51 (ORCPT ); Wed, 20 May 2015 04:57:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34421 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753053AbbETI5W (ORCPT ); Wed, 20 May 2015 04:57:22 -0400 Message-ID: <555C4C6A.7050905@redhat.com> Date: Wed, 20 May 2015 10:57:14 +0200 From: Paolo Bonzini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Xiao Guangrong , linux-kernel@vger.kernel.org, kvm@vger.kernel.org CC: rkrcmar@redhat.com, bdas@redhat.com Subject: Re: [PATCH 11/11] KVM: x86: add SMM to the MMU role, support SMRAM address space References: <1431956923-35602-1-git-send-email-pbonzini@redhat.com> <1431956923-35602-12-git-send-email-pbonzini@redhat.com> <555C4716.3060002@linux.intel.com> In-Reply-To: <555C4716.3060002@linux.intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 545 Lines: 22 On 20/05/2015 10:34, Xiao Guangrong wrote: > > >> @@ -5473,6 +5473,7 @@ void kvm_set_hflags(struct kvm_vcpu *vcpu, >> unsigned emul_flags) >> } >> >> vcpu->arch.hflags = emul_flags; >> + kvm_mmu_reset_context(vcpu); > > reset root table only if SMM flag is changed? Sure. Paolo -- 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/