diff options
author | Markus Rechberger <markus.rechberger@amd.com> | 2007-02-19 07:37:47 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-03-04 04:12:39 -0500 |
commit | 5972e9535e94bf875eb8eab8a667ba04c7583874 (patch) | |
tree | bdce4e46ab7277c8811cef4b9464646eff3fed3e /drivers/kvm/kvm.h | |
parent | 9d8f549dc69b1fc65d0b03916c02f12ca49b3ea0 (diff) |
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.h')
-rw-r--r-- | drivers/kvm/kvm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index 04574a9d4430..9a49b2ed2a1e 100644 --- a/drivers/kvm/kvm.h +++ b/drivers/kvm/kvm.h | |||
@@ -523,7 +523,7 @@ static inline struct kvm_mmu_page *page_header(hpa_t shadow_page) | |||
523 | { | 523 | { |
524 | struct page *page = pfn_to_page(shadow_page >> PAGE_SHIFT); | 524 | struct page *page = pfn_to_page(shadow_page >> PAGE_SHIFT); |
525 | 525 | ||
526 | return (struct kvm_mmu_page *)page->private; | 526 | return (struct kvm_mmu_page *)page_private(page); |
527 | } | 527 | } |
528 | 528 | ||
529 | static inline u16 read_fs(void) | 529 | static inline u16 read_fs(void) |