sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget1/translations/zh_CN/virt/kvm/devices/arm-vgic-itsmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget1/translations/zh_TW/virt/kvm/devices/arm-vgic-itsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget1/translations/it_IT/virt/kvm/devices/arm-vgic-itsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget1/translations/ja_JP/virt/kvm/devices/arm-vgic-itsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget1/translations/ko_KR/virt/kvm/devices/arm-vgic-itsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hPortuguese (Brazilian)}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget1/translations/pt_BR/virt/kvm/devices/arm-vgic-itsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget1/translations/sp_SP/virt/kvm/devices/arm-vgic-itsmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h SPDX-License-Identifier: GPL-2.0h]h SPDX-License-Identifier: GPL-2.0}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhhK/var/lib/git/docbuild/linux/Documentation/virt/kvm/devices/arm-vgic-its.rsthKubhsection)}(hhh](htitle)}(h/ARM Virtual Interrupt Translation Service (ITS)h]h/ARM Virtual Interrupt Translation Service (ITS)}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubhdefinition_list)}(hhh]hdefinition_list_item)}(hbDevice types supported: KVM_DEV_TYPE_ARM_VGIC_ITS ARM Interrupt Translation Service Controller h](hterm)}(hDevice types supported:h]hDevice types supported:}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhubh definition)}(hhh]h paragraph)}(hIKVM_DEV_TYPE_ARM_VGIC_ITS ARM Interrupt Translation Service Controllerh]hIKVM_DEV_TYPE_ARM_VGIC_ITS ARM Interrupt Translation Service Controller}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhubah}(h]h ]h"]h$]h&]uh1hhhubeh}(h]h ]h"]h$]h&]uh1hhhhKhhubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubh)}(hThe ITS allows MSI(-X) interrupts to be injected into guests. This extension is optional. Creating a virtual ITS controller also requires a host GICv3 (see arm-vgic-v3.txt), but does not depend on having physical ITS controllers.h]hThe ITS allows MSI(-X) interrupts to be injected into guests. This extension is optional. Creating a virtual ITS controller also requires a host GICv3 (see arm-vgic-v3.txt), but does not depend on having physical ITS controllers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hhhhubh)}(hrThere can be multiple ITS controllers per guest, each of them has to have a separate, non-overlapping MMIO region.h]hrThere can be multiple ITS controllers per guest, each of them has to have a separate, non-overlapping MMIO region.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hhh](h)}(hGroupsh]hGroups}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hhhhhKubh)}(hhh](h)}(hKVM_DEV_ARM_VGIC_GRP_ADDRh]hKVM_DEV_ARM_VGIC_GRP_ADDR}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhhhhhKubh block_quote)}(hXKAttributes: KVM_VGIC_ITS_ADDR_TYPE (rw, 64-bit) Base address in the guest physical address space of the GICv3 ITS control register frame. This address needs to be 64K aligned and the region covers 128K. Errors: ======= ================================================= -E2BIG Address outside of addressable IPA range -EINVAL Incorrectly aligned address -EEXIST Address already configured -EFAULT Invalid user pointer for attr->addr. -ENODEV Incorrect attribute or the ITS is not supported. ======= ================================================= h](h)}(hhh]h)}(hAttributes: KVM_VGIC_ITS_ADDR_TYPE (rw, 64-bit) Base address in the guest physical address space of the GICv3 ITS control register frame. This address needs to be 64K aligned and the region covers 128K. h](h)}(h Attributes:h]h Attributes:}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjfubh)}(hhh]h)}(hhh]h)}(hKVM_VGIC_ITS_ADDR_TYPE (rw, 64-bit) Base address in the guest physical address space of the GICv3 ITS control register frame. This address needs to be 64K aligned and the region covers 128K. h](h)}(h#KVM_VGIC_ITS_ADDR_TYPE (rw, 64-bit)h]h#KVM_VGIC_ITS_ADDR_TYPE (rw, 64-bit)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj~ubh)}(hhh]h)}(hBase address in the guest physical address space of the GICv3 ITS control register frame. This address needs to be 64K aligned and the region covers 128K.h]hBase address in the guest physical address space of the GICv3 ITS control register frame. This address needs to be 64K aligned and the region covers 128K.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhj~ubeh}(h]h ]h"]h$]h&]uh1hhhhKhj{ubah}(h]h ]h"]h$]h&]uh1hhjxubah}(h]h ]h"]h$]h&]uh1hhjfubeh}(h]h ]h"]h$]h&]uh1hhhhKhjcubah}(h]h ]h"]h$]h&]uh1hhj_ubh)}(hErrors:h]hErrors:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj_ubj^)}(hXZ======= ================================================= -E2BIG Address outside of addressable IPA range -EINVAL Incorrectly aligned address -EEXIST Address already configured -EFAULT Invalid user pointer for attr->addr. -ENODEV Incorrect attribute or the ITS is not supported. ======= ================================================= h]htable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK1uh1jhjubhtbody)}(hhh](hrow)}(hhh](hentry)}(hhh]h)}(h-E2BIGh]h-E2BIG}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK!hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h(Address outside of addressable IPA rangeh]h(Address outside of addressable IPA range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK!hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h-EINVALh]h-EINVAL}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK"hj:ubah}(h]h ]h"]h$]h&]uh1jhj7ubj)}(hhh]h)}(hIncorrectly aligned addressh]hIncorrectly aligned address}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK"hjQubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h-EEXISTh]h-EEXIST}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK#hjqubah}(h]h ]h"]h$]h&]uh1jhjnubj)}(hhh]h)}(hAddress already configuredh]hAddress already configured}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK#hjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h-EFAULTh]h-EFAULT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK$hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h$Invalid user pointer for attr->addr.h]h$Invalid user pointer for attr->addr.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK$hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h-ENODEVh]h-ENODEV}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK%hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h0Incorrect attribute or the ITS is not supported.h]h0Incorrect attribute or the ITS is not supported.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK%hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j]hhhK hj_ubeh}(h]h ]h"]h$]h&]uh1j]hhhKhjLhhubeh}(h]kvm-dev-arm-vgic-grp-addrah ]h"]kvm_dev_arm_vgic_grp_addrah$]h&]uh1hhj;hhhhhKubh)}(hhh](h)}(hKVM_DEV_ARM_VGIC_GRP_CTRLh]hKVM_DEV_ARM_VGIC_GRP_CTRL}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hhhhhK*ubj^)}(hXFAttributes: KVM_DEV_ARM_VGIC_CTRL_INIT request the initialization of the ITS, no additional parameter in kvm_device_attr.addr. KVM_DEV_ARM_ITS_CTRL_RESET reset the ITS, no additional parameter in kvm_device_attr.addr. See "ITS Reset State" section. KVM_DEV_ARM_ITS_SAVE_TABLES save the ITS table data into guest RAM, at the location provisioned by the guest in corresponding registers/table entries. Should userspace require a form of dirty tracking to identify which pages are modified by the saving process, it should use a bitmap even if using another mechanism to track the memory dirtied by the vCPUs. The layout of the tables in guest memory defines an ABI. The entries are laid out in little endian format as described in the last paragraph. KVM_DEV_ARM_ITS_RESTORE_TABLES restore the ITS tables from guest RAM to ITS internal structures. The GICV3 must be restored before the ITS and all ITS registers but the GITS_CTLR must be restored before restoring the ITS tables. The GITS_IIDR read-only register must also be restored before calling KVM_DEV_ARM_ITS_RESTORE_TABLES as the IIDR revision field encodes the ABI revision. The expected ordering when restoring the GICv3/ITS is described in section "ITS Restore Sequence". Errors: ======= ========================================================== -ENXIO ITS not properly configured as required prior to setting this attribute -ENOMEM Memory shortage when allocating ITS internal data -EINVAL Inconsistent restored data -EFAULT Invalid guest ram access -EBUSY One or more VCPUS are running -EACCES The virtual ITS is backed by a physical GICv4 ITS, and the state is not available without GICv4.1 ======= ========================================================== h](h)}(hhh]h)}(hXAttributes: KVM_DEV_ARM_VGIC_CTRL_INIT request the initialization of the ITS, no additional parameter in kvm_device_attr.addr. KVM_DEV_ARM_ITS_CTRL_RESET reset the ITS, no additional parameter in kvm_device_attr.addr. See "ITS Reset State" section. KVM_DEV_ARM_ITS_SAVE_TABLES save the ITS table data into guest RAM, at the location provisioned by the guest in corresponding registers/table entries. Should userspace require a form of dirty tracking to identify which pages are modified by the saving process, it should use a bitmap even if using another mechanism to track the memory dirtied by the vCPUs. The layout of the tables in guest memory defines an ABI. The entries are laid out in little endian format as described in the last paragraph. KVM_DEV_ARM_ITS_RESTORE_TABLES restore the ITS tables from guest RAM to ITS internal structures. The GICV3 must be restored before the ITS and all ITS registers but the GITS_CTLR must be restored before restoring the ITS tables. The GITS_IIDR read-only register must also be restored before calling KVM_DEV_ARM_ITS_RESTORE_TABLES as the IIDR revision field encodes the ABI revision. The expected ordering when restoring the GICv3/ITS is described in section "ITS Restore Sequence". h](h)}(h Attributes:h]h Attributes:}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKJhjRubh)}(hhh]h)}(hhh](h)}(hsKVM_DEV_ARM_VGIC_CTRL_INIT request the initialization of the ITS, no additional parameter in kvm_device_attr.addr. h](h)}(hKVM_DEV_ARM_VGIC_CTRL_INITh]hKVM_DEV_ARM_VGIC_CTRL_INIT}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK/hjjubh)}(hhh]h)}(hWrequest the initialization of the ITS, no additional parameter in kvm_device_attr.addr.h]hWrequest the initialization of the ITS, no additional parameter in kvm_device_attr.addr.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK.hj|ubah}(h]h ]h"]h$]h&]uh1hhjjubeh}(h]h ]h"]h$]h&]uh1hhhhK/hjgubh)}(hzKVM_DEV_ARM_ITS_CTRL_RESET reset the ITS, no additional parameter in kvm_device_attr.addr. See "ITS Reset State" section. h](h)}(hKVM_DEV_ARM_ITS_CTRL_RESETh]hKVM_DEV_ARM_ITS_CTRL_RESET}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK3hjubh)}(hhh]h)}(h^reset the ITS, no additional parameter in kvm_device_attr.addr. See "ITS Reset State" section.h]hbreset the ITS, no additional parameter in kvm_device_attr.addr. See “ITS Reset State” section.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK2hjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhhhK3hjgubh)}(hXKVM_DEV_ARM_ITS_SAVE_TABLES save the ITS table data into guest RAM, at the location provisioned by the guest in corresponding registers/table entries. Should userspace require a form of dirty tracking to identify which pages are modified by the saving process, it should use a bitmap even if using another mechanism to track the memory dirtied by the vCPUs. The layout of the tables in guest memory defines an ABI. The entries are laid out in little endian format as described in the last paragraph. h](h)}(hKVM_DEV_ARM_ITS_SAVE_TABLESh]hKVM_DEV_ARM_ITS_SAVE_TABLES}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK=hjubh)}(hhh](h)}(hXIsave the ITS table data into guest RAM, at the location provisioned by the guest in corresponding registers/table entries. Should userspace require a form of dirty tracking to identify which pages are modified by the saving process, it should use a bitmap even if using another mechanism to track the memory dirtied by the vCPUs.h]hXIsave the ITS table data into guest RAM, at the location provisioned by the guest in corresponding registers/table entries. Should userspace require a form of dirty tracking to identify which pages are modified by the saving process, it should use a bitmap even if using another mechanism to track the memory dirtied by the vCPUs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK6hjubh)}(hThe layout of the tables in guest memory defines an ABI. The entries are laid out in little endian format as described in the last paragraph.h]hThe layout of the tables in guest memory defines an ABI. The entries are laid out in little endian format as described in the last paragraph.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKaddr -EINVAL Offset is not 64-bit aligned -EBUSY one or more VCPUS are running ======= ==================================================== h](h)}(hhh]h)}(hXOAttributes: The attr field of kvm_device_attr encodes the offset of the ITS register, relative to the ITS control frame base address (ITS_base). kvm_device_attr.addr points to a __u64 value whatever the width of the addressed register (32/64 bits). 64 bit registers can only be accessed with full length. Writes to read-only registers are ignored by the kernel except for: - GITS_CREADR. It must be restored otherwise commands in the queue will be re-executed after restoring CWRITER. GITS_CREADR must be restored before restoring the GITS_CTLR which is likely to enable the ITS. Also it must be restored after GITS_CBASER since a write to GITS_CBASER resets GITS_CREADR. - GITS_IIDR. The Revision field encodes the table layout ABI revision. In the future we might implement direct injection of virtual LPIs. This will require an upgrade of the table layout and an evolution of the ABI. GITS_IIDR must be restored before calling KVM_DEV_ARM_ITS_RESTORE_TABLES. For other registers, getting or setting a register has the same effect as reading/writing the register on real hardware. h](h)}(h Attributes:h]h Attributes:}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKshj.ubh)}(hhh](h)}(hThe attr field of kvm_device_attr encodes the offset of the ITS register, relative to the ITS control frame base address (ITS_base).h]hThe attr field of kvm_device_attr encodes the offset of the ITS register, relative to the ITS control frame base address (ITS_base).}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK]hj@ubh)}(hkvm_device_attr.addr points to a __u64 value whatever the width of the addressed register (32/64 bits). 64 bit registers can only be accessed with full length.h]hkvm_device_attr.addr points to a __u64 value whatever the width of the addressed register (32/64 bits). 64 bit registers can only be accessed with full length.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKahj@ubh)}(hCWrites to read-only registers are ignored by the kernel except for:h]hCWrites to read-only registers are ignored by the kernel except for:}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKehj@ubh bullet_list)}(hhh](h list_item)}(hX(GITS_CREADR. It must be restored otherwise commands in the queue will be re-executed after restoring CWRITER. GITS_CREADR must be restored before restoring the GITS_CTLR which is likely to enable the ITS. Also it must be restored after GITS_CBASER since a write to GITS_CBASER resets GITS_CREADR.h]h)}(hX(GITS_CREADR. It must be restored otherwise commands in the queue will be re-executed after restoring CWRITER. GITS_CREADR must be restored before restoring the GITS_CTLR which is likely to enable the ITS. Also it must be restored after GITS_CBASER since a write to GITS_CBASER resets GITS_CREADR.h]hX(GITS_CREADR. It must be restored otherwise commands in the queue will be re-executed after restoring CWRITER. GITS_CREADR must be restored before restoring the GITS_CTLR which is likely to enable the ITS. Also it must be restored after GITS_CBASER since a write to GITS_CBASER resets GITS_CREADR.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKghjtubah}(h]h ]h"]h$]h&]uh1jrhjoubjs)}(hX GITS_IIDR. The Revision field encodes the table layout ABI revision. In the future we might implement direct injection of virtual LPIs. This will require an upgrade of the table layout and an evolution of the ABI. GITS_IIDR must be restored before calling KVM_DEV_ARM_ITS_RESTORE_TABLES. h]h)}(hXGITS_IIDR. The Revision field encodes the table layout ABI revision. In the future we might implement direct injection of virtual LPIs. This will require an upgrade of the table layout and an evolution of the ABI. GITS_IIDR must be restored before calling KVM_DEV_ARM_ITS_RESTORE_TABLES.h]hXGITS_IIDR. The Revision field encodes the table layout ABI revision. In the future we might implement direct injection of virtual LPIs. This will require an upgrade of the table layout and an evolution of the ABI. GITS_IIDR must be restored before calling KVM_DEV_ARM_ITS_RESTORE_TABLES.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKlhjubah}(h]h ]h"]h$]h&]uh1jrhjoubeh}(h]h ]h"]h$]h&]bullet-uh1jmhhhKghj@ubh)}(hxFor other registers, getting or setting a register has the same effect as reading/writing the register on real hardware.h]hxFor other registers, getting or setting a register has the same effect as reading/writing the register on real hardware.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKrhj@ubeh}(h]h ]h"]h$]h&]uh1hhj.ubeh}(h]h ]h"]h$]h&]uh1hhhhKshj+ubah}(h]h ]h"]h$]h&]uh1hhj'ubh)}(hErrors:h]hErrors:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKuhj'ubj^)}(hX4======= ==================================================== -ENXIO Offset does not correspond to any supported register -EFAULT Invalid user pointer for attr->addr -EINVAL Offset is not 64-bit aligned -EBUSY one or more VCPUS are running ======= ==================================================== h]j)}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK4uh1jhjubj)}(hhh](j)}(hhh](j)}(hhh]h)}(h-ENXIOh]h-ENXIO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKxhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h4Offset does not correspond to any supported registerh]h4Offset does not correspond to any supported register}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKxhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h-EFAULTh]h-EFAULT}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKyhj5ubah}(h]h ]h"]h$]h&]uh1jhj2ubj)}(hhh]h)}(h#Invalid user pointer for attr->addrh]h#Invalid user pointer for attr->addr}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKyhjLubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h-EINVALh]h-EINVAL}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKzhjlubah}(h]h ]h"]h$]h&]uh1jhjiubj)}(hhh]h)}(hOffset is not 64-bit alignedh]hOffset is not 64-bit aligned}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKzhjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h-EBUSYh]h-EBUSY}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK{hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hone or more VCPUS are runningh]hone or more VCPUS are running}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK{hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j]hhhKwhj'ubeh}(h]h ]h"]h$]h&]uh1j]hhhK\hjhhubeh}(h]kvm-dev-arm-vgic-grp-its-regsah ]h"]kvm_dev_arm_vgic_grp_its_regsah$]h&]uh1hhj;hhhhhKZubh)}(hhh](h)}(hITS Restore Sequence:h]hITS Restore Sequence:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(h_The following ordering must be followed when restoring the GIC, ITS, and KVM_IRQFD assignments:h]h_The following ordering must be followed when restoring the GIC, ITS, and KVM_IRQFD assignments:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubhenumerated_list)}(hhh](js)}(h)restore all guest memory and create vcpush]h)}(hj$h]h)restore all guest memory and create vcpus}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj"ubah}(h]h ]h"]h$]h&]uh1jrhjhhhhhNubjs)}(hrestore all redistributorsh]h)}(hj;h]hrestore all redistributors}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj9ubah}(h]h ]h"]h$]h&]uh1jrhjhhhhhNubjs)}(h8provide the ITS base address (KVM_DEV_ARM_VGIC_GRP_ADDR)h]h)}(h8provide the ITS base address (KVM_DEV_ARM_VGIC_GRP_ADDR)h]h8provide the ITS base address (KVM_DEV_ARM_VGIC_GRP_ADDR)}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjPubah}(h]h ]h"]h$]h&]uh1jrhjhhhhhNubjs)}(hrestore the ITS in the following order: 1. Restore GITS_CBASER 2. Restore all other ``GITS_`` registers, except GITS_CTLR! 3. Load the ITS table data (KVM_DEV_ARM_ITS_RESTORE_TABLES) 4. Restore GITS_CTLR h](h)}(h'restore the ITS in the following order:h]h'restore the ITS in the following order:}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhubj^)}(h1. Restore GITS_CBASER 2. Restore all other ``GITS_`` registers, except GITS_CTLR! 3. Load the ITS table data (KVM_DEV_ARM_ITS_RESTORE_TABLES) 4. Restore GITS_CTLR h]j)}(hhh](js)}(hRestore GITS_CBASERh]h)}(hjh]hRestore GITS_CBASER}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jrhj~ubjs)}(h8Restore all other ``GITS_`` registers, except GITS_CTLR!h]h)}(hjh](hRestore all other }(hjhhhNhNubhliteral)}(h ``GITS_``h]hGITS_}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh registers, except GITS_CTLR!}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jrhj~ubjs)}(h8Load the ITS table data (KVM_DEV_ARM_ITS_RESTORE_TABLES)h]h)}(hjh]h8Load the ITS table data (KVM_DEV_ARM_ITS_RESTORE_TABLES)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jrhj~ubjs)}(hRestore GITS_CTLR h]h)}(hRestore GITS_CTLRh]hRestore GITS_CTLR}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jrhj~ubeh}(h]h ]h"]h$]h&]enumtypearabicprefixhsuffix.uh1jhjzubah}(h]h ]h"]h$]h&]uh1j]hhhKhjhubeh}(h]h ]h"]h$]h&]uh1jrhjhhhhhNubjs)}(h'restore KVM_IRQFD assignments for MSIs h]h)}(h&restore KVM_IRQFD assignments for MSIsh]h&restore KVM_IRQFD assignments for MSIs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jrhjhhhhhNubeh}(h]h ]h"]h$]h&]j loweralphajhj)uh1jhjhhhhhKubh)}(hThen vcpus can be started.h]hThen vcpus can be started.}(hj) hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]its-restore-sequenceah ]h"]its restore sequence:ah$]h&]uh1hhj;hhhhhKubh)}(hhh](h)}(hITS Table ABI REV0:h]hITS Table ABI REV0:}(hjB hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj? hhhhhKubj^)}(hXRevision 0 of the ABI only supports the features of a virtual GICv3, and does not support a virtual GICv4 with support for direct injection of virtual interrupts for nested hypervisors. The device table and ITT are indexed by the DeviceID and EventID, respectively. The collection table is not indexed by CollectionID, and the entries in the collection are listed in no particular order. All entries are 8 bytes. Device Table Entry (DTE):: bits: | 63| 62 ... 49 | 48 ... 5 | 4 ... 0 | values: | V | next | ITT_addr | Size | where: - V indicates whether the entry is valid. If not, other fields are not meaningful. - next: equals to 0 if this entry is the last one; otherwise it corresponds to the DeviceID offset to the next DTE, capped by 2^14 -1. - ITT_addr matches bits [51:8] of the ITT address (256 Byte aligned). - Size specifies the supported number of bits for the EventID, minus one Collection Table Entry (CTE):: bits: | 63| 62 .. 52 | 51 ... 16 | 15 ... 0 | values: | V | RES0 | RDBase | ICID | where: - V indicates whether the entry is valid. If not, other fields are not meaningful. - RES0: reserved field with Should-Be-Zero-or-Preserved behavior. - RDBase is the PE number (GICR_TYPER.Processor_Number semantic), - ICID is the collection ID Interrupt Translation Entry (ITE):: bits: | 63 ... 48 | 47 ... 16 | 15 ... 0 | values: | next | pINTID | ICID | where: - next: equals to 0 if this entry is the last one; otherwise it corresponds to the EventID offset to the next ITE capped by 2^16 -1. - pINTID is the physical LPI ID; if zero, it means the entry is not valid and other fields are not meaningful. - ICID is the collection ID h](h)}(hRevision 0 of the ABI only supports the features of a virtual GICv3, and does not support a virtual GICv4 with support for direct injection of virtual interrupts for nested hypervisors.h]hRevision 0 of the ABI only supports the features of a virtual GICv3, and does not support a virtual GICv4 with support for direct injection of virtual interrupts for nested hypervisors.}(hjT hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjP ubh)}(hThe device table and ITT are indexed by the DeviceID and EventID, respectively. The collection table is not indexed by CollectionID, and the entries in the collection are listed in no particular order. All entries are 8 bytes.h]hThe device table and ITT are indexed by the DeviceID and EventID, respectively. The collection table is not indexed by CollectionID, and the entries in the collection are listed in no particular order. All entries are 8 bytes.}(hjb hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjP ubh)}(hDevice Table Entry (DTE)::h]hDevice Table Entry (DTE):}(hjp hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjP ubh literal_block)}(habits: | 63| 62 ... 49 | 48 ... 5 | 4 ... 0 | values: | V | next | ITT_addr | Size |h]habits: | 63| 62 ... 49 | 48 ... 5 | 4 ... 0 | values: | V | next | ITT_addr | Size |}hj sbah}(h]h ]h"]h$]h&]hhuh1j~ hhhKhjP ubh)}(hwhere:h]hwhere:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjP ubjn)}(hhh](js)}(hPV indicates whether the entry is valid. If not, other fields are not meaningful.h]h)}(hPV indicates whether the entry is valid. If not, other fields are not meaningful.h]hPV indicates whether the entry is valid. If not, other fields are not meaningful.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jrhj ubjs)}(hnext: equals to 0 if this entry is the last one; otherwise it corresponds to the DeviceID offset to the next DTE, capped by 2^14 -1.h]h)}(hnext: equals to 0 if this entry is the last one; otherwise it corresponds to the DeviceID offset to the next DTE, capped by 2^14 -1.h]hnext: equals to 0 if this entry is the last one; otherwise it corresponds to the DeviceID offset to the next DTE, capped by 2^14 -1.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jrhj ubjs)}(hCITT_addr matches bits [51:8] of the ITT address (256 Byte aligned).h]h)}(hj h]hCITT_addr matches bits [51:8] of the ITT address (256 Byte aligned).}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jrhj ubjs)}(hGSize specifies the supported number of bits for the EventID, minus one h]h)}(hFSize specifies the supported number of bits for the EventID, minus oneh]hFSize specifies the supported number of bits for the EventID, minus one}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jrhj ubeh}(h]h ]h"]h$]h&]jjuh1jmhhhKhjP ubh)}(hCollection Table Entry (CTE)::h]hCollection Table Entry (CTE):}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjP ubj )}(hmbits: | 63| 62 .. 52 | 51 ... 16 | 15 ... 0 | values: | V | RES0 | RDBase | ICID |h]hmbits: | 63| 62 .. 52 | 51 ... 16 | 15 ... 0 | values: | V | RES0 | RDBase | ICID |}hj sbah}(h]h ]h"]h$]h&]hhuh1j~ hhhKhjP ubh)}(hwhere:h]hwhere:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjP ubjn)}(hhh](js)}(hPV indicates whether the entry is valid. If not, other fields are not meaningful.h]h)}(hPV indicates whether the entry is valid. If not, other fields are not meaningful.h]hPV indicates whether the entry is valid. If not, other fields are not meaningful.}(hj5 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj1 ubah}(h]h ]h"]h$]h&]uh1jrhj. ubjs)}(h?RES0: reserved field with Should-Be-Zero-or-Preserved behavior.h]h)}(hjK h]h?RES0: reserved field with Should-Be-Zero-or-Preserved behavior.}(hjM hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjI ubah}(h]h ]h"]h$]h&]uh1jrhj. ubjs)}(h?RDBase is the PE number (GICR_TYPER.Processor_Number semantic),h]h)}(hjb h]h?RDBase is the PE number (GICR_TYPER.Processor_Number semantic),}(hjd hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj` ubah}(h]h ]h"]h$]h&]uh1jrhj. ubjs)}(hICID is the collection ID h]h)}(hICID is the collection IDh]hICID is the collection ID}(hj{ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjw ubah}(h]h ]h"]h$]h&]uh1jrhj. ubeh}(h]h ]h"]h$]h&]jjuh1jmhhhKhjP ubh)}(h#Interrupt Translation Entry (ITE)::h]h"Interrupt Translation Entry (ITE):}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjP ubj )}(h]bits: | 63 ... 48 | 47 ... 16 | 15 ... 0 | values: | next | pINTID | ICID |h]h]bits: | 63 ... 48 | 47 ... 16 | 15 ... 0 | values: | next | pINTID | ICID |}hj sbah}(h]h ]h"]h$]h&]hhuh1j~ hhhKhjP ubh)}(hwhere:h]hwhere:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjP ubjn)}(hhh](js)}(hnext: equals to 0 if this entry is the last one; otherwise it corresponds to the EventID offset to the next ITE capped by 2^16 -1.h]h)}(hnext: equals to 0 if this entry is the last one; otherwise it corresponds to the EventID offset to the next ITE capped by 2^16 -1.h]hnext: equals to 0 if this entry is the last one; otherwise it corresponds to the EventID offset to the next ITE capped by 2^16 -1.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jrhj ubjs)}(hlpINTID is the physical LPI ID; if zero, it means the entry is not valid and other fields are not meaningful.h]h)}(hlpINTID is the physical LPI ID; if zero, it means the entry is not valid and other fields are not meaningful.h]hlpINTID is the physical LPI ID; if zero, it means the entry is not valid and other fields are not meaningful.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jrhj ubjs)}(hICID is the collection ID h]h)}(hICID is the collection IDh]hICID is the collection ID}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jrhj ubeh}(h]h ]h"]h$]h&]jjuh1jmhhhKhjP ubeh}(h]h ]h"]h$]h&]uh1j]hhhKhj? hhubeh}(h]its-table-abi-rev0ah ]h"]its table abi rev0:ah$]h&]uh1hhj;hhhhhKubh)}(hhh](h)}(hITS Reset State:h]hITS Reset State:}(hj! hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhKubh)}(hRESET returns the ITS to the same state that it was when first created and initialized. When the RESET command returns, the following things are guaranteed:h]hRESET returns the ITS to the same state that it was when first created and initialized. When the RESET command returns, the following things are guaranteed:}(hj/ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj hhubjn)}(hhh](js)}(hGThe ITS is not enabled and quiescent GITS_CTLR.Enabled = 0 .Quiescent=1h]h)}(hGThe ITS is not enabled and quiescent GITS_CTLR.Enabled = 0 .Quiescent=1h]hGThe ITS is not enabled and quiescent GITS_CTLR.Enabled = 0 .Quiescent=1}(hjD hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj@ ubah}(h]h ]h"]h$]h&]uh1jrhj= hhhhhNubjs)}(h#There is no internally cached stateh]h)}(hjZ h]h#There is no internally cached state}(hj\ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjX ubah}(h]h ]h"]h$]h&]uh1jrhj= hhhhhNubjs)}(h>No collection or device table are used GITS_BASER.Valid = 0h]h)}(h>No collection or device table are used GITS_BASER.Valid = 0h]h>No collection or device table are used GITS_BASER.Valid = 0}(hjs hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjo ubah}(h]h ]h"]h$]h&]uh1jrhj= hhhhhNubjs)}(h2GITS_CBASER = 0, GITS_CREADR = 0, GITS_CWRITER = 0h]h)}(hj h]h2GITS_CBASER = 0, GITS_CREADR = 0, GITS_CWRITER = 0}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jrhj= hhhhhNubjs)}(h[The ABI version is unchanged and remains the one set when the ITS device was first created.h]h)}(h[The ABI version is unchanged and remains the one set when the ITS device was first created.h]h[The ABI version is unchanged and remains the one set when the ITS device was first created.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jrhj= hhhhhNubeh}(h]h ]h"]h$]h&]jjuh1jmhhhKhj hhubeh}(h]its-reset-stateah ]h"]its reset state:ah$]h&]uh1hhj;hhhhhKubeh}(h]groupsah ]h"]groupsah$]h&]uh1hhhhhhhhKubeh}(h]-arm-virtual-interrupt-translation-service-itsah ]h"]/arm virtual interrupt translation service (its)ah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksjfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerj error_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourcehnj _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(j j j j j7j4jjjjj< j9 j j j j u nametypes}(j j j7jjj< j j uh}(j hj j;j4jLjj:jjj9 jj j? j j u footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages] transformerN include_log] decorationNhhub.