Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248060
b: refs/heads/master
c: fd72c41
h: refs/heads/master
v: v3
  • Loading branch information
Avi Kivity committed May 22, 2011
1 parent e52ecb1 commit 5563698
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c2ad2bb3ef870067ecfc9ccdcf465feb51f2b6a5
refs/heads/master: fd72c4192220d0086fb24356ac6ff9c3b1e067d9
4 changes: 2 additions & 2 deletions trunk/arch/x86/kvm/emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -2644,9 +2644,9 @@ static int check_cr_write(struct x86_emulate_ctxt *ctxt)
ctxt->ops->get_msr(ctxt, MSR_EFER, &efer);
if (efer & EFER_LMA)
rsvd = CR3_L_MODE_RESERVED_BITS;
else if (is_pae(ctxt->vcpu))
else if (ctxt->ops->get_cr(ctxt, 4) & X86_CR4_PAE)
rsvd = CR3_PAE_RESERVED_BITS;
else if (is_paging(ctxt->vcpu))
else if (ctxt->ops->get_cr(ctxt, 0) & X86_CR0_PG)
rsvd = CR3_NONPAE_RESERVED_BITS;

if (new_val & rsvd)
Expand Down

0 comments on commit 5563698

Please sign in to comment.