mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
b58ebec511
commit
dbcbbed4e9
2 files changed
-9
No files matched your search
@@ -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
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||