summaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm_main.c
diff options
context:
space:
mode:
authorMarkus Rechberger <markus.rechberger@amd.com>2007-02-19 13:37:47 +0100
committerAvi Kivity <avi@qumranet.com>2007-03-04 10:12:39 +0100
commit5972e9535e94bf875eb8eab8a667ba04c7583874 (patch)
treebdce4e46ab7277c8811cef4b9464646eff3fed3e /drivers/kvm/kvm_main.c
parentKVM: Use ARRAY_SIZE macro instead of manual calculation. (diff)
downloadlinux-5972e9535e94bf875eb8eab8a667ba04c7583874.tar.xz
linux-5972e9535e94bf875eb8eab8a667ba04c7583874.zip
KVM: Use page_private()/set_page_private() apis
Besides using an established api, this allows using kvm in older kernels. Signed-off-by: Markus Rechberger <markus.rechberger@amd.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm_main.c')
-rw-r--r--drivers/kvm/kvm_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c
index 13a99cac3679..122c05f283e1 100644
--- a/drivers/kvm/kvm_main.c
+++ b/drivers/kvm/kvm_main.c
@@ -670,7 +670,7 @@ raced:
| __GFP_ZERO);
if (!new.phys_mem[i])
goto out_free;
- new.phys_mem[i]->private = 0;
+ set_page_private(new.phys_mem[i],0);
}
}