diff options
author | Markus Rechberger <markus.rechberger@amd.com> | 2007-02-19 13:37:47 +0100 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-03-04 10:12:39 +0100 |
commit | 5972e9535e94bf875eb8eab8a667ba04c7583874 (patch) | |
tree | bdce4e46ab7277c8811cef4b9464646eff3fed3e /drivers/kvm/kvm_main.c | |
parent | KVM: Use ARRAY_SIZE macro instead of manual calculation. (diff) | |
download | linux-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.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); } } |