Commit a97be820 authored by Pavel Emelyanov's avatar Pavel Emelyanov

criu: Disable breakpoint-based restore temporarily

As described in issue #268, breakpoints degrades restore performance
in Xen guests. Untill we find out what's going on we disable them.
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent b9b34d42
...@@ -22,6 +22,14 @@ extern int fault_injection_init(void); ...@@ -22,6 +22,14 @@ extern int fault_injection_init(void);
static inline bool fault_injected(enum faults f) static inline bool fault_injected(enum faults f)
{ {
/*
* Temporary workaround for Xen guests. Breakpoints degrade
* performance linearly, so until we find out the reason,
* let's disable them.
*/
if (f == FI_NO_BREAKPOINTS)
return true;
return fi_strategy == f; return fi_strategy == f;
} }
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment