XGETBVXSETBV
XGETBV and XSETBV are x86 assembly instructions used to read and write the extended control register XCR0, which governs how the processor state is saved and restored by the operating system. They operate in conjunction with the XSAVE family of instructions and are essential for controlling which processor state components are preserved across context switches, such as x87, SSE, AVX, and newer extensions.
XGETBV reads the value of an extended control register specified by the ECX register and places the
The instructions are only usable if the CPU supports the XSETBV/XGETBV mechanism and the operating system supports
In practice, software uses XGETBV to query current state-saving settings and XSETBV to enable required states