Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 340e01248478ba8b78a6d4d1809b1eff > files > 566

kvm-83-270.el5_11.src.rpm

From f86cf7ee49d7c74014f61eda9c8ebdb8fd567a9f Mon Sep 17 00:00:00 2001
From: Izik Eidus <ieidus@redhat.com>
Date: Mon, 18 May 2009 22:54:56 +0300
Subject: [PATCH 08/14] ksm ?: remove full swapping support for kvm mmu pages under ovirt (rhel 5.3)

There is problem with the anon_vma lock, as some times the kprobe run whle this
lock is token (swap path) and sometimes it run while it isnt token (page fault path)

There are ways to fix this issue, but they tend to be very complicated / risky,
condiering the fact that in rhel 5.4 we can swap using mmu notifiers, it better
to kick this code as it will reuqire alot of thinking if the fix for it is safe.

note: this doesnt effect ksm, ksm pages when they are break are still swappable
this code even tougth it was inside wp_notifier.c (belong to ksm) have nothing to
do with ksm.

Signed-off-by: Izik Eidus <ieidus@redhat.com>
Message-ID: <4A11BD10.3060905@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
RH-Upstream-status: not-applicable
Acked-by: Andrea Arcangeli <aarcange@redhat.com>
Acked-by: john cooper <john.cooper@redhat.com>
Acked-by: Juan Quintela <quintela@redhat.com>
Bugzilla: 503793
---
 kernel/ksm/wp_notifier.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/ksm/wp_notifier.c b/kernel/ksm/wp_notifier.c
index 346e4b8..841490f 100644
--- a/kernel/ksm/wp_notifier.c
+++ b/kernel/ksm/wp_notifier.c
@@ -5,7 +5,7 @@
  *	Izik Eidus
  */
 
-#define KPROBES_ENABLE_SWAP
+//#define KPROBES_ENABLE_SWAP
 #include <linux/version.h>
 #include <linux/kernel.h>
 #include <linux/kprobes.h>
-- 
1.6.3.rc4.29.g8146