diff options
author | Jan Beulich <jbeulich@suse.com> | 2013-04-22 13:58:01 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2013-04-22 13:58:01 +0200 |
commit | 9be8a4447103d92843fcfeaad8be42408c90e9a9 (patch) | |
tree | 7e6402269c9cbb98ec8de65a355e5d18b47c44a5 /xen/include/public | |
parent | 4fdef9a6cabe9810793f80df88d559a22998157b (diff) | |
download | xen-9be8a4447103d92843fcfeaad8be42408c90e9a9.tar.gz xen-9be8a4447103d92843fcfeaad8be42408c90e9a9.tar.bz2 xen-9be8a4447103d92843fcfeaad8be42408c90e9a9.zip |
x86/EFI: pass boot services variable info to runtime code
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.
Based on a similarly named Linux patch by Matthew Garrett <matthew.garrett@nebula.com>.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
Diffstat (limited to 'xen/include/public')
-rw-r--r-- | xen/include/public/platform.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/include/public/platform.h b/xen/include/public/platform.h index d7d2a5bddf..4341f5462c 100644 --- a/xen/include/public/platform.h +++ b/xen/include/public/platform.h @@ -184,6 +184,7 @@ struct xenpf_efi_runtime_call { struct xenpf_efi_guid vendor_guid; } get_next_variable_name; +#define XEN_EFI_VARINFO_BOOT_SNAPSHOT 0x00000001 struct { uint32_t attr; uint64_t max_store_size; |