x86/mm: drop paging_get_mode()

The function was introduced without any caller, and never gained any.
Thus it has always been violating Misra rule 2.1 (unreachable code).

Fixes: dd6de3ab99 ("Implement Nested-on-Nested")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Jan Beulich committed 2025-08-06 14:49:45 +02:00
1 parent b58ebec511
commit dbcbbed4e9
2 files changed
-9

No files matched your search

-1
View File
@@ -225,7 +225,6 @@ int paging_enable(struct domain *d, u32 mode);
#define paging_get_hostmode(v) ((v)->arch.paging.mode)
#define paging_get_nestedmode(v) ((v)->arch.paging.nestedmode)
const struct paging_mode *paging_get_mode(struct vcpu *v);
void paging_update_nestedmode(struct vcpu *v);
/* Page fault handler
-8
View File
@@ -946,14 +946,6 @@ void paging_dump_vcpu_info(struct vcpu *v)
}
}
const struct paging_mode *paging_get_mode(struct vcpu *v)
{
if (!nestedhvm_is_n2(v))
return paging_get_hostmode(v);
return paging_get_nestedmode(v);
}
#ifdef CONFIG_HVM
void paging_update_nestedmode(struct vcpu *v)
{
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.