public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvm-userland mm count skew
@ 2008-01-21 12:44 Andrea Arcangeli
       [not found] ` <20080121124455.GI6970-lysg2Xt5kKMAvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Andrea Arcangeli @ 2008-01-21 12:44 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

I still can't see how it could be possibly make a difference for the
mm_count if the kvm module is compiled inside the kernel or as an
external module, the reference counting there hasn't changed since
ages. The mmdrop fires only in the first overflow so even if I'm right
it probably wasn't much destabilizing to go negative given it happened
at mm destruction time.

Signed-off-by: Andrea Arcangeli <andrea-atKUWr5tajBWk0Htik3J/w@public.gmane.org>

diff --git a/kernel/hack-module.awk b/kernel/hack-module.awk
index 5187c96..884bc50 100644
--- a/kernel/hack-module.awk
+++ b/kernel/hack-module.awk
@@ -33,8 +33,6 @@
     vmx_load_host_state = 0
 }
 
-/atomic_inc\(&kvm->mm->mm_count\);/ { $0 = "//" $0 }
-
 /^\t\.fault = / {
     fcn = gensub(/,/, "", "g", $3)
     $0 = "\t.VMA_OPS_FAULT(fault) = VMA_OPS_FAULT_FUNC(" fcn "),"

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-01-22 14:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-21 12:44 [PATCH] kvm-userland mm count skew Andrea Arcangeli
     [not found] ` <20080121124455.GI6970-lysg2Xt5kKMAvxtiuMwx3w@public.gmane.org>
2008-01-22 13:41   ` Avi Kivity
     [not found]     ` <4795F26E.9090807-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2008-01-22 14:25       ` Andrea Arcangeli
     [not found]         ` <20080122142525.GB7331-lysg2Xt5kKMAvxtiuMwx3w@public.gmane.org>
2008-01-22 14:33           ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox