diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2010-07-01 16:00:12 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-08-02 06:39:44 +0300 |
commit | 5689cc53fa9d09b5bf41b1b1a7c90bd6c112ab40 (patch) | |
tree | 1bfe4bdf8cbad3938e2cd8b76eac10c8023ba04d /include/linux | |
parent | 828554136bbacae6e39fc31b9cd7e7c660ad7530 (diff) |
KVM: Use u64 for frame data types
For 32bit machines where the physical address width is
larger than the virtual address width the frame number types
in KVM may overflow. Fix this by changing them to u64.
[sfr: fix build on 32-bit ppc]
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/kvm_types.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/kvm_types.h b/include/linux/kvm_types.h index fb46efbeabe..7ac0d4eee43 100644 --- a/include/linux/kvm_types.h +++ b/include/linux/kvm_types.h @@ -32,11 +32,11 @@ typedef unsigned long gva_t; typedef u64 gpa_t; -typedef unsigned long gfn_t; +typedef u64 gfn_t; typedef unsigned long hva_t; typedef u64 hpa_t; -typedef unsigned long hfn_t; +typedef u64 hfn_t; typedef hfn_t pfn_t; |