Skip to content
  • Charles Jacobsen's avatar
    Fixing up ept destroy to not free mapped mem. · 8a977687
    Charles Jacobsen authored and Vikram Narayanan's avatar Vikram Narayanan committed
    Originally, destroying the ept structures also
    freed the mapped host physical memory. This is
    leading to bad double free errors. Instead, I
    will report a potential memory leak if an ept
    pte is present.
    
    Users of the ept should unmap any host phys
    memory before destroying the ept (will shift
    over ept unmap range from arch-indep to
    arch-dep next).
    
    Updated arch test04 to use vmx_free_ept, now
    that it doesn't try to free mapped host phys
    mem.
    8a977687