aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorDavidlohr Bueso <dave@gnu.org>2012-01-06 09:06:18 -0500
committerAvi Kivity <avi@redhat.com>2012-03-05 07:52:21 -0500
commit4a58ae614a28b1ae3bea1c74a307cdfb7c77dab8 (patch)
tree0b2eeab03edc5d4d3ff3bb61308c32f9060904f8 /arch/x86
parent3e6afcf1d8ce6bca6bfa62a49c1d70d2f16162eb (diff)
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>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kvm/mmu.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index 34da43086952..0a11468d853f 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -3321,7 +3321,6 @@ static int init_kvm_tdp_mmu(struct kvm_vcpu *vcpu)
3321 context->get_cr3 = get_cr3; 3321 context->get_cr3 = get_cr3;
3322 context->get_pdptr = kvm_pdptr_read; 3322 context->get_pdptr = kvm_pdptr_read;
3323 context->inject_page_fault = kvm_inject_page_fault; 3323 context->inject_page_fault = kvm_inject_page_fault;
3324 context->nx = is_nx(vcpu);
3325 3324
3326 if (!is_paging(vcpu)) { 3325 if (!is_paging(vcpu)) {
3327 context->nx = false; 3326 context->nx = false;