Skip to content

Commit

Permalink
removed redundant sse_files ds
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvraj1803 committed Nov 5, 2023
1 parent 8c27b69 commit 9030c58
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions sse/sse.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ extern struct vm* current;
extern struct vm* vmlist[CONFIG_MAX_VMs];
extern int total_vms;

FIL* sse_files[CONFIG_MAX_SSE_FILES];

static char* get_sse_vm_dir_name(uint8_t vmid){
char* name = (char*) malloc(6); // 6 because VMID is <= 255. So VM_255 is the largest string.
// All this drama is unnecessary. Even though I am asking for 6 bytes, malloc will return an entire page ;). (4096bytes).
Expand Down Expand Up @@ -68,10 +66,6 @@ static int sse_switch_to_vm_sandbox(struct vm* vm){

void sse_init(){

for(int file=0; file < CONFIG_MAX_SSE_FILES; file++){
sse_files[file] = 0;
}

for(int i=0;i<total_vms;i++){
if(vmlist[i]->sse_enabled){
if(sse_sandbox_init(vmlist[i]) == 0) printf("LOG: SSE Sandbox initialised for VM: %s\n", vmlist[i]->name);
Expand Down

0 comments on commit 9030c58

Please sign in to comment.