Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103732
b: refs/heads/master
c: f76c710
h: refs/heads/master
v: v3
  • Loading branch information
Avi Kivity committed Jul 20, 2008
1 parent 2f027c7 commit 32b9761
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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: 9ef621d3be56e1188300476a8102ff54f7b6793f
refs/heads/master: f76c710d759250a43976bcfcab6af6ebb94b7dc2
4 changes: 1 addition & 3 deletions trunk/arch/x86/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -2076,12 +2076,11 @@ int emulator_set_dr(struct x86_emulate_ctxt *ctxt, int dr, unsigned long value)

void kvm_report_emulation_failure(struct kvm_vcpu *vcpu, const char *context)
{
static int reported;
u8 opcodes[4];
unsigned long rip = vcpu->arch.rip;
unsigned long rip_linear;

if (reported)
if (!printk_ratelimit())
return;

rip_linear = rip + get_segment_base(vcpu, VCPU_SREG_CS);
Expand All @@ -2090,7 +2089,6 @@ void kvm_report_emulation_failure(struct kvm_vcpu *vcpu, const char *context)

printk(KERN_ERR "emulation failed (%s) rip %lx %02x %02x %02x %02x\n",
context, rip, opcodes[0], opcodes[1], opcodes[2], opcodes[3]);
reported = 1;
}
EXPORT_SYMBOL_GPL(kvm_report_emulation_failure);

Expand Down

0 comments on commit 32b9761

Please sign in to comment.