|
@@ -3,22 +3,38 @@ ARM Virtual Generic Interrupt Controller (VGIC)
|
|
|
|
|
|
Device types supported:
|
|
Device types supported:
|
|
KVM_DEV_TYPE_ARM_VGIC_V2 ARM Generic Interrupt Controller v2.0
|
|
KVM_DEV_TYPE_ARM_VGIC_V2 ARM Generic Interrupt Controller v2.0
|
|
|
|
+ KVM_DEV_TYPE_ARM_VGIC_V3 ARM Generic Interrupt Controller v3.0
|
|
|
|
|
|
Only one VGIC instance may be instantiated through either this API or the
|
|
Only one VGIC instance may be instantiated through either this API or the
|
|
legacy KVM_CREATE_IRQCHIP api. The created VGIC will act as the VM interrupt
|
|
legacy KVM_CREATE_IRQCHIP api. The created VGIC will act as the VM interrupt
|
|
controller, requiring emulated user-space devices to inject interrupts to the
|
|
controller, requiring emulated user-space devices to inject interrupts to the
|
|
VGIC instead of directly to CPUs.
|
|
VGIC instead of directly to CPUs.
|
|
|
|
|
|
|
|
+Creating a guest GICv3 device requires a host GICv3 as well.
|
|
|
|
+GICv3 implementations with hardware compatibility support allow a guest GICv2
|
|
|
|
+as well.
|
|
|
|
+
|
|
Groups:
|
|
Groups:
|
|
KVM_DEV_ARM_VGIC_GRP_ADDR
|
|
KVM_DEV_ARM_VGIC_GRP_ADDR
|
|
Attributes:
|
|
Attributes:
|
|
KVM_VGIC_V2_ADDR_TYPE_DIST (rw, 64-bit)
|
|
KVM_VGIC_V2_ADDR_TYPE_DIST (rw, 64-bit)
|
|
Base address in the guest physical address space of the GIC distributor
|
|
Base address in the guest physical address space of the GIC distributor
|
|
- register mappings.
|
|
|
|
|
|
+ register mappings. Only valid for KVM_DEV_TYPE_ARM_VGIC_V2.
|
|
|
|
|
|
KVM_VGIC_V2_ADDR_TYPE_CPU (rw, 64-bit)
|
|
KVM_VGIC_V2_ADDR_TYPE_CPU (rw, 64-bit)
|
|
Base address in the guest physical address space of the GIC virtual cpu
|
|
Base address in the guest physical address space of the GIC virtual cpu
|
|
- interface register mappings.
|
|
|
|
|
|
+ interface register mappings. Only valid for KVM_DEV_TYPE_ARM_VGIC_V2.
|
|
|
|
+
|
|
|
|
+ KVM_VGIC_V3_ADDR_TYPE_DIST (rw, 64-bit)
|
|
|
|
+ Base address in the guest physical address space of the GICv3 distributor
|
|
|
|
+ register mappings. Only valid for KVM_DEV_TYPE_ARM_VGIC_V3.
|
|
|
|
+
|
|
|
|
+ KVM_VGIC_V3_ADDR_TYPE_REDIST (rw, 64-bit)
|
|
|
|
+ Base address in the guest physical address space of the GICv3
|
|
|
|
+ redistributor register mappings. There are two 64K pages for each
|
|
|
|
+ VCPU and all of the redistributor pages are contiguous.
|
|
|
|
+ Only valid for KVM_DEV_TYPE_ARM_VGIC_V3.
|
|
|
|
+
|
|
|
|
|
|
KVM_DEV_ARM_VGIC_GRP_DIST_REGS
|
|
KVM_DEV_ARM_VGIC_GRP_DIST_REGS
|
|
Attributes:
|
|
Attributes:
|
|
@@ -36,6 +52,7 @@ Groups:
|
|
the register.
|
|
the register.
|
|
Limitations:
|
|
Limitations:
|
|
- Priorities are not implemented, and registers are RAZ/WI
|
|
- Priorities are not implemented, and registers are RAZ/WI
|
|
|
|
+ - Currently only implemented for KVM_DEV_TYPE_ARM_VGIC_V2.
|
|
Errors:
|
|
Errors:
|
|
-ENODEV: Getting or setting this register is not yet supported
|
|
-ENODEV: Getting or setting this register is not yet supported
|
|
-EBUSY: One or more VCPUs are running
|
|
-EBUSY: One or more VCPUs are running
|
|
@@ -68,6 +85,7 @@ Groups:
|
|
|
|
|
|
Limitations:
|
|
Limitations:
|
|
- Priorities are not implemented, and registers are RAZ/WI
|
|
- Priorities are not implemented, and registers are RAZ/WI
|
|
|
|
+ - Currently only implemented for KVM_DEV_TYPE_ARM_VGIC_V2.
|
|
Errors:
|
|
Errors:
|
|
-ENODEV: Getting or setting this register is not yet supported
|
|
-ENODEV: Getting or setting this register is not yet supported
|
|
-EBUSY: One or more VCPUs are running
|
|
-EBUSY: One or more VCPUs are running
|