Il 13/12/2013 17:19, Gabriel L. Somlo ha scritto: > So I tried to mimic the existing "sed" functionality of the "sync" > script, and was was left deciding between excising the call to smp_mb__after_srcu_read_unlock() from line 6009 of x86.c (since it's > defined as a no-op in the header), or sed-ing in the declaration from > the kvm srcu.h via the sync script. I think the latter is slightly less > cheesy, but I'm really curious what you think would have been the > "canonical" way to do this :) You can also do this: diff --git a/external-module-compat-comm.h b/external-module-compat-comm.h index 34fb320..5fa075e 100644 --- a/external-module-compat-comm.h +++ b/external-module-compat-comm.h @@ -1408,3 +1408,7 @@ static inline void guest_exit(void) } #endif /* !CONFIG_CONTEXT_TRACKING */ #endif /* < 3.10 */ + +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,13,0) +#define smp_mb__after_srcu_read_unlock() smp_mb() +#endif Paolo -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html