When PV is disabled those symbols won't be available. It is impossible
for Xen to hit #DB there.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
if ( regs->eflags & X86_EFLAGS_TF )
{
+#ifdef CONFIG_PV
/* In SYSENTER entry path we can't zap TF until EFLAGS is saved. */
if ( (regs->rip >= (unsigned long)sysenter_entry) &&
(regs->rip <= (unsigned long)sysenter_eflags_saved) )
regs->eflags &= ~X86_EFLAGS_TF;
return;
}
+#endif
if ( !debugger_trap_fatal(TRAP_debug, regs) )
{
WARN();