On 04/03/2014 09:45 AM, Peter Maydell wrote: > + if (have_tb_lock) { > + spin_unlock(&tcg_ctx.tb_ctx.tb_lock); > + }
It ought not matter, since we ought to exit the loop on the next round, but i have a strong preference for resetting have_tb_lock here. Otherwise, this is nicely self-contained. r~