Here is update, I've removed garbage from the patch. Still explicit zeroifying of xsave frame and assign_regs macros remains. I need to think how to handle this in more elegant way.