MCPcopy Create free account

hub / github.com/coconut-svsm/svsm / functions

Functions2,698 in github.com/coconut-svsm/svsm

↓ 3 callersMethodlen
(&self)
kernel/src/utils/memory_region.rs:84
↓ 3 callersMethodload
Load an IDT. # Safety The caller must guarantee that the IDT lifetime must be static so that its entries are always available to the CPU.
kernel/src/cpu/idt/common.rs:357
↓ 3 callersMethodload_base
The ELF "base address" has a well-defined meaning: it is defined in the spec as the difference between the lowest address of the actual memory image t
elf/src/file.rs:600
↓ 3 callersMethodlocked_do
Execute function F while holding the lock. # Examples ``` use svsm::locking::SpinLock; let spin_lock = SpinLock::new(42); // Do some actions while
kernel/src/locking/spinlock.rs:193
↓ 3 callersFunctionlower_tpr
(tpr_value: usize)
kernel/src/cpu/percpu.rs:1342
↓ 3 callersFunctionmalloc
(size: c_ulong)
kernel/src/vtpm/tcgtpm/wrapper.rs:30
↓ 3 callersMethodmanufacture
(&self, first_time: i32)
kernel/src/vtpm/tcgtpm/mod.rs:63
↓ 3 callersMethodmap_2m
Maps a 2MB page. # Parameters - `vaddr`: The virtual address to map. - `paddr`: The physical address to map to. - `flags`: The flags to apply to the
kernel/src/mm/pagetable.rs:992
↓ 3 callersMethodmap_range
( &mut self, vaddr: u64, mut len: u64, mut paddr: u64, pte_type: PteTy
boot/bootimg/src/page_tables.rs:193
↓ 3 callersMethodmark_compound_page
(&mut self, pfn: usize, order: usize)
kernel/src/mm/alloc.rs:815
↓ 3 callersMethodmem_read
Read data from the memory at the specified offset. # Safety The caller must verify not to read data from arbitrary memory. The object implements thi
kernel/src/insn_decode/decode.rs:327
↓ 3 callersMethodmem_write
Write data to the memory at the specified offset. # Safety The caller must verify not to write data to corrupt arbitrary memory. The object implemen
kernel/src/insn_decode/decode.rs:345
↓ 3 callersMethodmodify_bitmap_word
(&mut self, index: usize, mask: u64, new_val: u64)
kernel/src/mm/validate.rs:170
↓ 3 callersFunctionnew_kernel_region
(launch_info: &KernelLaunchInfo)
kernel/src/kernel_region.rs:24
↓ 3 callersMethodnext
(&mut self)
kernel/src/fw_cfg.rs:107
↓ 3 callersFunctionopen
Open a file to get the file handle for further file operations. # Argument `path`: path of the file to be opened. `read`: When true, file is open fo
kernel/src/fs/filesystem.rs:533
↓ 3 callersFunctionpage_align_up
(size: u64)
boot/bootimg/src/page_tables.rs:28
↓ 3 callersFunctionpage_offset
(x: usize)
kernel/src/utils/util.rs:64
↓ 3 callersMethodpage_size
Request the page size used for mappings # Returns Either PAGE_SIZE or PAGE_SIZE_2M
kernel/src/mm/vm/mapping/api.rs:97
↓ 3 callersFunctionparse_metadata
( data: &[u8], fw_img: &[u8], metadata: &mut dyn Metadata, fw_info: &mut GuestFwInfoBlock, )
tools/igvmbuilder/src/ovmf_firmware.rs:279
↓ 3 callersMethodpepare_buffer
(&self)
kernel/src/sev/ghcb.rs:565
↓ 3 callersMethodpop
(&mut self, pa: PhysAddr)
kernel/src/virtio/hal.rs:31
↓ 3 callersMethodpopulate
Populate [`PageTablePart`]s of the [`VMR`] into a page-table # Arguments `pgtbl` - A [`PageTable`] pointing to the target page-table
kernel/src/mm/vm/range.rs:133
↓ 3 callersMethodpost_icr_interrupt
(&mut self, icr: ApicIcr)
kernel/src/cpu/apic.rs:378
↓ 3 callersFunctionprivate_pte_mask
Returns the private encrypt mask value.
kernel/src/mm/pagetable.rs:94
↓ 3 callersMethodpub_key
( key_file: &String, )
tools/igvmmeasure/src/id_block.rs:89
↓ 3 callersMethodput_file_page
(&mut self, vaddr: VirtAddr)
kernel/src/mm/alloc.rs:1081
↓ 3 callersMethodquery_apic_registration_state
(&self)
kernel/src/platform/snp.rs:410
↓ 3 callersFunctionraise_tpr
(tpr_value: usize)
kernel/src/cpu/percpu.rs:1329
↓ 3 callersMethodraw
Get the raw bits (`u64`) of the page table entry.
kernel/src/mm/pagetable.rs:352
↓ 3 callersFunctionrdtsc
libtcgtpm/deps/libcrt/include/libcrt.h:236
↓ 3 callersMethodread
(&mut self, buf: &mut [u8])
kernel/src/fs/filesystem.rs:58
↓ 3 callersFunctionread_bytes_from_guest
Reads a vector of bytes from a physical address region outside of SVSM use. # Arguments `src`: The physical address designating the start of conting
kernel/src/mm/guestmem.rs:707
↓ 3 callersMethodread_cr0
(&self)
kernel/src/insn_decode/insn.rs:195
↓ 3 callersFunctionread_cr2
()
kernel/src/cpu/control_regs.rs:138
↓ 3 callersMethodread_flags
Read rflags register
kernel/src/insn_decode/decode.rs:157
↓ 3 callersMethodread_seg
(&self, seg: SegRegister)
kernel/src/insn_decode/insn.rs:188
↓ 3 callersFunctionread_u8
(v: VirtAddr)
kernel/src/mm/guestmem.rs:41
↓ 3 callersMethodreset
Resets the content of the allocated page tables to all zero.
boot/bootimg/src/page_tables.rs:111
↓ 3 callersMethodsend
Call the GHCB layer to send the encrypted SNP_GUEST_REQUEST message to the PSP.
kernel/src/greq/driver.rs:126
↓ 3 callersMethodset_next_page
(&mut self, next_page: Option<NonNull<Self>>)
kernel/src/mm/alloc.rs:1867
↓ 3 callersMethodset_rip
# Safety The caller must ensure to update the rest of the execution state as actual hardware would have done it (e.g. for MMIO emulation, CPUID, MSR,
kernel/src/cpu/idt/common.rs:81
↓ 3 callersMethodset_state
(&self, state: TaskState)
kernel/src/task/tasks.rs:268
↓ 3 callersFunctionshared_pte_mask
Returns the shared encrypt mask value.
kernel/src/mm/pagetable.rs:99
↓ 3 callersFunctionsift
libtcgtpm/deps/libcrt/src/stdlib/qsort.c:93
↓ 3 callersMethodsignal_one_host_interrupt
(&mut self, vector: u8, level_sensitive: bool)
kernel/src/cpu/apic.rs:646
↓ 3 callersMethodsize
(&self)
kernel/src/fs/filesystem.rs:118
↓ 3 callersFunctionsplit_path_allow_empty
Used to get an iterator over all the directory and file names contained in a path. Directory name or file name in the path can be an empty value. # A
kernel/src/fs/filesystem.rs:376
↓ 3 callersFunctionstart_vsock_server_host
()
kernel/src/vsock/stream.rs:153
↓ 3 callersFunctionstrip_confidentiality_bits
(paddr: PhysAddr)
kernel/src/mm/pagetable.rs:128
↓ 3 callersFunctionstrip_shared_address_bits
(paddr: PhysAddr)
kernel/src/mm/pagetable.rs:132
↓ 3 callersFunctionsvsm_test_io
Return the serial port to communicate with the host for a given request used in a test. The request (first byte) is sent by this function, so the call
kernel/src/testing.rs:53
↓ 3 callersFunctiontdvmcall_io_write
(port: u16, data: T)
kernel/src/tdx/tdcall.rs:586
↓ 3 callersFunctiontdvmcall_wrmsr
(msr: u32, value: u64)
kernel/src/tdx/tdcall.rs:454
↓ 3 callersMethodtop_of_stack
Returns the virtual address for the top of this kernel stack # Arguments `base` - Virtual base address this stack is mapped at (including guard page
kernel/src/mm/vm/mapping/kernel_stack.rs:45
↓ 3 callersMethodtry_init
(&self)
kernel/src/utils/immut_after_init.rs:86
↓ 3 callersMethodtry_lock
This method tries to acquire the lock without blocking. If the lock is not available, it returns `None`. If the lock is successfully acquired, it retu
kernel/src/locking/spinlock.rs:202
↓ 3 callersFunctiontry_to_vec
Allocate a generic Vec of a certain size and copy data from a slice into it. Alternative to the `.to_vec` method for slices that panics if enough size
kernel/src/utils/vec.rs:14
↓ 3 callersMethodunlink
(&mut self, name: &FileName)
kernel/src/fs/ramfs.rs:410
↓ 3 callersMethodupdate_guest_mappings
(&self)
kernel/src/cpu/percpu.rs:1060
↓ 3 callersMethoduse_apic_emulation
(&self)
kernel/src/cpu/percpu.rs:1135
↓ 3 callersMethoduse_restr_inj
(&self)
kernel/src/sev/snp_apic.rs:34
↓ 3 callersMethoduser_range
Return an otional reference to the `[VMR]` for the per-task user region. # Returns `Some(&VMR)` referencing the user-mode `[VMR]` for a user-task, `
kernel/src/task/task_mm.rs:127
↓ 3 callersMethodvaddr_range
Calculates and returns the virtual address range covered by the dynamic relocation table. # Returns An [`Elf64AddrRange`] representing the virtual a
elf/src/dynamic.rs:41
↓ 3 callersFunctionvec_sized
Allocate a Vec of a certain size. Alternative to the `vec!` macro that panics if enough bytes to allocate the corresponding Vec isn't available.
kernel/src/utils/vec.rs:26
↓ 3 callersMethodverify
Verifies the integrity and validity of the dynamic relocation table. # Returns Returns [`Ok`] if the dynamic relocation table is valid; otherwise, r
elf/src/dynamic.rs:31
↓ 3 callersMethodvrange_2m_mut
(&self)
kernel/src/cpu/percpu.rs:1244
↓ 3 callersMethodvrange_4k_mut
(&self)
kernel/src/cpu/percpu.rs:1236
↓ 3 callersFunctionvtpm_get_locked
()
kernel/src/vtpm/mod.rs:111
↓ 3 callersMethodwait_for_event
(&mut self, current_task: TaskPointer)
kernel/src/task/waiting.rs:19
↓ 3 callersMethodwith_addr
(self, addr: VirtAddr)
kernel/src/sev/utils.rs:43
↓ 3 callersMethodwrite_buffer
(&self, data: &T, offset: usize)
kernel/src/sev/ghcb.rs:527
↓ 3 callersFunctionwrite_bytes
(dst: *mut T, count: usize, value: u8)
kernel/src/cpu/mem.rs:36
↓ 3 callersMethodwrite_header
(&mut self, header: &H)
kernel/src/hyperv/hv.rs:86
↓ 3 callersMethodwrite_str
(&mut self, s: &str)
kernel/src/debug/stacktrace.rs:265
↓ 3 callersMethodwrmsr
(&self, msr_index: u32, value: u64)
kernel/src/sev/ghcb.rs:356
↓ 2 callersFunction__strchrnul
libtcgtpm/deps/libcrt/src/string/strchrnul.c:12
↓ 2 callersFunctiona_and
libtcgtpm/deps/libcrt/include/atomic.h:153
↓ 2 callersFunctiona_barrier
libtcgtpm/deps/libcrt/include/atomic.h:199
↓ 2 callersFunctiona_fetch_add
libtcgtpm/deps/libcrt/include/atomic.h:48
↓ 2 callersFunctionabort
()
kernel/src/vtpm/tcgtpm/wrapper.rs:123
↓ 2 callersFunctionaccept_loop
( incoming: impl Iterator<Item = std::io::Result<S>>, url: &str, backend: ArgsBackend, )
tools/aproxy/src/main.rs:55
↓ 2 callersMethodadd_data_pages_from_file
( &mut self, path: &String, gpa_start: u64, compatibility_mask: u32, )
tools/igvmbuilder/src/igvm_builder.rs:688
↓ 2 callersMethodadd_directive
( &self, gpa: u64, compatibility_mask: u32, directives: &mut Vec<IgvmDirective
tools/igvmbuilder/src/cpuid.rs:110
↓ 2 callersMethodadd_slab_page
Add other [`SlabPage`].
kernel/src/mm/alloc.rs:1955
↓ 2 callersFunctionaes_gcm_do
( operation: AesGcmOperation, iv: &[u8; IV_SIZE], key: &[u8; KEY_SIZE], aad: &[u8], inbuf:
kernel/src/crypto/rustcrypto.rs:33
↓ 2 callersMethodalign_down
(&self, align: InnerAddr)
kernel/src/address.rs:85
↓ 2 callersMethodalign_up
(&self, align: InnerAddr)
kernel/src/address.rs:73
↓ 2 callersFunctionalloc_aligned
(ba: &mut impl BitmapAllocator, entries: usize, align: usize)
kernel/src/utils/bitmap_allocator.rs:197
↓ 2 callersMethodalloc_page_tables
Allocated all [`PageTablePart`]s needed to map this region # Returns `Ok(())` on success, Err(SvsmError::Mem) on allocation error
kernel/src/mm/vm/range.rs:108
↓ 2 callersMethodalloc_pte_2m
Allocates a 2MB page table entry for a given virtual address. # Parameters - `vaddr`: The virtual address for which to allocate the PTE. # Returns A
kernel/src/mm/pagetable.rs:856
↓ 2 callersMethodalloc_pte_4k
Allocates a 4KB page table entry for a given virtual address. # Parameters - `vaddr`: The virtual address for which to allocate the PTE. # Returns A
kernel/src/mm/pagetable.rs:838
↓ 2 callersFunctionallocate_file_page
Allocate a file page. # Returns Result containing the virtual address of the allocated file page or an `SvsmError` if allocation fails.
kernel/src/mm/alloc.rs:1765
↓ 2 callersMethodallocate_file_page
(&mut self)
kernel/src/mm/alloc.rs:1057
↓ 2 callersMethodallocate_hypercall_pages
Allocates hypercall input/output pages for this CPU.
kernel/src/cpu/percpu.rs:594
↓ 2 callersMethodallocate_page_slot
Allocates and initializes a slot for a slab page of the given chunk size `S`.
kernel/src/mm/alloc.rs:1969
↓ 2 callersMethodallocate_slot
Allocate other slot, caller must make sure there's at least one free slot
kernel/src/mm/alloc.rs:2008
↓ 2 callersMethodallocate_stack
(&self, base: VirtAddr)
kernel/src/cpu/percpu.rs:686
↓ 2 callersFunctionapic_enable
Enables the X86 local APIC in X2APIC mode by writing to MSR_APIC_BASE.
kernel/src/cpu/x86/apic.rs:213
↓ 2 callersMethodapic_read
(&self, offset: usize)
kernel/src/cpu/x86/x2apic.rs:47
← previousnext →401–500 of 2,698, ranked by callers