aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r--drivers/kvm/kvm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h
index 9c9c1d7f5b30..d56962d49aa6 100644
--- a/drivers/kvm/kvm.h
+++ b/drivers/kvm/kvm.h
@@ -554,7 +554,7 @@ void kvm_mmu_slot_remove_write_access(struct kvm *kvm, int slot);
554void kvm_mmu_zap_all(struct kvm *kvm); 554void kvm_mmu_zap_all(struct kvm *kvm);
555void kvm_mmu_change_mmu_pages(struct kvm *kvm, unsigned int kvm_nr_mmu_pages); 555void kvm_mmu_change_mmu_pages(struct kvm *kvm, unsigned int kvm_nr_mmu_pages);
556 556
557hpa_t gpa_to_hpa(struct kvm_vcpu *vcpu, gpa_t gpa); 557hpa_t gpa_to_hpa(struct kvm *kvm, gpa_t gpa);
558#define HPA_MSB ((sizeof(hpa_t) * 8) - 1) 558#define HPA_MSB ((sizeof(hpa_t) * 8) - 1)
559#define HPA_ERR_MASK ((hpa_t)1 << HPA_MSB) 559#define HPA_ERR_MASK ((hpa_t)1 << HPA_MSB)
560static inline int is_error_hpa(hpa_t hpa) { return hpa >> HPA_MSB; } 560static inline int is_error_hpa(hpa_t hpa) { return hpa >> HPA_MSB; }