title: Intel x86-64 XSAVE/XRSTOR
body: <p>I'm a CS student writing in Intel x86-64 assembly, compiling with <code>nasm</code>, and running on an Core i7 processor with Ubuntu 12.04 as the guest OS.  Does anyone have an example of how to use <code>XSAVE</code> and <code>XRSTOR</code>?  I've read the section on <code>XSAVE</code> in Intel Architectures Software Developers manual several times.  I tried to implement <code>xsave</code> in C++ and then disassemble the binary to get an understanding of what it's doing.  And of course I've scoured the Internet for examples.  Any suggestions would be much obliged.</p>