-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KVM: Clear exception queue before emulating an instruction
If we're emulating an instruction, either it will succeed, in which case any previously queued exception will be spurious, or we will requeue the same exception. Signed-off-by: Avi Kivity <avi@qumranet.com>
- Loading branch information
Avi Kivity
committed
Oct 15, 2008
1 parent
668f612
commit 26eef70
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |