Re: [patch 2/8] Implement always-locked bit ops, for memory sharedwith an SMP hypervisor.

From: Jeremy Fitzhardinge
Date: Wed Aug 02 2006 - 20:34:00 EST

Christoph Lameter wrote:
I think I asked this before....

Would it not be simpler to always use the locked implementation on UP? At least when the kernel is compiled with hypervisor support? This is going to add yet another series of bit operations

You mean make the standard bit-ops atomic on UP when compiling for CONFIG_PARAVIRT? We think its too much of a burden; there are only a few operations which must be locked in the hypervisor case, and bit ops are used everywhere. I'd like to get it to the point where there's no significant overhead in configuring for PARAVIRT, even if you run on native hardware.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at