Re: [PATCH 11/11] KVM: x86: add SMM to the MMU role, support SMRAM address space

From: Paolo Bonzini
Date: Wed May 20 2015 - 04:57:36 EST




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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/