diff options
author | Jan Beulich <jbeulich@novell.com> | 2011-07-08 08:34:29 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@novell.com> | 2011-07-08 08:34:29 +0100 |
commit | fe15cd0fb6d1622dbd04c2c227a368593c23b9af (patch) | |
tree | 49240004680441cc49865594022306d110933ea4 /xen/common/libelf | |
parent | 4776f8ddd2f2ce957f4965d94709285621933dcc (diff) | |
download | xen-fe15cd0fb6d1622dbd04c2c227a368593c23b9af.tar.gz xen-fe15cd0fb6d1622dbd04c2c227a368593c23b9af.tar.bz2 xen-fe15cd0fb6d1622dbd04c2c227a368593c23b9af.zip |
add privileged/unprivileged kernel feature indication
With our switching away from supporting 32-bit Dom0 operation, users
complained that attempts (perhaps due to lack of knowledge of that
change) to boot the no longer privileged kernel in Dom0 resulted in
apparently silent failure. To make the mismatch explicit and visible,
add feature flags that the kernel can set to indicate operation in
what modes it supports. For backward compatibility, absence of both
feature flags is taken to indicate a kernel that may be capable of
operating in both modes.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/common/libelf')
-rw-r--r-- | xen/common/libelf/libelf-dominfo.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xen/common/libelf/libelf-dominfo.c b/xen/common/libelf/libelf-dominfo.c index 29c3339088..5f48d3fea3 100644 --- a/xen/common/libelf/libelf-dominfo.c +++ b/xen/common/libelf/libelf-dominfo.c @@ -26,7 +26,9 @@ static const char *const elf_xen_feature_names[] = { [XENFEAT_writable_descriptor_tables] = "writable_descriptor_tables", [XENFEAT_auto_translated_physmap] = "auto_translated_physmap", [XENFEAT_supervisor_mode_kernel] = "supervisor_mode_kernel", - [XENFEAT_pae_pgdir_above_4gb] = "pae_pgdir_above_4gb" + [XENFEAT_pae_pgdir_above_4gb] = "pae_pgdir_above_4gb", + [XENFEAT_privileged] = "privileged", + [XENFEAT_unprivileged] = "unprivileged" }; static const int elf_xen_features = sizeof(elf_xen_feature_names) / sizeof(elf_xen_feature_names[0]); |