|
@@ -334,19 +334,7 @@ void apply_paravirt(struct paravirt_patch *start, struct paravirt_patch *end)
|
|
|
|
|
|
used = paravirt_ops.patch(p->instrtype, p->clobbers, p->instr,
|
|
used = paravirt_ops.patch(p->instrtype, p->clobbers, p->instr,
|
|
p->len);
|
|
p->len);
|
|
-#ifdef CONFIG_DEBUG_PARAVIRT
|
|
|
|
- {
|
|
|
|
- int i;
|
|
|
|
- /* Deliberately clobber regs using "not %reg" to find bugs. */
|
|
|
|
- for (i = 0; i < 3; i++) {
|
|
|
|
- if (p->len - used >= 2 && (p->clobbers & (1 << i))) {
|
|
|
|
- memcpy(p->instr + used, "\xf7\xd0", 2);
|
|
|
|
- p->instr[used+1] |= i;
|
|
|
|
- used += 2;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-#endif
|
|
|
|
|
|
+
|
|
/* Pad the rest with nops */
|
|
/* Pad the rest with nops */
|
|
nop_out(p->instr + used, p->len - used);
|
|
nop_out(p->instr + used, p->len - used);
|
|
}
|
|
}
|