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