x86/traps: Initialize DR7 by writing its architectural reset value
commit fa7d0f83 upstream. Initialize DR7 by writing its architectural reset value to always set bit 10, which is reserved to '1', when "clearing" DR7 so as not to trigger unanticipated behavior if said bit is ever unreserved, e.g. as a feature enabling flag with inverted polarity. Signed-off-by:Xin Li (Intel) <xin@zytor.com> Signed-off-by:
Dave Hansen <dave.hansen@linux.intel.com> Reviewed-by:
H. Peter Anvin (Intel) <hpa@zytor.com> Reviewed-by:
Sohil Mehta <sohil.mehta@intel.com> Acked-by:
Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by:
Sean Christopherson <seanjc@google.com> Tested-by:
Sohil Mehta <sohil.mehta@intel.com> Cc:stable@vger.kernel.org Link: https://lore.kernel.org/all/20250620231504.2676902-3-xin%40zytor.com [ context adjusted: no KVM_DEBUGREG_AUTO_SWITCH flag test" ] Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Loading
Please sign in to comment