diff options
author | Oliver Upton <oliver.upton@linux.dev> | 2025-02-26 21:31:24 +0300 |
---|---|---|
committer | Oliver Upton <oliver.upton@linux.dev> | 2025-02-27 00:22:49 +0300 |
commit | d766d87cf4a0a415a45bbb8fc2e3a4cc1995654d (patch) | |
tree | 880c3eb1a53c0d8fb8a2cc2755b0c7beaece1ceb | |
parent | 5c57533eb8c1efeeab4e2e417fa983d65707b925 (diff) | |
download | linux-d766d87cf4a0a415a45bbb8fc2e3a4cc1995654d.tar.xz |
KVM: arm64: Document ordering requirements for irqbypass
One of the not-so-obvious requirements for restoring a VM is ensuring
that the vITS has been restored _before_ creating any irqbypass mappings.
This is because KVM needs to get the guest translation for MSIs to
correctly assemble the vLPI mapping getting installed in the physical
ITS.
Document the restore ordering requirements necessary for GICv4 vLPI
injection to work.
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20250226183124.82094-5-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
-rw-r--r-- | Documentation/virt/kvm/devices/arm-vgic-its.rst | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Documentation/virt/kvm/devices/arm-vgic-its.rst b/Documentation/virt/kvm/devices/arm-vgic-its.rst index e053124f77c4..0f971f83205a 100644 --- a/Documentation/virt/kvm/devices/arm-vgic-its.rst +++ b/Documentation/virt/kvm/devices/arm-vgic-its.rst @@ -126,7 +126,8 @@ KVM_DEV_ARM_VGIC_GRP_ITS_REGS ITS Restore Sequence: --------------------- -The following ordering must be followed when restoring the GIC and the ITS: +The following ordering must be followed when restoring the GIC, ITS, and +KVM_IRQFD assignments: a) restore all guest memory and create vcpus b) restore all redistributors @@ -139,6 +140,8 @@ d) restore the ITS in the following order: 3. Load the ITS table data (KVM_DEV_ARM_ITS_RESTORE_TABLES) 4. Restore GITS_CTLR +e) restore KVM_IRQFD assignments for MSIs + Then vcpus can be started. ITS Table ABI REV0: |