Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202363
b: refs/heads/master
c: 0719837
h: refs/heads/master
i:
  202361: 1f74255
  202359: a43e1e4
v: v3
  • Loading branch information
Avi Kivity committed Aug 1, 2010
1 parent ad96c00 commit 3a66414
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: a8eeb04a44dd6dc4c8158953d9bae48849c9a188
refs/heads/master: 0719837c0832a7b305e42327caa7d330462360ea
7 changes: 6 additions & 1 deletion trunk/include/linux/kvm_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,12 @@ static inline bool kvm_make_check_request(int req, struct kvm_vcpu *vcpu)

static inline bool kvm_check_request(int req, struct kvm_vcpu *vcpu)
{
return test_and_clear_bit(req, &vcpu->requests);
if (test_bit(req, &vcpu->requests)) {
clear_bit(req, &vcpu->requests);
return true;
} else {
return false;
}
}

#endif
Expand Down

0 comments on commit 3a66414

Please sign in to comment.