€•ðhŒ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Œ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”…””}”(hhðhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîhhæ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”…””}”(hj!hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¦hjhž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:”…””}”(hj/hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K!hjhž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”…””}”hjTsbah}”(h]”h ]”h"]”h$]”h&]”uh1jRhjNubhŒoption_argument”“”)”}”(hŒRCH_GET_XCOMP_SUPP”h]”hŒRCH_GET_XCOMP_SUPP”…””}”(hjdhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”Œ delimiter”huh1jbhjNubeh}”(h]”h ]”h"]”h$]”h&]”uh1jLhjIubah}”(h]”h ]”h"]”h$]”h&]”uh1jGhjDubhŒ 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'hjubh¸)”}”(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)hjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhjDubeh}”(h]”h ]”h"]”h$]”h&]”uh1jBhj?hžhhŸh¶h NubjC)”}”(hhh]”(jH)”}”(hhh]”jM)”}”(hŒ-ARCH_GET_XCOMP_PERM”h]”(jS)”}”(hŒ-A”h]”hŒ-A”…””}”hj·sbah}”(h]”h ]”h"]”h$]”h&]”uh1jRhj³ubjc)”}”(hŒRCH_GET_XCOMP_PERM”h]”hŒRCH_GET_XCOMP_PERM”…””}”(hjÅhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”Œ delimiter”huh1jbhj³ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jLhj°ubah}”(h]”h ]”h"]”h$]”h&]”uh1jGhj­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.”…””}”(hjòhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K0hjàubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhj­ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jBhj?hžhhŸh¶h NubjC)”}”(hhh]”(jH)”}”(hhh]”jM)”}”(hŒ-ARCH_REQ_XCOMP_PERM”h]”(jS)”}”(hŒ-A”h]”hŒ-A”…””}”hjsbah}”(h]”h ]”h"]”h$]”h&]”uh1jRhjubjc)”}”(hŒRCH_REQ_XCOMP_PERM”h]”hŒRCH_REQ_XCOMP_PERM”…””}”(hj$hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”Œ delimiter”huh1jbhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jLhjubah}”(h]”h ]”h"]”h$]”h&]”uh1jGhj 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);”…””}”(hjChžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K6hj?ubh¸)”}”(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.”…””}”(hjQhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K8hj?ubh¸)”}”(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.”…””}”(hj_hž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 Kzhjÿubjè)”}”(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");”…””}”hjsbah}”(h]”h ]”h"]”h$]”h&]”j÷jøuh1jçhŸh¶h K}hjÿubeh}”(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.”…””}”(hj6hž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¡hjhž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”…””}”(hjWhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¦hjThž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.”…””}”(hjehžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KhjThž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¦hj{hž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–hj{hžhubj>)”}”(hhh]”(jC)”}”(hhh]”(jH)”}”(hhh]”jM)”}”(hŒ-ARCH_GET_XCOMP_GUEST_PERM”h]”(jS)”}”(hŒ-A”h]”hŒ-A”…””}”hj§sbah}”(h]”h ]”h"]”h$]”h&]”uh1jRhj£ubjc)”}”(hŒRCH_GET_XCOMP_GUEST_PERM”h]”hŒRCH_GET_XCOMP_GUEST_PERM”…””}”(hjµhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”Œ delimiter”huh1jbhj£ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jLhj ubah}”(h]”h ]”h"]”h$]”h&]”uh1jGhjubj€)”}”(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&]”uh1jhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jBhjšhžhhŸh¶h NubjC)”}”(hhh]”(jH)”}”(hhh]”jM)”}”(hŒ-ARCH_REQ_XCOMP_GUEST_PERM”h]”(jS)”}”(hŒ-A”h]”hŒ-A”…””}”hjsbah}”(h]”h ]”h"]”h$]”h&]”uh1jRhjubjc)”}”(hŒRCH_REQ_XCOMP_GUEST_PERM”h]”hŒRCH_REQ_XCOMP_GUEST_PERM”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”Œ delimiter”huh1jbhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jLhjÿubah}”(h]”h ]”h"]”h$]”h&]”uh1jGhjüubj€)”}”(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);”…””}”(hj3hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K¤hj/ubh¸)”}”(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.”…””}”(hjAhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K¦hj/ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhjüubeh}”(h]”h ]”h"]”h$]”h&]”uh1jBhjšhžhhŸh¶h Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1j=hŸh¶h Kšhj{hž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.”…””}”(hjahžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K­hj{hž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”}”(j|jyjjjQjNjIjFjxjujtjquŒ nametypes”}”(j|‰j‰jQ‰jI‰jx‰jt‰uh}”(jyh£jhÕjNjjFj©jujTjqj{uŒ 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.