aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kvm_host.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r--include/linux/kvm_host.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 240e460777bc..c8a9d628898e 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -624,5 +624,20 @@ static inline long kvm_vm_ioctl_assigned_device(struct kvm *kvm, unsigned ioctl,
624 624
625#endif 625#endif
626 626
627static inline void kvm_make_request(int req, struct kvm_vcpu *vcpu)
628{
629 set_bit(req, &vcpu->requests);
630}
631
632static inline bool kvm_make_check_request(int req, struct kvm_vcpu *vcpu)
633{
634 return test_and_set_bit(req, &vcpu->requests);
635}
636
637static inline bool kvm_check_request(int req, struct kvm_vcpu *vcpu)
638{
639 return test_and_clear_bit(req, &vcpu->requests);
640}
641
627#endif 642#endif
628 643