Skip to content
  • Matthew Garrett's avatar
    efi: Pass boot services variable info to runtime code · cc5a080c
    Matthew Garrett authored
    
    
    EFI variables can be flagged as being accessible only within boot services.
    This makes it awkward for us to figure out how much space they use at
    runtime. In theory we could figure this out by simply comparing the results
    from QueryVariableInfo() to the space used by all of our variables, but
    that fails if the platform doesn't garbage collect on every boot. Thankfully,
    calling QueryVariableInfo() while still inside boot services gives a more
    reliable answer. This patch passes that information from the EFI boot stub
    up to the efi platform code.
    
    Signed-off-by: default avatarMatthew Garrett <matthew.garrett@nebula.com>
    Signed-off-by: default avatarMatt Fleming <matt.fleming@intel.com>
    cc5a080c