diff options
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r-- | include/linux/kvm_host.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 7d21cf9f4380..471d1400c4ac 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
@@ -879,6 +879,13 @@ static inline hpa_t pfn_to_hpa(pfn_t pfn) | |||
879 | return (hpa_t)pfn << PAGE_SHIFT; | 879 | return (hpa_t)pfn << PAGE_SHIFT; |
880 | } | 880 | } |
881 | 881 | ||
882 | static inline bool kvm_is_error_gpa(struct kvm *kvm, gpa_t gpa) | ||
883 | { | ||
884 | unsigned long hva = gfn_to_hva(kvm, gpa_to_gfn(gpa)); | ||
885 | |||
886 | return kvm_is_error_hva(hva); | ||
887 | } | ||
888 | |||
882 | static inline void kvm_migrate_timers(struct kvm_vcpu *vcpu) | 889 | static inline void kvm_migrate_timers(struct kvm_vcpu *vcpu) |
883 | { | 890 | { |
884 | set_bit(KVM_REQ_MIGRATE_TIMER, &vcpu->requests); | 891 | set_bit(KVM_REQ_MIGRATE_TIMER, &vcpu->requests); |