OpenVZ Forum


Home » General » Support » KVM support on 2.6.18-164.2.1.el5.028stab066.7 (CentOS5.4) (KVM support on 2.6.18-164.2.1.el5.028stab066.7 (CentOS5.4))
Re: KVM support on 2.6.18-164.2.1.el5.028stab066.7 (CentOS5.4) [message #38230 is a reply to message #38225] Tue, 01 December 2009 00:32 Go to previous messageGo to previous message
jmslkn is currently offline  jmslkn
Messages: 19
Registered: June 2007
Junior Member
I have created a small patch, it works to me, but it would be good to have some comments from the OpenVZ developers:

kvm-openvz.spec (apply on /usr/src/redhat/SPECS/kvm.spec)
--- kvm.spec 2009-10-05 18:28:37.000000000 +0200
+++ /usr/src/redhat/SPECS/kvm.spec 2009-12-01 00:23:25.000000000 +0100
@@ -796,6 +796,7 @@
# end of kvm.git (kernel) patches
###################################3

+Patch600: kvm-openvz-page_lock_anon_vma.patch

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: SDL-devel
@@ -1306,6 +1307,8 @@
%patch582 -p1
cd ../

+%patch600 -p0
+

## you can uncomment the code below to test the
## 'make sync' code


kvm-openvz-page_lock_anon_vma.patch (copy to /usr/src/redhat/SOURCES/):

--- kernel/ksm/external-module-compat.h.orig 2009-12-01 00:15:41.000000000 +0100
+++ kernel/ksm/external-module-compat.h 2009-12-01 00:15:45.000000000 +0100
@@ -35,7 +35,7 @@
#define list_first_entry(ptr, type, member) \
list_entry((ptr)->next, type, member)

-static struct anon_vma *page_lock_anon_vma(struct page *page)
+static struct anon_vma *page_lock_anon_vma2(struct page *page)
{
struct anon_vma *anon_vma;
unsigned long anon_mapping;
@@ -241,7 +241,7 @@
struct anon_vma *anon_vma;
int ret = 0;

- anon_vma = page_lock_anon_vma(page);
+ anon_vma = page_lock_anon_vma2(page);
if (!anon_vma)
return ret;
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ip tunnel in VPS: ioctl: No such device
Next Topic: IP route issue
Goto Forum:
  


Current Time: Fri Jul 04 08:46:56 GMT 2025

Total time taken to generate the page: 0.02108 seconds