>>> On 02.05.17 at 20:05, wrote:
> @@ -366,6 +367,16 @@ static always_inline void stac(void)
> LOAD_ONE_REG(bp, \compat)
> LOAD_ONE_REG(bx, \compat)
> subq $-(UREGS_error_code-UREGS_r15+\adj), %rsp
> +.if \compat
> +xor %r8d, %r8d
> +xor %r9d, %r9d
> +
In the presence of bugs such as XSA-214 where a 32bit PV guest can get its
hands on a long mode segment, this change prevents register content leaking
between domains.
Signed-off-by: Andrew Cooper
---
CC: Jan Beulich
---
xen/include/asm-x86/asm_defns.h | 13 -
1 file changed, 12 ins