Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186047
b: refs/heads/master
c: 7edcfac
h: refs/heads/master
i:
  186045: 9d91f2f
  186043: d30089e
  186039: dd51ce9
  186031: 5e47cec
  186015: f946c08
  185983: 751a915
v: v3
  • Loading branch information
Takuya Yoshikawa authored and Marcelo Tosatti committed Mar 1, 2010
1 parent fbce0ee commit 0840ed9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 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: c125c607326928001983f51109c3d0c190f0a8bb
refs/heads/master: 7edcface95c6e593faa40c70e0464500515db573
7 changes: 1 addition & 6 deletions trunk/arch/x86/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -3888,10 +3888,8 @@ EXPORT_SYMBOL_GPL(kvm_emulate_hypercall);
int kvm_fix_hypercall(struct kvm_vcpu *vcpu)
{
char instruction[3];
int ret = 0;
unsigned long rip = kvm_rip_read(vcpu);


/*
* Blow out the MMU to ensure that no other VCPU has an active mapping
* to ensure that the updated hypercall appears atomically across all
Expand All @@ -3900,11 +3898,8 @@ int kvm_fix_hypercall(struct kvm_vcpu *vcpu)
kvm_mmu_zap_all(vcpu->kvm);

kvm_x86_ops->patch_hypercall(vcpu, instruction);
if (emulator_write_emulated(rip, instruction, 3, vcpu)
!= X86EMUL_CONTINUE)
ret = -EFAULT;

return ret;
return emulator_write_emulated(rip, instruction, 3, vcpu);
}

static u64 mk_cr_64(u64 curr_cr, u32 new_val)
Expand Down

0 comments on commit 0840ed9

Please sign in to comment.