diff options
author | Markus Rechberger <markus.rechberger@amd.com> | 2007-02-19 14:37:47 +0200 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-03-04 11:12:39 +0200 |
commit | 5972e9535e94bf875eb8eab8a667ba04c7583874 (patch) | |
tree | bdce4e46ab7277c8811cef4b9464646eff3fed3e /drivers/kvm/kvm_main.c | |
parent | 9d8f549dc69b1fc65d0b03916c02f12ca49b3ea0 (diff) | |
download | lwn-5972e9535e94bf875eb8eab8a667ba04c7583874.tar.gz lwn-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.c | 2 |
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); } } |