• Andrew Cooper's avatar
    x86/spec-ctrl: Infrastructure to use VERW to flush pipeline buffers · 548a932a
    Andrew Cooper authored
    
    Three synthetic features are introduced, as we need individual control of
    each, depending on circumstances.  A later change will enable them at
    appropriate points.
    
    The verw_sel field doesn't strictly need to live in struct cpu_info.  It lives
    there because there is a convenient hole it can fill, and it reduces the
    complexity of the SPEC_CTRL_EXIT_TO_{PV,HVM} assembly by avoiding the need for
    any temporary stack maintenance.
    
    This is part of XSA-297, CVE-2018-12126, CVE-2018-12127, CVE-2018-12130, CVE-2019-11091.
    Signed-off-by: default avatarAndrew Cooper <andrew.cooper3@citrix.com>
    Reviewed-by: default avatarJan Beulich <jbeulich@suse.com>
    548a932a
spec_ctrl_asm.h 10.8 KB