Re: [kvm-devel] [PATCH 02/33] KVM: MMU: emulated cmpxchg8b shouldbe atomic on i386

From: Avi Kivity
Date: Mon Jan 07 2008 - 04:24:43 EST


Carlo Marcelo Arenas Belon wrote:
On Sun, Jan 06, 2008 at 04:39:08PM +0200, Avi Kivity wrote:
From: Marcelo Tosatti <marcelo@xxxxxxxxx>

Emulate cmpxchg8b atomically on i386. This is required to avoid a guest
pte walker from seeing a splitted write.

[avi: make it compile]

Signed-off-by: Marcelo Tosatti <mtosatti@xxxxxxxxxx>
Signed-off-by: Avi Kivity <avi@xxxxxxxxxxxx>
---

This one doesn't look like the one in the current tree, and avoids the reuse
of addr by moving the call to get the gpa up instead of renaming the variable
as propossed in :


This is a cumulative patch that is the original patch plus all the fixes rolled in. I'd to avoid churn for style issues at this point, maybe we can address it later.

--
error compiling committee.c: too many arguments to function

--
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/