lkml.org 
[lkml]   [2010]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 11/22] KVM: MMU: Add infrastructure for two-level page walker
    On 04/27/2010 01:38 PM, Joerg Roedel wrote:
    > This patch introduces a mmu-callback to translate gpa
    > addresses in the walk_addr code. This is later used to
    > translate l2_gpa addresses into l1_gpa addresses.
    >
    > +static inline gfn_t gpa_to_gfn(gpa_t gpa)
    > +{
    > + return (gfn_t)gpa>> PAGE_SHIFT;
    > +}
    > +
    >

    This overflows on 32-bit, since gpa_t is u64 and gfn_t is ulong.

    --
    error compiling committee.c: too many arguments to function



    \
     
     \ /
      Last update: 2010-04-27 14:37    [W:4.436 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site