History

KVM: PPC: Book3S: Add API for in-kernel XICS emulation

This adds the API for userspace to instantiate an XICS device in a VM and connect VCPUs to it. The API consists of a new device type for the KVM_CREATE_DEVICE ioctl, a new capability KVM_CAP_IRQ_XICS, which functions similarly to KVM_CAP_IRQ_MPIC, and the KVM_IRQ_LINE ioctl, which is used to assert and deassert interrupt inputs of the XICS. The XICS device has one attribute group, KVM_DEV_XICS_GRP_SOURCES. Each attribute within this group corresponds to the state of one interrupt source. The attribute number is the same as the interrupt source number. This does not support irq routing or irqfd yet.

Paul Mackerras committed 13 years ago

Commit 5975a2e1 parent d133b4011 files · +287 −25Browse files

Showing the changes to include/uapi/linux (1 of 11 files). Show all

Unified · Split

include/uapi/linux/kvm.h+2−0
@@ -665,6 +665,7 @@ struct kvm_ppc_smmu_info { · 664 unmodified lines
665665 #define KVM_CAP_DEVICE_CTRL 89
666666 #define KVM_CAP_IRQ_MPIC 90
667667 #define KVM_CAP_PPC_RTAS 91
668+#define KVM_CAP_IRQ_XICS 92
668669
669670 #ifdef KVM_CAP_IRQ_ROUTING
670671
@@ -837,6 +838,7 @@ struct kvm_device_attr { · 166 unmodified lines
837838
838839 #define KVM_DEV_TYPE_FSL_MPIC_20 1
839840 #define KVM_DEV_TYPE_FSL_MPIC_42 2
841+#define KVM_DEV_TYPE_XICS 3
840842
841843 /*
842844 * ioctls for VM fds

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t