lkml.org 
[lkml]   [2008]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] always assign userspace_addr
    Anthony Liguori wrote:
    >
    > That's not how I read the code. I see:
    >
    >>
    >> static void kvm_free_physmem_slot(struct kvm_memory_slot *free,
    >> struct kvm_memory_slot *dont)
    >> {
    >> if (!dont || free->rmap != dont->rmap)
    >> vfree(free->rmap);
    >
    > And it's called as kvm_free_physmem_slot(&old, &new);
    >
    > new is assigned to old to start out with so old.rmap will equal new.rmap.
    >

    Hm, if !npages we should just kvm_free_physmem_slot(&old, NULL).


    --
    I have a truly marvellous patch that fixes the bug which this
    signature is too narrow to contain.



    \
     
     \ /
      Last update: 2008-11-20 12:05    [W:5.092 / U:0.048 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site