From 3a6641475933344291ea071a9adbcda358e7ddee Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Mon, 10 May 2010 13:08:26 +0300 Subject: [PATCH] --- yaml --- r: 202363 b: refs/heads/master c: 0719837c0832a7b305e42327caa7d330462360ea h: refs/heads/master i: 202361: 1f74255ebfd772de88ceb1b01f927d760b45554f 202359: a43e1e4123889cb99d990830f7ba4735ec5f8a82 v: v3 --- [refs] | 2 +- trunk/include/linux/kvm_host.h | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 118bea2e599d..3f5ef27eabce 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a8eeb04a44dd6dc4c8158953d9bae48849c9a188 +refs/heads/master: 0719837c0832a7b305e42327caa7d330462360ea diff --git a/trunk/include/linux/kvm_host.h b/trunk/include/linux/kvm_host.h index c8a9d628898e..e820eb579108 100644 --- a/trunk/include/linux/kvm_host.h +++ b/trunk/include/linux/kvm_host.h @@ -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