Re: [PATCH] Xen: Fix pte unpin BUG when !CONFIG_SMP

From: Alex Nixon
Date: Tue Sep 09 2008 - 18:26:31 EST


Jeremy Fitzhardinge wrote:
Alex Nixon wrote:

Here's the backtrace of the BUG() the patch addresses. Now you've
pointed it out - I see the asymmetry - and also suspect some ptes are
being left pinned.

I'm having trouble finding a cleaner solution which solves this but
doesn't incite more BUGs.
Perhaps you have an idea?

Right, I see. We shouldn't be pinning ptes on attachment in
xen_alloc_ptpage() if we're not using split pte locks.

J

Hmm ok. I'll search further for a solution which fixes things more officially (and deals with the CONFIG_SMP && (NR_CPUS < CONFIG_SPLIT_PTLOCK_CPUS) case, which I just realized is also broken, and isn't fixed by this patch).

In the meantime, at least UP is now usable.

- Alex
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/