aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/virtual/kvm/api.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/virtual/kvm/api.txt')
-rw-r--r--Documentation/virtual/kvm/api.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt
index 415cde1647e9..7e5f9afcc693 100644
--- a/Documentation/virtual/kvm/api.txt
+++ b/Documentation/virtual/kvm/api.txt
@@ -1433,13 +1433,16 @@ KVM_ASSIGN_DEV_IRQ. Partial deassignment of host or guest IRQ is allowed.
14334.52 KVM_SET_GSI_ROUTING 14334.52 KVM_SET_GSI_ROUTING
1434 1434
1435Capability: KVM_CAP_IRQ_ROUTING 1435Capability: KVM_CAP_IRQ_ROUTING
1436Architectures: x86 s390 1436Architectures: x86 s390 arm arm64
1437Type: vm ioctl 1437Type: vm ioctl
1438Parameters: struct kvm_irq_routing (in) 1438Parameters: struct kvm_irq_routing (in)
1439Returns: 0 on success, -1 on error 1439Returns: 0 on success, -1 on error
1440 1440
1441Sets the GSI routing table entries, overwriting any previously set entries. 1441Sets the GSI routing table entries, overwriting any previously set entries.
1442 1442
1443On arm/arm64, GSI routing has the following limitation:
1444- GSI routing does not apply to KVM_IRQ_LINE but only to KVM_IRQFD.
1445
1443struct kvm_irq_routing { 1446struct kvm_irq_routing {
1444 __u32 nr; 1447 __u32 nr;
1445 __u32 flags; 1448 __u32 flags;
@@ -2374,9 +2377,10 @@ Note that closing the resamplefd is not sufficient to disable the
2374irqfd. The KVM_IRQFD_FLAG_RESAMPLE is only necessary on assignment 2377irqfd. The KVM_IRQFD_FLAG_RESAMPLE is only necessary on assignment
2375and need not be specified with KVM_IRQFD_FLAG_DEASSIGN. 2378and need not be specified with KVM_IRQFD_FLAG_DEASSIGN.
2376 2379
2377On ARM/ARM64, the gsi field in the kvm_irqfd struct specifies the Shared 2380On arm/arm64, gsi routing being supported, the following can happen:
2378Peripheral Interrupt (SPI) index, such that the GIC interrupt ID is 2381- in case no routing entry is associated to this gsi, injection fails
2379given by gsi + 32. 2382- in case the gsi is associated to an irqchip routing entry,
2383 irqchip.pin + 32 corresponds to the injected SPI ID.
2380 2384
23814.76 KVM_PPC_ALLOCATE_HTAB 23854.76 KVM_PPC_ALLOCATE_HTAB
2382 2386