Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coconut-svsm/svsm
/ functions
Functions
2,698 in github.com/coconut-svsm/svsm
⨍
Functions
2,698
◇
Types & classes
573
↓ 10 callers
Method
log_page
(&mut self, page_type: SnpPageType, gpa: u64, len: u64)
tools/igvmmeasure/src/igvm_measure.rs:284
↓ 10 callers
Method
mask
(&self)
kernel/src/cpu/features.rs:92
↓ 10 callers
Function
open_rw
Open a file to get the file handle for reading and writing. # Argument `path`: path of the file to be opened. # Returns [`Result<FileHandle, SvsmE
kernel/src/fs/filesystem.rs:579
↓ 10 callers
Method
push
(&mut self, guid: uuid::Uuid, data: Vec<u8>)
kernel/src/protocols/attest.rs:212
↓ 10 callers
Function
raw_irqs_enable
()
kernel/src/cpu/irq_state.rs:34
↓ 10 callers
Method
start
(&self)
kernel/src/utils/memory_region.rs:77
↓ 10 callers
Method
with_global
Updates the scope to include or exclude global pages, as indicated.
kernel/src/cpu/tlb.rs:55
↓ 9 callers
Method
alloc
(&mut self, page_count: usize, alignment: usize)
kernel/src/mm/virtualrange.rs:50
↓ 9 callers
Method
allocate_pages
Allocates pages out of the heap memory area. The returned value is a tuple containing the physical address and virtual address of the allocation.
boot/bootimg/src/heap.rs:44
↓ 9 callers
Function
compose_val
(readers: u64, writers: u64)
kernel/src/locking/rwlock.rs:345
↓ 9 callers
Method
get_next_page
(&mut self, order: usize)
kernel/src/mm/alloc.rs:773
↓ 9 callers
Method
guest_vmsa_ref
(&self)
kernel/src/cpu/percpu.rs:1002
↓ 9 callers
Method
huge
Check if the page table entry is huge.
kernel/src/mm/pagetable.rs:235
↓ 9 callers
Method
init
(&mut self, start_virt: VirtAddr, page_count: usize, page_shift: usize)
kernel/src/mm/virtualrange.rs:43
↓ 9 callers
Method
offset
(&self, count: isize)
kernel/src/mm/guestmem.rs:408
↓ 9 callers
Method
outb
(&self, port: u16, val: u8)
kernel/src/serial.rs:68
↓ 9 callers
Method
pfn
(&self)
kernel/src/address.rs:188
↓ 9 callers
Method
read_reg
Read a register
kernel/src/insn_decode/decode.rs:152
↓ 9 callers
Function
unsafe_copy_bytes
(src: *const T, dst: *mut T, count: usize)
kernel/src/cpu/mem.rs:13
↓ 9 callers
Method
vaddr
(&self)
kernel/src/mm/pagebox.rs:122
↓ 8 callers
Method
all
Creates a TLB flush scope for all all addresses (including global).
kernel/src/cpu/tlb.rs:47
↓ 8 callers
Method
apic_id
(&self)
kernel/src/cpu/percpu.rs:297
↓ 8 callers
Method
as_str
Get the build target as the triplet string cargo expects, or `None` if this is the host target.
xbuild/src/main.rs:96
↓ 8 callers
Method
file_range
Returns the file range of the segment as an [`Elf64FileRange`]. # Returns An [`Elf64FileRange`] representing the file range of the segment.
elf/src/program_header.rs:140
↓ 8 callers
Method
free
(&mut self, start: usize, entries: usize)
kernel/src/utils/bitmap_allocator.rs:56
↓ 8 callers
Method
get_capacity
Get the capacity of the [`SlabPage`]
kernel/src/mm/alloc.rs:1854
↓ 8 callers
Method
get_cpu_index
(&self)
kernel/src/cpu/percpu.rs:657
↓ 8 callers
Method
get_pfn
(&self, vaddr: VirtAddr)
kernel/src/mm/alloc.rs:749
↓ 8 callers
Method
lookup_entry
(&self, name: &FileName)
kernel/src/fs/ramfs.rs:370
↓ 8 callers
Method
memory_info
(&self)
kernel/src/mm/alloc.rs:1452
↓ 8 callers
Function
mkdir
Create a directory with the given path relative to the file-system root. # Argument `path`: path of the directory to be created. # Returns [`Resul
kernel/src/fs/filesystem.rs:695
↓ 8 callers
Function
printf
libtcgtpm/deps/libcrt/src/stdio/printf.c:6
↓ 8 callers
Function
read
Used to read from a file handle. # Arguments - `fh`: Filehandle to be read. - `buf`: buffer to read the file contents into. # Returns [`Result<usi
kernel/src/fs/filesystem.rs:836
↓ 8 callers
Function
request_termination_msr
()
kernel/src/sev/msr_protocol.rs:216
↓ 8 callers
Function
terminate
Terminates the guest with a platform-specific mechanism
kernel/src/platform/mod.rs:383
↓ 8 callers
Function
tolower
libtcgtpm/deps/libcrt/src/ctype/tolower.c:5
↓ 8 callers
Function
user_mode
(ctxt: &X86ExceptionContext)
kernel/src/cpu/idt/common.rs:216
↓ 8 callers
Method
vmsa
(&mut self)
kernel/src/cpu/percpu.rs:246
↓ 8 callers
Method
write_noblock
(&self)
kernel/src/locking/rwlock.rs:499
↓ 7 callers
Method
add
Adds a CPU to the set. `cpu_index`: the index of the CPU to add to the set.
kernel/src/cpu/cpuset.rs:26
↓ 7 callers
Function
add_page_contents
(f: &mut F, paddr: u64, contents: &[u8])
boot/bootimg/src/defs.rs:71
↓ 7 callers
Function
apic_post_irq
Sends an IPI specified by the X86 ICR value.
kernel/src/cpu/x86/apic.rs:224
↓ 7 callers
Method
clear
Clear the page table entry.
kernel/src/mm/pagetable.rs:225
↓ 7 callers
Function
convert_vmsa_segment
(segment: &SegmentRegister)
tools/igvmbuilder/src/context.rs:190
↓ 7 callers
Method
finalize
(&self, shared_buffer: &Self)
kernel/src/cpu/ipi.rs:756
↓ 7 callers
Method
free
(&mut self, vaddr: VirtAddr, page_count: usize)
kernel/src/mm/virtualrange.rs:58
↓ 7 callers
Method
free_page
(&mut self, vaddr: VirtAddr)
kernel/src/mm/alloc.rs:1419
↓ 7 callers
Method
get_opdesc
(&self)
kernel/src/insn_decode/decode.rs:771
↓ 7 callers
Method
inb
(&self, port: u16)
kernel/src/serial.rs:63
↓ 7 callers
Method
kernel_range
Return a reference to the `[VMR]` for the per-task kernel region. # Returns Reference to the kernel region `[VMR]`.
kernel/src/task/task_mm.rs:118
↓ 7 callers
Function
list_dir
Used to list the contents of a directory. # Argument `path`: path of the directory to be listed. # Returns [`Result<(), SvsmError>`]: [`Result`] co
kernel/src/fs/filesystem.rs:797
↓ 7 callers
Function
make_shared_address
Set address as shared via mask.
kernel/src/mm/pagetable.rs:114
↓ 7 callers
Method
position
(&self)
kernel/src/fs/obj.rs:100
↓ 7 callers
Method
present
Check if the page table entry is present.
kernel/src/mm/pagetable.rs:230
↓ 7 callers
Function
pvalidate
# Safety The caller is required to ensure that conversion of the virtual address does not violate memory safety.
kernel/src/sev/utils.rs:141
↓ 7 callers
Method
read_c_string
Reads a null-terminated C string from the user space. Allocates memory for the string and returns a `String`.
kernel/src/mm/guestmem.rs:541
↓ 7 callers
Function
read_reg
(mctx: &I, reg: Register, size: Bytes)
kernel/src/insn_decode/decode.rs:544
↓ 7 callers
Function
rmp_adjust
# Safety The caller is required to ensure that conversion of the virtual address does not violate memory safety. Memory safety could be affected if t
kernel/src/sev/utils.rs:262
↓ 7 callers
Method
root_dir
Used to get the root directory of the filesystem. # Returns [`Arc<dyn Directory>`]: root directory of the filesystem.
kernel/src/fs/filesystem.rs:316
↓ 7 callers
Method
rootdir
(&self)
kernel/src/task/tasks.rs:580
↓ 7 callers
Function
secrets_page_mut
()
kernel/src/sev/secrets_page.rs:153
↓ 7 callers
Method
size
(&self)
kernel/src/fw_cfg.rs:79
↓ 7 callers
Function
valid_phys_region
Returns `true` if the provided physical region `region` is valid, i.e., it is within a configured memory region, otherwise returns `false`. Note this
kernel/src/mm/memory.rs:122
↓ 7 callers
Method
validate_virtual_page_range
# Safety The caller is required to ensure the safety of the validation operation on this memory range.
kernel/src/platform/snp.rs:344
↓ 7 callers
Function
walk_path
Used to perform a walk over the items in a path while checking each item is a directory, starting at the given directory. # Argument `path_items`: c
kernel/src/fs/filesystem.rs:411
↓ 7 callers
Method
write
Used to write to the file at a particular offset. # Arguments - `buf`: buffer that contains the data to write into the file. - `file_offset`: file o
kernel/src/fs/ramfs.rs:186
↓ 7 callers
Function
zero_mem_region
# Safety Caller should ensure [`core::ptr::write_bytes`] safety rules.
kernel/src/utils/util.rs:78
↓ 6 callers
Function
a_cas
libtcgtpm/deps/libcrt/include/atomic.h:22
↓ 6 callers
Method
caa
(&self)
kernel/src/cpu/percpu.rs:253
↓ 6 callers
Function
copy_slice_to_guest
Writes a slice of bytes to a physical address region outside of SVSM use. # Arguments `src`: The byte slice to write to guest memory. `dst`: The phy
kernel/src/mm/guestmem.rs:674
↓ 6 callers
Method
flush_percpu
Flushes the TLB for the current CPU.
kernel/src/cpu/tlb.rs:77
↓ 6 callers
Function
flush_tlb_global_sync_page
(vaddr: VirtAddr, pgsize: PageSize)
kernel/src/cpu/tlb.rs:143
↓ 6 callers
Method
free_page_order
(&mut self, mut pfn: usize, mut order: usize)
kernel/src/mm/alloc.rs:1389
↓ 6 callers
Method
get
(&self, offset: usize)
kernel/src/utils/bitmap_allocator.rs:83
↓ 6 callers
Method
get_apic_id
(&self)
kernel/src/cpu/percpu.rs:661
↓ 6 callers
Method
get_by_cpu_index
Callers are expected to specify a valid CPU index.
kernel/src/cpu/percpu.rs:172
↓ 6 callers
Method
get_end
(&self)
tools/igvmbuilder/src/gpa_map.rs:54
↓ 6 callers
Method
get_io_port
(&self)
kernel/src/platform/snp.rs:319
↓ 6 callers
Method
guest_apic_mut
Returns a mutable reference to the local APIC, or `None` if APIC emulation is not enabled.
kernel/src/cpu/percpu.rs:1041
↓ 6 callers
Method
index
(&self, paddr: PhysAddr)
kernel/src/mm/validate.rs:126
↓ 6 callers
Method
list
(&mut self)
kernel/src/task/schedule.rs:263
↓ 6 callers
Function
page_align_up
(x: usize)
kernel/src/utils/util.rs:56
↓ 6 callers
Method
page_frame
Get the address from the page table entry, including the shared bit.
kernel/src/mm/pagetable.rs:382
↓ 6 callers
Method
page_state_change
( &self, region: MemoryRegion<PhysAddr>, op: PageStateChangeOp, )
kernel/src/sev/ghcb.rs:621
↓ 6 callers
Function
pte_index
(vaddr: u64, level: u64)
boot/bootimg/src/page_tables.rs:50
↓ 6 callers
Function
raw_vmgexit
VMGEXIT operations generally need to be performed with interrupts disabled to ensure that an interrupt cannot cause the GHCB MSR to change prior to ex
kernel/src/sev/utils.rs:233
↓ 6 callers
Function
read_cr4
()
kernel/src/cpu/control_regs.rs:181
↓ 6 callers
Method
region
Returns the virtual memory region that this allocation spans.
kernel/src/mm/virtualrange.rs:118
↓ 6 callers
Method
regs
Returns the ApicAccess object.
kernel/src/cpu/x86/apic.rs:104
↓ 6 callers
Function
rmdir
Removes a directory relative to file-system root. # Arguments `path`: path of the directory to be removed. # Returns Returns `Ok(())` on success a
kernel/src/fs/filesystem.rs:780
↓ 6 callers
Function
round_to_pages
(size: u64)
boot/bootimg/src/page_tables.rs:35
↓ 6 callers
Function
run_cmd_checked
Run a command and check its exit status
xbuild/src/main.rs:68
↓ 6 callers
Method
runqueue
(&self)
kernel/src/cpu/percpu.rs:373
↓ 6 callers
Method
set_entry
Sets the entry at the specified index within the allocated page table array.
boot/bootimg/src/page_tables.rs:140
↓ 6 callers
Method
size
Used to get the size of the file in bytes. # Returns the size of the file in bytes.
kernel/src/fs/ramfs.rs:260
↓ 6 callers
Function
split_path
Used to get an iterator over all the directory and file names contained in a path. This function performs error checking. # Argument `path`: path to
kernel/src/fs/filesystem.rs:391
↓ 6 callers
Function
start_kernel_task
Creates, initializes and starts a new kernel task. Note that the task has already started to run before this function returns. # Arguments entry: Th
kernel/src/task/schedule.rs:310
↓ 6 callers
Method
truncate
(&self, length: usize)
kernel/src/fs/obj.rs:116
↓ 6 callers
Method
try_init_from_fn
Initialize an uninitialized `ImmutAfterInitCell` instance from a function or closure. On success, it returns a reference to the value stored in the ce
kernel/src/utils/immut_after_init.rs:179
↓ 6 callers
Method
vaddr
(&self)
kernel/src/sev/vmsa.rs:54
← previous
next →
101–200 of 2,698, ranked by callers