From c8f7c5e21ff92b6a1db2f36cd37a90df6a648392 Mon Sep 17 00:00:00 2001 From: Juliette Pretot Date: Mon, 25 Mar 2024 16:04:34 +0000 Subject: [PATCH] wip --- enclave_apps/oak_echo_raw_enclave_app/src/main.rs | 3 +++ enclave_apps/oak_orchestrator/src/main.rs | 1 + oak_restricted_kernel/src/mm/page_tables.rs | 1 + 3 files changed, 5 insertions(+) diff --git a/enclave_apps/oak_echo_raw_enclave_app/src/main.rs b/enclave_apps/oak_echo_raw_enclave_app/src/main.rs index f7ff69d9467..8037107429b 100644 --- a/enclave_apps/oak_echo_raw_enclave_app/src/main.rs +++ b/enclave_apps/oak_echo_raw_enclave_app/src/main.rs @@ -33,10 +33,13 @@ const MESSAGE_SIZE: usize = 1; // them back. #[entrypoint] fn start_echo_server() -> ! { + log::info!("suo"); let mut channel = FileDescriptorChannel::default(); + log::info!("channel"); loop { let bytes = { let mut bytes: Vec = vec![0; MESSAGE_SIZE]; + log::info!("allocated bytes"); channel.read_exact(&mut bytes).expect("couldn't read bytes"); bytes }; diff --git a/enclave_apps/oak_orchestrator/src/main.rs b/enclave_apps/oak_orchestrator/src/main.rs index da8d73fa098..c2477bba269 100644 --- a/enclave_apps/oak_orchestrator/src/main.rs +++ b/enclave_apps/oak_orchestrator/src/main.rs @@ -104,5 +104,6 @@ fn entrypoint() -> ! { let pid = syscall::unstable_create_proccess(attested_app.elf_binary.as_slice()) .expect("failed to create app process"); + log::info!("created application with pid: {}", pid); syscall::unstable_switch_proccess(pid) } diff --git a/oak_restricted_kernel/src/mm/page_tables.rs b/oak_restricted_kernel/src/mm/page_tables.rs index 50d42a56409..2f8289acdee 100644 --- a/oak_restricted_kernel/src/mm/page_tables.rs +++ b/oak_restricted_kernel/src/mm/page_tables.rs @@ -293,6 +293,7 @@ impl CurrentRootPageTable { /// Safety: The new page tables must keep the identity mapping at -2GB /// (kernel space) intact. pub unsafe fn replace(&mut self, pml4_frame: PhysFrame) -> Option { + log::info!("new pml4 {:?}", pml4_frame); // This validates any references that expect boot page tables to be valid! // Safety: Caller must ensure that the new page tables are safe. unsafe {