From: Jan Kiszka <[email protected]> This will be needed when cat_cell_init becomes static. No functional changes.
Signed-off-by: Jan Kiszka <[email protected]> --- hypervisor/arch/x86/cat.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/hypervisor/arch/x86/cat.c b/hypervisor/arch/x86/cat.c index 67f0c9e56..1769216f1 100644 --- a/hypervisor/arch/x86/cat.c +++ b/hypervisor/arch/x86/cat.c @@ -23,22 +23,6 @@ static unsigned int cbm_max, freed_mask; static int cos_max = -1; static u64 orig_root_mask; -int cat_init(void) -{ - int err; - - if (cpuid_ebx(7, 0) & X86_FEATURE_CAT && - cpuid_ebx(0x10, 0) & (1 << CAT_RESID_L3)) { - cbm_max = cpuid_eax(0x10, CAT_RESID_L3) & CAT_CBM_LEN_MASK; - cos_max = cpuid_edx(0x10, CAT_RESID_L3) & CAT_COS_MAX_MASK; - } - - err = cat_cell_init(&root_cell); - orig_root_mask = root_cell.arch.cat_mask; - - return err; -} - void cat_update(void) { struct cell *cell = this_cell(); @@ -220,3 +204,19 @@ void cat_cell_exit(struct cell *cell) cat_update_cell(&root_cell); } } + +int cat_init(void) +{ + int err; + + if (cpuid_ebx(7, 0) & X86_FEATURE_CAT && + cpuid_ebx(0x10, 0) & (1 << CAT_RESID_L3)) { + cbm_max = cpuid_eax(0x10, CAT_RESID_L3) & CAT_CBM_LEN_MASK; + cos_max = cpuid_edx(0x10, CAT_RESID_L3) & CAT_COS_MAX_MASK; + } + + err = cat_cell_init(&root_cell); + orig_root_mask = root_cell.arch.cat_mask; + + return err; +} -- 2.13.6 -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
