diff options
Diffstat (limited to 'include/linux/kvm.h')
-rw-r--r-- | include/linux/kvm.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/linux/kvm.h b/include/linux/kvm.h index d808694673f9..0a6d6ba44c85 100644 --- a/include/linux/kvm.h +++ b/include/linux/kvm.h | |||
@@ -625,6 +625,7 @@ struct kvm_ppc_smmu_info { | |||
625 | #ifdef __KVM_HAVE_READONLY_MEM | 625 | #ifdef __KVM_HAVE_READONLY_MEM |
626 | #define KVM_CAP_READONLY_MEM 81 | 626 | #define KVM_CAP_READONLY_MEM 81 |
627 | #endif | 627 | #endif |
628 | #define KVM_CAP_IRQFD_RESAMPLE 82 | ||
628 | 629 | ||
629 | #ifdef KVM_CAP_IRQ_ROUTING | 630 | #ifdef KVM_CAP_IRQ_ROUTING |
630 | 631 | ||
@@ -690,12 +691,21 @@ struct kvm_xen_hvm_config { | |||
690 | #endif | 691 | #endif |
691 | 692 | ||
692 | #define KVM_IRQFD_FLAG_DEASSIGN (1 << 0) | 693 | #define KVM_IRQFD_FLAG_DEASSIGN (1 << 0) |
694 | /* | ||
695 | * Available with KVM_CAP_IRQFD_RESAMPLE | ||
696 | * | ||
697 | * KVM_IRQFD_FLAG_RESAMPLE indicates resamplefd is valid and specifies | ||
698 | * the irqfd to operate in resampling mode for level triggered interrupt | ||
699 | * emlation. See Documentation/virtual/kvm/api.txt. | ||
700 | */ | ||
701 | #define KVM_IRQFD_FLAG_RESAMPLE (1 << 1) | ||
693 | 702 | ||
694 | struct kvm_irqfd { | 703 | struct kvm_irqfd { |
695 | __u32 fd; | 704 | __u32 fd; |
696 | __u32 gsi; | 705 | __u32 gsi; |
697 | __u32 flags; | 706 | __u32 flags; |
698 | __u8 pad[20]; | 707 | __u32 resamplefd; |
708 | __u8 pad[16]; | ||
699 | }; | 709 | }; |
700 | 710 | ||
701 | struct kvm_clock_data { | 711 | struct kvm_clock_data { |