Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146519
b: refs/heads/master
c: 9645bb5
h: refs/heads/master
i:
  146517: 23866a3
  146515: 1066f91
  146511: 3d96f7d
v: v3
  • Loading branch information
Avi Kivity committed Jun 10, 2009
1 parent f9d2445 commit fe460e7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 82725b20e22fb85377f61a16f6d0d5cfc28b45d3
refs/heads/master: 9645bb56b31a1b70ab9e470387b5264cafc04aa9
1 change: 1 addition & 0 deletions trunk/arch/x86/include/asm/kvm_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ union kvm_mmu_page_role {
unsigned access:3;
unsigned invalid:1;
unsigned cr4_pge:1;
unsigned nxe:1;
};
};

Expand Down
3 changes: 3 additions & 0 deletions trunk/arch/x86/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,9 @@ static void set_efer(struct kvm_vcpu *vcpu, u64 efer)
efer |= vcpu->arch.shadow_efer & EFER_LMA;

vcpu->arch.shadow_efer = efer;

vcpu->arch.mmu.base_role.nxe = (efer & EFER_NX) && !tdp_enabled;
kvm_mmu_reset_context(vcpu);
}

void kvm_enable_efer_bits(u64 mask)
Expand Down

0 comments on commit fe460e7

Please sign in to comment.