Browse Source

KVM: MMU: unnecessary NX state assignment

We can remove the first ->nx state assignment since it is assigned afterwards anyways.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Davidlohr Bueso 13 years ago
parent
commit
4a58ae614a
1 changed files with 0 additions and 1 deletions
  1. 0 1
      arch/x86/kvm/mmu.c

+ 0 - 1
arch/x86/kvm/mmu.c

@@ -3321,7 +3321,6 @@ static int init_kvm_tdp_mmu(struct kvm_vcpu *vcpu)
 	context->get_cr3 = get_cr3;
 	context->get_cr3 = get_cr3;
 	context->get_pdptr = kvm_pdptr_read;
 	context->get_pdptr = kvm_pdptr_read;
 	context->inject_page_fault = kvm_inject_page_fault;
 	context->inject_page_fault = kvm_inject_page_fault;
-	context->nx = is_nx(vcpu);
 
 
 	if (!is_paging(vcpu)) {
 	if (!is_paging(vcpu)) {
 		context->nx = false;
 		context->nx = false;