Using XSETBV to write to XCR0 creates a general protection fault in a VM on hardware that supports MPX – Debian
I am trying to write to Extended Control Register 0 (xcr0) on an x86_64 Debian v7 virtual machine. My approach to doing so is through a kernel module (so CPL=0) with some inline assembly. However, I keep getting a general…