X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_cachepart.c;h=e68c5dccf9e650109a3c1c8261233d8cc3d456f4;hp=ceab364ed5d009cf9d5d3cbff26b66e10fadc854;hb=f240f8a3c11478abe180bd906c746c68eb8c3a3c;hpb=f1c8d924817188c4f08a97205e97392ff304913f diff --git a/palacios/src/palacios/vmm_cachepart.c b/palacios/src/palacios/vmm_cachepart.c index ceab364..e68c5dc 100644 --- a/palacios/src/palacios/vmm_cachepart.c +++ b/palacios/src/palacios/vmm_cachepart.c @@ -92,25 +92,6 @@ int v3_deinit_cachepart() return 0; } -/* -static int bitcount(uint64_t x) -{ - int c=0; - - while (x) { - c+=x&0x1; - x>>=1; - } - return c; -} - -static int is_pow2(x) -{ - int c = bitcount(x); - - return c==0 || c==1; -} -*/ static uint64_t log2(uint64_t x) { @@ -252,8 +233,6 @@ int v3_init_cachepart_vm(struct v3_vm_info *vm, struct v3_xml *config) vm->resource_control.pg_filter_state = &vm->cachepart_state; - // V3_Sleep(50000000); - return 0; } @@ -276,7 +255,6 @@ int v3_deinit_cachepart_core(struct guest_info *core) return 0; } -static unsigned count=0; int v3_cachepart_filter(void *paddr, v3_cachepart_t *c) { @@ -285,13 +263,6 @@ int v3_cachepart_filter(void *paddr, v3_cachepart_t *c) PrintDebug(VM_NONE,VCORE_NONE,"cachepart: %p is color 0x%llx required colors: [0x%llx,0x%llx] %s\n",paddr,color,c->min_color,c->max_color, color>=c->min_color && color<=c->max_color ? "ACCEPT" : "REJECT"); - /* - if (count<10) { - V3_Sleep(5000000); - count++; - } - */ - return color>=c->min_color && color<=c->max_color; }