Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248057
b: refs/heads/master
c: fe870ab
h: refs/heads/master
i:
  248055: d51b4cc
v: v3
  • Loading branch information
Avi Kivity committed May 22, 2011
1 parent 6fbe93d commit 79e241d
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: 2953538ebbd95b145bd3629126fe5af61b88be11
refs/heads/master: fe870ab9ce1c3e64c6d6b6ee3fe53d0d029f1044
4 changes: 2 additions & 2 deletions trunk/arch/x86/kvm/emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -2720,7 +2720,7 @@ static int check_svme(struct x86_emulate_ctxt *ctxt)

static int check_svme_pa(struct x86_emulate_ctxt *ctxt)
{
u64 rax = kvm_register_read(ctxt->vcpu, VCPU_REGS_RAX);
u64 rax = ctxt->decode.regs[VCPU_REGS_RAX];

/* Valid physical address? */
if (rax & 0xffff000000000000)
Expand All @@ -2742,7 +2742,7 @@ static int check_rdtsc(struct x86_emulate_ctxt *ctxt)
static int check_rdpmc(struct x86_emulate_ctxt *ctxt)
{
u64 cr4 = ctxt->ops->get_cr(ctxt, 4);
u64 rcx = kvm_register_read(ctxt->vcpu, VCPU_REGS_RCX);
u64 rcx = ctxt->decode.regs[VCPU_REGS_RCX];

if ((!(cr4 & X86_CR4_PCE) && ctxt->ops->cpl(ctxt)) ||
(rcx > 3))
Expand Down

0 comments on commit 79e241d

Please sign in to comment.