€•ÅiŒsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ#/translations/zh_CN/arch/x86/xstate”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ#/translations/zh_TW/arch/x86/xstate”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ#/translations/it_IT/arch/x86/xstate”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ#/translations/ja_JP/arch/x86/xstate”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ#/translations/ko_KR/arch/x86/xstate”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒPortuguese (Brazilian)”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ#/translations/pt_BR/arch/x86/xstate”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ#/translations/sp_SP/arch/x86/xstate”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒ0Using XSTATE features in user space applications”h]”hŒ0Using XSTATE features in user space applications”…””}”(hh¼h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhh·h²hh³Œ=/var/lib/git/docbuild/linux/Documentation/arch/x86/xstate.rst”h´KubhŒ paragraph”“”)”}”(hŒÂThe x86 architecture supports floating-point extensions which are enumerated via CPUID. Applications consult CPUID and use XGETBV to evaluate which features have been enabled by the kernel XCR0.”h]”hŒÂThe x86 architecture supports floating-point extensions which are enumerated via CPUID. Applications consult CPUID and use XGETBV to evaluate which features have been enabled by the kernel XCR0.”…””}”(hhÍh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khh·h²hubhÌ)”}”(hXJUp to AVX-512 and PKRU states, these features are automatically enabled by the kernel if available. Features like AMX TILE_DATA (XSTATE component 18) are enabled by XCR0 as well, but the first use of related instruction is trapped by the kernel because by default the required large XSTATE buffers are not allocated automatically.”h]”hXJUp to AVX-512 and PKRU states, these features are automatically enabled by the kernel if available. Features like AMX TILE_DATA (XSTATE component 18) are enabled by XCR0 as well, but the first use of related instruction is trapped by the kernel because by default the required large XSTATE buffers are not allocated automatically.”…””}”(hhÛh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khh·h²hubh¶)”}”(hhh]”(h»)”}”(hŒ The purpose for dynamic features”h]”hŒ The purpose for dynamic features”…””}”(hhìh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhhéh²hh³hÊh´KubhÌ)”}”(hXKLegacy userspace libraries often have hard-coded, static sizes for alternate signal stacks, often using MINSIGSTKSZ which is typically 2KB. That stack must be able to store at *least* the signal frame that the kernel sets up before jumping into the signal handler. That signal frame must include an XSAVE buffer defined by the CPU.”h]”(hŒ°Legacy userspace libraries often have hard-coded, static sizes for alternate signal stacks, often using MINSIGSTKSZ which is typically 2KB. That stack must be able to store at ”…””}”(hhúh²hh³Nh´NubhŒemphasis”“”)”}”(hŒ*least*”h]”hŒleast”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jhhúubhŒ” the signal frame that the kernel sets up before jumping into the signal handler. That signal frame must include an XSAVE buffer defined by the CPU.”…””}”(hhúh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khhéh²hubhÌ)”}”(hX‚However, that means that the size of signal stacks is dynamic, not static, because different CPUs have differently-sized XSAVE buffers. A compiled-in size of 2KB with existing applications is too small for new CPU features like AMX. Instead of universally requiring larger stack, with the dynamic enabling, the kernel can enforce userspace applications to have properly-sized altstacks.”h]”hX‚However, that means that the size of signal stacks is dynamic, not static, because different CPUs have differently-sized XSAVE buffers. A compiled-in size of 2KB with existing applications is too small for new CPU features like AMX. Instead of universally requiring larger stack, with the dynamic enabling, the kernel can enforce userspace applications to have properly-sized altstacks.”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khhéh²hubeh}”(h]”Œ the-purpose-for-dynamic-features”ah ]”h"]”Œ the purpose for dynamic features”ah$]”h&]”uh1hµhh·h²hh³hÊh´Kubh¶)”}”(hhh]”(h»)”}”(hŒDUsing dynamically enabled XSTATE features in user space applications”h]”hŒDUsing dynamically enabled XSTATE features in user space applications”…””}”(hj5h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj2h²hh³hÊh´KubhÌ)”}”(hŒ›The kernel provides an arch_prctl(2) based mechanism for applications to request the usage of such features. The arch_prctl(2) options related to this are:”h]”hŒ›The kernel provides an arch_prctl(2) based mechanism for applications to request the usage of such features. The arch_prctl(2) options related to this are:”…””}”(hjCh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K!hj2h²hubhŒ option_list”“”)”}”(hhh]”(hŒoption_list_item”“”)”}”(hhh]”(hŒ option_group”“”)”}”(hhh]”hŒoption”“”)”}”(hŒ-ARCH_GET_XCOMP_SUPP”h]”(hŒ option_string”“”)”}”(hŒ-A”h]”hŒ-A”…””}”hjhsbah}”(h]”h ]”h"]”h$]”h&]”uh1jfhjbubhŒoption_argument”“”)”}”(hŒRCH_GET_XCOMP_SUPP”h]”hŒRCH_GET_XCOMP_SUPP”…””}”(hjxh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œ delimiter”huh1jvhjbubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`hj]ubah}”(h]”h ]”h"]”h$]”h&]”uh1j[hjXubhŒ description”“”)”}”(hŒ¸arch_prctl(ARCH_GET_XCOMP_SUPP, &features); ARCH_GET_XCOMP_SUPP stores the supported features in userspace storage of type uint64_t. The second argument is a pointer to that storage. ”h]”(hÌ)”}”(hŒ+arch_prctl(ARCH_GET_XCOMP_SUPP, &features);”h]”hŒ+arch_prctl(ARCH_GET_XCOMP_SUPP, &features);”…””}”(hj™h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K'hj•ubhÌ)”}”(hŒŠARCH_GET_XCOMP_SUPP stores the supported features in userspace storage of type uint64_t. The second argument is a pointer to that storage.”h]”hŒŠARCH_GET_XCOMP_SUPP stores the supported features in userspace storage of type uint64_t. The second argument is a pointer to that storage.”…””}”(hj§h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K)hj•ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j“hjXubeh}”(h]”h ]”h"]”h$]”h&]”uh1jVhjSh²hh³hÊh´NubjW)”}”(hhh]”(j\)”}”(hhh]”ja)”}”(hŒ-ARCH_GET_XCOMP_PERM”h]”(jg)”}”(hŒ-A”h]”hŒ-A”…””}”hjËsbah}”(h]”h ]”h"]”h$]”h&]”uh1jfhjÇubjw)”}”(hŒRCH_GET_XCOMP_PERM”h]”hŒRCH_GET_XCOMP_PERM”…””}”(hjÙh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œ delimiter”huh1jvhjÇubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`hjÄubah}”(h]”h ]”h"]”h$]”h&]”uh1j[hjÁubj”)”}”(hŒÝarch_prctl(ARCH_GET_XCOMP_PERM, &features); ARCH_GET_XCOMP_PERM stores the features for which the userspace process has permission in userspace storage of type uint64_t. The second argument is a pointer to that storage. ”h]”(hÌ)”}”(hŒ+arch_prctl(ARCH_GET_XCOMP_PERM, &features);”h]”hŒ+arch_prctl(ARCH_GET_XCOMP_PERM, &features);”…””}”(hjøh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K.hjôubhÌ)”}”(hŒ¯ARCH_GET_XCOMP_PERM stores the features for which the userspace process has permission in userspace storage of type uint64_t. The second argument is a pointer to that storage.”h]”hŒ¯ARCH_GET_XCOMP_PERM stores the features for which the userspace process has permission in userspace storage of type uint64_t. The second argument is a pointer to that storage.”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K0hjôubeh}”(h]”h ]”h"]”h$]”h&]”uh1j“hjÁubeh}”(h]”h ]”h"]”h$]”h&]”uh1jVhjSh²hh³hÊh´NubjW)”}”(hhh]”(j\)”}”(hhh]”ja)”}”(hŒ-ARCH_REQ_XCOMP_PERM”h]”(jg)”}”(hŒ-A”h]”hŒ-A”…””}”hj*sbah}”(h]”h ]”h"]”h$]”h&]”uh1jfhj&ubjw)”}”(hŒRCH_REQ_XCOMP_PERM”h]”hŒRCH_REQ_XCOMP_PERM”…””}”(hj8h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œ delimiter”huh1jvhj&ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`hj#ubah}”(h]”h ]”h"]”h$]”h&]”uh1j[hj ubj”)”}”(hXsarch_prctl(ARCH_REQ_XCOMP_PERM, feature_nr); ARCH_REQ_XCOMP_PERM allows to request permission for a dynamically enabled feature or a feature set. A feature set can be mapped to a facility, e.g. AMX, and can require one or more XSTATE components to be enabled. The feature argument is the number of the highest XSTATE component which is required for a facility to work. ”h]”(hÌ)”}”(hŒ,arch_prctl(ARCH_REQ_XCOMP_PERM, feature_nr);”h]”hŒ,arch_prctl(ARCH_REQ_XCOMP_PERM, feature_nr);”…””}”(hjWh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K6hjSubhÌ)”}”(hŒÖARCH_REQ_XCOMP_PERM allows to request permission for a dynamically enabled feature or a feature set. A feature set can be mapped to a facility, e.g. AMX, and can require one or more XSTATE components to be enabled.”h]”hŒÖARCH_REQ_XCOMP_PERM allows to request permission for a dynamically enabled feature or a feature set. A feature set can be mapped to a facility, e.g. AMX, and can require one or more XSTATE components to be enabled.”…””}”(hjeh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K8hjSubhÌ)”}”(hŒlThe feature argument is the number of the highest XSTATE component which is required for a facility to work.”h]”hŒlThe feature argument is the number of the highest XSTATE component which is required for a facility to work.”…””}”(hjsh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K #include #include #include #ifndef ARCH_GET_XCOMP_SUPP #define ARCH_GET_XCOMP_SUPP 0x1021 #endif #ifndef ARCH_XCOMP_TILECFG #define ARCH_XCOMP_TILECFG 17 #endif #ifndef ARCH_XCOMP_TILEDATA #define ARCH_XCOMP_TILEDATA 18 #endif #define MASK_XCOMP_TILE ((1 << ARCH_XCOMP_TILECFG) | \ (1 << ARCH_XCOMP_TILEDATA)) unsigned long features; long rc; ... rc = syscall(SYS_arch_prctl, ARCH_GET_XCOMP_SUPP, &features); if (!rc && (features & MASK_XCOMP_TILE) == MASK_XCOMP_TILE) printf("AMX is available.\n"); 2. After that, determining support for AMX, an application must explicitly ask permission to use it:: #ifndef ARCH_REQ_XCOMP_PERM #define ARCH_REQ_XCOMP_PERM 0x1023 #endif ... rc = syscall(SYS_arch_prctl, ARCH_REQ_XCOMP_PERM, ARCH_XCOMP_TILEDATA); if (!rc) printf("AMX is ready for use.\n"); ”h]”hŒenumerated_list”“”)”}”(hhh]”(hŒ list_item”“”)”}”(hXåThe application first needs to query the kernel for AMX support:: #include #include #include #include #ifndef ARCH_GET_XCOMP_SUPP #define ARCH_GET_XCOMP_SUPP 0x1021 #endif #ifndef ARCH_XCOMP_TILECFG #define ARCH_XCOMP_TILECFG 17 #endif #ifndef ARCH_XCOMP_TILEDATA #define ARCH_XCOMP_TILEDATA 18 #endif #define MASK_XCOMP_TILE ((1 << ARCH_XCOMP_TILECFG) | \ (1 << ARCH_XCOMP_TILEDATA)) unsigned long features; long rc; ... rc = syscall(SYS_arch_prctl, ARCH_GET_XCOMP_SUPP, &features); if (!rc && (features & MASK_XCOMP_TILE) == MASK_XCOMP_TILE) printf("AMX is available.\n"); ”h]”(hÌ)”}”(hŒAThe application first needs to query the kernel for AMX support::”h]”hŒ@The application first needs to query the kernel for AMX support:”…””}”(hjíh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KYhjéubhŒ literal_block”“”)”}”(hXb#include #include #include #include #ifndef ARCH_GET_XCOMP_SUPP #define ARCH_GET_XCOMP_SUPP 0x1021 #endif #ifndef ARCH_XCOMP_TILECFG #define ARCH_XCOMP_TILECFG 17 #endif #ifndef ARCH_XCOMP_TILEDATA #define ARCH_XCOMP_TILEDATA 18 #endif #define MASK_XCOMP_TILE ((1 << ARCH_XCOMP_TILECFG) | \ (1 << ARCH_XCOMP_TILEDATA)) unsigned long features; long rc; ... rc = syscall(SYS_arch_prctl, ARCH_GET_XCOMP_SUPP, &features); if (!rc && (features & MASK_XCOMP_TILE) == MASK_XCOMP_TILE) printf("AMX is available.\n");”h]”hXb#include #include #include #include #ifndef ARCH_GET_XCOMP_SUPP #define ARCH_GET_XCOMP_SUPP 0x1021 #endif #ifndef ARCH_XCOMP_TILECFG #define ARCH_XCOMP_TILECFG 17 #endif #ifndef ARCH_XCOMP_TILEDATA #define ARCH_XCOMP_TILEDATA 18 #endif #define MASK_XCOMP_TILE ((1 << ARCH_XCOMP_TILECFG) | \ (1 << ARCH_XCOMP_TILEDATA)) unsigned long features; long rc; ... rc = syscall(SYS_arch_prctl, ARCH_GET_XCOMP_SUPP, &features); if (!rc && (features & MASK_XCOMP_TILE) == MASK_XCOMP_TILE) printf("AMX is available.\n");”…””}”hjýsbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1jûh³hÊh´K\hjéubeh}”(h]”h ]”h"]”h$]”h&]”uh1jçhjäubjè)”}”(hX?After that, determining support for AMX, an application must explicitly ask permission to use it:: #ifndef ARCH_REQ_XCOMP_PERM #define ARCH_REQ_XCOMP_PERM 0x1023 #endif ... rc = syscall(SYS_arch_prctl, ARCH_REQ_XCOMP_PERM, ARCH_XCOMP_TILEDATA); if (!rc) printf("AMX is ready for use.\n"); ”h]”(hÌ)”}”(hŒbAfter that, determining support for AMX, an application must explicitly ask permission to use it::”h]”hŒaAfter that, determining support for AMX, an application must explicitly ask permission to use it:”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kzhjubjü)”}”(hŒÅ#ifndef ARCH_REQ_XCOMP_PERM #define ARCH_REQ_XCOMP_PERM 0x1023 #endif ... rc = syscall(SYS_arch_prctl, ARCH_REQ_XCOMP_PERM, ARCH_XCOMP_TILEDATA); if (!rc) printf("AMX is ready for use.\n");”h]”hŒÅ#ifndef ARCH_REQ_XCOMP_PERM #define ARCH_REQ_XCOMP_PERM 0x1023 #endif ... rc = syscall(SYS_arch_prctl, ARCH_REQ_XCOMP_PERM, ARCH_XCOMP_TILEDATA); if (!rc) printf("AMX is ready for use.\n");”…””}”hj%sbah}”(h]”h ]”h"]”h$]”h&]”j j uh1jûh³hÊh´K}hjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jçhjäubeh}”(h]”h ]”h"]”h$]”h&]”Œenumtype”Œarabic”Œprefix”hŒsuffix”Œ.”uh1jâhjÞubah}”(h]”h ]”h"]”h$]”h&]”uh1jÜh³hÊh´KYhj½h²hubhÌ)”}”(hŒ?Note this example does not include the sigaltstack preparation.”h]”hŒ?Note this example does not include the sigaltstack preparation.”…””}”(hjJh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kˆhj½h²hubeh}”(h]”Œamx-tile-data-enabling-example”ah ]”h"]”Œamx tile_data enabling example”ah$]”h&]”uh1hµhj2h²hh³hÊh´KTubeh}”(h]”ŒDusing-dynamically-enabled-xstate-features-in-user-space-applications”ah ]”h"]”ŒDusing dynamically enabled xstate features in user space applications”ah$]”h&]”uh1hµhh·h²hh³hÊh´Kubh¶)”}”(hhh]”(h»)”}”(hŒ!Dynamic features in signal frames”h]”hŒ!Dynamic features in signal frames”…””}”(hjkh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjhh²hh³hÊh´K‹ubhÌ)”}”(hXNDynamically enabled features are not written to the signal frame upon signal entry if the feature is in its initial configuration. This differs from non-dynamic features which are always written regardless of their configuration. Signal handlers can examine the XSAVE buffer's XSTATE_BV field to determine if a features was written.”h]”hXPDynamically enabled features are not written to the signal frame upon signal entry if the feature is in its initial configuration. This differs from non-dynamic features which are always written regardless of their configuration. Signal handlers can examine the XSAVE buffer’s XSTATE_BV field to determine if a features was written.”…””}”(hjyh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khjhh²hubeh}”(h]”Œ!dynamic-features-in-signal-frames”ah ]”h"]”Œ!dynamic features in signal frames”ah$]”h&]”uh1hµhh·h²hh³hÊh´K‹ubh¶)”}”(hhh]”(h»)”}”(hŒ%Dynamic features for virtual machines”h]”hŒ%Dynamic features for virtual machines”…””}”(hj’h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjh²hh³hÊh´K”ubhÌ)”}”(hŒÂThe permission for the guest state component needs to be managed separately from the host, as they are exclusive to each other. A coupled of options are extended to control the guest permission:”h]”hŒÂThe permission for the guest state component needs to be managed separately from the host, as they are exclusive to each other. A coupled of options are extended to control the guest permission:”…””}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K–hjh²hubjR)”}”(hhh]”(jW)”}”(hhh]”(j\)”}”(hhh]”ja)”}”(hŒ-ARCH_GET_XCOMP_GUEST_PERM”h]”(jg)”}”(hŒ-A”h]”hŒ-A”…””}”hj»sbah}”(h]”h ]”h"]”h$]”h&]”uh1jfhj·ubjw)”}”(hŒRCH_GET_XCOMP_GUEST_PERM”h]”hŒRCH_GET_XCOMP_GUEST_PERM”…””}”(hjÉh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œ delimiter”huh1jvhj·ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`hj´ubah}”(h]”h ]”h"]”h$]”h&]”uh1j[hj±ubj”)”}”(hŒÄarch_prctl(ARCH_GET_XCOMP_GUEST_PERM, &features); ARCH_GET_XCOMP_GUEST_PERM is a variant of ARCH_GET_XCOMP_PERM. So it provides the same semantics and functionality but for the guest components. ”h]”(hÌ)”}”(hŒ1arch_prctl(ARCH_GET_XCOMP_GUEST_PERM, &features);”h]”hŒ1arch_prctl(ARCH_GET_XCOMP_GUEST_PERM, &features);”…””}”(hjèh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KœhjäubhÌ)”}”(hŒARCH_GET_XCOMP_GUEST_PERM is a variant of ARCH_GET_XCOMP_PERM. So it provides the same semantics and functionality but for the guest components.”h]”hŒARCH_GET_XCOMP_GUEST_PERM is a variant of ARCH_GET_XCOMP_PERM. So it provides the same semantics and functionality but for the guest components.”…””}”(hjöh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kžhjäubeh}”(h]”h ]”h"]”h$]”h&]”uh1j“hj±ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jVhj®h²hh³hÊh´NubjW)”}”(hhh]”(j\)”}”(hhh]”ja)”}”(hŒ-ARCH_REQ_XCOMP_GUEST_PERM”h]”(jg)”}”(hŒ-A”h]”hŒ-A”…””}”hjsbah}”(h]”h ]”h"]”h$]”h&]”uh1jfhjubjw)”}”(hŒRCH_REQ_XCOMP_GUEST_PERM”h]”hŒRCH_REQ_XCOMP_GUEST_PERM”…””}”(hj(h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œ delimiter”huh1jvhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`hjubah}”(h]”h ]”h"]”h$]”h&]”uh1j[hjubj”)”}”(hXµarch_prctl(ARCH_REQ_XCOMP_GUEST_PERM, feature_nr); ARCH_REQ_XCOMP_GUEST_PERM is a variant of ARCH_REQ_XCOMP_PERM. It has the same semantics for the guest permission. While providing a similar functionality, this comes with a constraint. Permission is frozen when the first VCPU is created. Any attempt to change permission after that point is going to be rejected. So, the permission has to be requested before the first VCPU creation. ”h]”(hÌ)”}”(hŒ2arch_prctl(ARCH_REQ_XCOMP_GUEST_PERM, feature_nr);”h]”hŒ2arch_prctl(ARCH_REQ_XCOMP_GUEST_PERM, feature_nr);”…””}”(hjGh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K¤hjCubhÌ)”}”(hX€ARCH_REQ_XCOMP_GUEST_PERM is a variant of ARCH_REQ_XCOMP_PERM. It has the same semantics for the guest permission. While providing a similar functionality, this comes with a constraint. Permission is frozen when the first VCPU is created. Any attempt to change permission after that point is going to be rejected. So, the permission has to be requested before the first VCPU creation.”h]”hX€ARCH_REQ_XCOMP_GUEST_PERM is a variant of ARCH_REQ_XCOMP_PERM. It has the same semantics for the guest permission. While providing a similar functionality, this comes with a constraint. Permission is frozen when the first VCPU is created. Any attempt to change permission after that point is going to be rejected. So, the permission has to be requested before the first VCPU creation.”…””}”(hjUh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K¦hjCubeh}”(h]”h ]”h"]”h$]”h&]”uh1j“hjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jVhj®h²hh³hÊh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1jQh³hÊh´Kšhjh²hubhÌ)”}”(hŒ“Note that some VMMs may have already established a set of supported state components. These options are not presumed to support any particular VMM.”h]”hŒ“Note that some VMMs may have already established a set of supported state components. These options are not presumed to support any particular VMM.”…””}”(hjuh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K­hjh²hubeh}”(h]”Œ%dynamic-features-for-virtual-machines”ah ]”h"]”Œ%dynamic features for virtual machines”ah$]”h&]”uh1hµhh·h²hh³hÊh´K”ubeh}”(h]”Œ0using-xstate-features-in-user-space-applications”ah ]”h"]”Œ0using xstate features in user space applications”ah$]”h&]”uh1hµhhh²hh³hÊh´Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”hÊuh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)”}”(hºNŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”j¶Œerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”hÊŒ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”(jjj/j,jejbj]jZjŒj‰jˆj…uŒ nametypes”}”(j‰j/‰je‰j]‰jŒ‰jˆ‰uh}”(jh·j,héjbj2jZj½j‰jhj…juŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nh²hub.