Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115231
b: refs/heads/master
c: 26eef70
h: refs/heads/master
i:
  115229: 9ad4446
  115227: 70b9a19
  115223: d1de129
  115215: ed2abb3
  115199: 2949486
v: v3
  • Loading branch information
Avi Kivity committed Oct 15, 2008
1 parent 476dca0 commit 7d8db90
Show file tree
Hide file tree
Showing 3 changed files with 14 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: 668f612fa0d8d4120ec5dc0725d7e1ca3152a954
refs/heads/master: 26eef70c3e8c76e73dff2579c792fc7355f8a291
2 changes: 2 additions & 0 deletions trunk/arch/x86/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "i8254.h"
#include "tss.h"
#include "kvm_cache_regs.h"
#include "x86.h"

#include <linux/clocksource.h>
#include <linux/kvm.h>
Expand Down Expand Up @@ -2121,6 +2122,7 @@ int emulate_instruction(struct kvm_vcpu *vcpu,
int r;
struct decode_cache *c;

kvm_clear_exception_queue(vcpu);
vcpu->arch.mmio_fault_cr2 = cr2;
/*
* TODO: fix x86_emulate.c to use guest_read/write_register
Expand Down
11 changes: 11 additions & 0 deletions trunk/arch/x86/kvm/x86.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#ifndef ARCH_X86_KVM_X86_H
#define ARCH_X86_KVM_X86_H

#include <linux/kvm_host.h>

static inline void kvm_clear_exception_queue(struct kvm_vcpu *vcpu)
{
vcpu->arch.exception.pending = false;
}

#endif

0 comments on commit 7d8db90

Please sign in to comment.