Signed-off-by: Andrea Bastoni <[email protected]>
---
hypervisor/arch/x86/cat.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hypervisor/arch/x86/cat.c b/hypervisor/arch/x86/cat.c
index b8412140..644bb3e5 100644
--- a/hypervisor/arch/x86/cat.c
+++ b/hypervisor/arch/x86/cat.c
@@ -141,13 +141,14 @@ static int cat_cell_init(struct cell *cell)
cell->arch.cos = CAT_ROOT_COS;
+ /* NOTE: the EBUSY check below relies on this */
if (cos_max < 0)
return 0;
if (cell->config->num_cache_regions > 0) {
if (cell != &root_cell) {
cell->arch.cos = get_free_cos();
- if (cell->arch.cos > cos_max)
+ if (cell->arch.cos > (u32)cos_max)
return trace_error(-EBUSY);
}
--
2.28.0
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jailhouse-dev/20201028210933.138379-19-andrea.bastoni%40tum.de.