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
↓ 6 callers
Method
virt_addr
Get the virtual address the guarded mapping starts at. # Returns Virtual start address of contained mapping.
kernel/src/task/task_mm.rs:162
↓ 6 callers
Method
write_all
(&mut self, buf: &[u8])
kernel/src/io.rs:93
↓ 6 callers
Function
write_reg
(mctx: &mut I, reg: Register, data: usize, size: Bytes)
kernel/src/insn_decode/decode.rs:549
↓ 5 callers
Function
_print
(args: fmt::Arguments<'_>)
kernel/src/console.rs:53
↓ 5 callers
Method
add_empty_pages
( &mut self, gpa_start: u64, size: u64, compatibility_mask: u32, data_
tools/igvmbuilder/src/igvm_builder.rs:786
↓ 5 callers
Method
allocate_page
(&mut self)
kernel/src/mm/alloc.rs:1010
↓ 5 callers
Method
as_fs
(&self)
kernel/src/syscall/obj.rs:28
↓ 5 callers
Method
check_delivered_interrupts
( &mut self, cpu_state: &mut T, caa: Option<NonNull<SvsmCaa>>, )
kernel/src/cpu/apic.rs:106
↓ 5 callers
Function
copy_bytes
(src: *const u8, dst: *mut u8, size: usize)
kernel/src/mm/guestmem.rs:246
↓ 5 callers
Method
count
Returns the current nesting count # Returns Levels of IRQ-disable nesting currently active
kernel/src/cpu/irq_state.rs:230
↓ 5 callers
Function
cpu_get_feat
Gets the raw value of the given feature
kernel/src/cpu/features.rs:153
↓ 5 callers
Method
cpu_index
(&self)
kernel/src/cpu/percpu.rs:301
↓ 5 callers
Function
create_16k_test_file
()
kernel/src/mm/vm/mapping/file_mapping.rs:191
↓ 5 callers
Method
disable
(&self)
kernel/src/cpu/irq_state.rs:183
↓ 5 callers
Method
fill
(&self, val: u8)
kernel/src/sev/ghcb.rs:813
↓ 5 callers
Method
get_apic
Get a reference to the [`X86Apic`] object for this cpu. # Returns Reference to the [`X86Apic`] object of the local CPU.
kernel/src/cpu/percpu.rs:505
↓ 5 callers
Method
get_byte
(&self)
kernel/src/serial.rs:85
↓ 5 callers
Method
get_child
(&self, index: usize)
kernel/src/utils/bitmap_allocator.rs:123
↓ 5 callers
Method
get_param_size
(&self, param_type: BootParamType)
tools/igvmbuilder/src/boot_params.rs:64
↓ 5 callers
Method
get_task_id
(&self)
kernel/src/task/tasks.rs:576
↓ 5 callers
Method
hv_doorbell
(&self)
kernel/src/cpu/percpu.rs:608
↓ 5 callers
Method
id
(&self)
syscall/src/class1.rs:25
↓ 5 callers
Method
into_bits
(self)
cpuarch/src/vmsa.rs:93
↓ 5 callers
Function
ipi_available
Indicates whether use of IPIs is currently available.
kernel/src/cpu/ipi.rs:628
↓ 5 callers
Method
is_bit64
(&self)
kernel/src/insn_decode/decode.rs:366
↓ 5 callers
Method
is_page_aligned
(&self)
kernel/src/address.rs:140
↓ 5 callers
Method
load
(&'static self)
kernel/src/cpu/percpu.rs:920
↓ 5 callers
Method
map_4k
Maps a 4KB 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:1047
↓ 5 callers
Method
mapping
(&self, offset: usize)
kernel/src/fs/ramfs.rs:264
↓ 5 callers
Function
memcpy
libtcgtpm/deps/libcrt/src/string/memcpy.c:7
↓ 5 callers
Method
mmap_user
( &self, addr: VirtAddr, file: Option<&FileHandle>, offset: usize, siz
kernel/src/task/tasks.rs:863
↓ 5 callers
Function
obj_get
Retrieves an object by its ObjHandle. # Arguments `id` - The ObjHandle for the object to be retrieved. # Returns `Result<Arc<dyn Obj>>, SvsmError>
kernel/src/syscall/obj.rs:114
↓ 5 callers
Method
parameter_type
( &mut self, parameter_type: IgvmVariableHeaderType, parameter: &IGVM_VHS_PARAMETER,
tools/igvmbuilder/src/igvm_firmware.rs:417
↓ 5 callers
Method
phys_addr
Returns the physical address of the memory page.
kernel/src/mm/alloc.rs:1548
↓ 5 callers
Function
preemption_checks
()
kernel/src/task/schedule.rs:594
↓ 5 callers
Method
prepare_run_task
Prepare to run a task by marking it runnable and placing it into the run queue.
kernel/src/task/schedule.rs:130
↓ 5 callers
Function
protocol_supported
(version: u32, version_min: u32, version_max: u32)
kernel/src/protocols/core.rs:227
↓ 5 callers
Method
put_byte
(&self, ch: u8)
kernel/src/serial.rs:74
↓ 5 callers
Function
raw_set_tpr
(tpr_value: usize)
kernel/src/cpu/irq_state.rs:92
↓ 5 callers
Function
real_mode_data_segment
()
kernel/src/cpu/vmsa.rs:117
↓ 5 callers
Method
region
Request the mapped region as a [`MemoryRegion`]. # Returns The global mapped region as an instance of [`MemoryRegion`].
kernel/src/mm/global_memory.rs:142
↓ 5 callers
Method
remove
Removes the mapping from a given base address from the RBTree # Arguments `base` - Virtual base address of the [`VMM`] to remove # Returns The rem
kernel/src/mm/vm/range.rs:432
↓ 5 callers
Function
schedule
Perform a task switch and hand the CPU over to the next task on the run-list. In case the current task is terminated, it will be destroyed after the s
kernel/src/task/schedule.rs:614
↓ 5 callers
Method
seek_abs
(&mut self, pos: usize)
kernel/src/fs/filesystem.rs:104
↓ 5 callers
Function
select_new_task
Select another task to run. If rescheduling is requested, the current task will be placed back on the current processor's run queue so it can be elig
kernel/src/task/schedule.rs:624
↓ 5 callers
Method
set
(&mut self, index: NonZeroU8, addr: VirtAddr)
kernel/src/cpu/isst.rs:16
↓ 5 callers
Function
set_affinity
(cpu_index: usize)
kernel/src/task/schedule.rs:474
↓ 5 callers
Function
split_val
(val: u64)
kernel/src/locking/rwlock.rs:327
↓ 5 callers
Function
strlen
libtcgtpm/deps/libcrt/src/string/strlen.c:12
↓ 5 callers
Function
tdx_result
(err: u64)
kernel/src/tdx/error.rs:39
↓ 5 callers
Method
use_interrupts
(&self)
kernel/src/platform/snp.rs:414
↓ 5 callers
Function
virt_from_idx
(idx: usize)
kernel/src/mm/address_space.rs:168
↓ 5 callers
Method
virt_range
Returns the virtual start and end addresses for this region # Returns Tuple containing `start` and `end` virtual address of the memory region
kernel/src/mm/vm/range.rs:190
↓ 5 callers
Function
virt_to_frame
(vaddr: VirtAddr)
kernel/src/mm/address_space.rs:103
↓ 5 callers
Function
write_cr4
(cr4: CR4Flags)
kernel/src/cpu/control_regs.rs:200
↓ 4 callers
Function
a_ctz_32
libtcgtpm/deps/libcrt/include/atomic.h:258
↓ 4 callers
Method
add
(&self, add_mask: u32)
tools/igvmbuilder/src/platform.rs:24
↓ 4 callers
Function
align_down
(addr: T, align: T)
kernel/src/utils/util.rs:36
↓ 4 callers
Function
allocate_pages
Allocates multiple memory pages with a specified order from the root memory region. # Arguments `order` - Order of the allocation, determining the n
kernel/src/mm/alloc.rs:1745
↓ 4 callers
Method
allocate_pages
(&mut self, order: usize)
kernel/src/mm/alloc.rs:996
↓ 4 callers
Method
as_mut_ptr
(&self)
kernel/src/address.rs:372
↓ 4 callers
Method
as_usize
(&self)
kernel/src/address.rs:378
↓ 4 callers
Method
check_write
(&self)
kernel/src/fs/filesystem.rs:50
↓ 4 callers
Method
contains_region
Check whether this region fully contains a different region. ```rust # use svsm::address::VirtAddr; # use svsm::utils::MemoryRegion; # use svsm::type
kernel/src/utils/memory_region.rs:262
↓ 4 callers
Method
current_task
Gets a pointer to the current task # Panics Panics if there is no current task.
kernel/src/task/schedule.rs:236
↓ 4 callers
Function
do_movsb
(src: *const T, dst: *mut T)
kernel/src/mm/guestmem.rs:279
↓ 4 callers
Method
emulate_mmio_write
( &self, mctx: &mut I, seg: SegRegister, ea: usize, data: u64, )
kernel/src/insn_decode/decode.rs:1506
↓ 4 callers
Method
enable
Enables to APIC in X2APIC mode.
kernel/src/cpu/x86/apic.rs:131
↓ 4 callers
Method
filter_map
Makes a new `RawReadLockGuard` for an optional component of the borrowed data. The original guard is returned as an `Err(..)` if the closure returns `
kernel/src/locking/rwlock.rs:55
↓ 4 callers
Function
free_page
Free the page at the given virtual address.
kernel/src/mm/alloc.rs:1787
↓ 4 callers
Method
get_areas
# Safety The areas vector obtained here is not multi-thread safe, so the caller must guarantee that is not used in a context that expects multi-thread
kernel/src/cpu/percpu.rs:108
↓ 4 callers
Method
get_mapping
(&self)
kernel/src/mm/vm/mapping/api.rs:207
↓ 4 callers
Method
get_or_init
(&self)
kernel/src/cpu/features.rs:96
↓ 4 callers
Method
get_param_gpa
(&self, param_base_gpa: u64, param_type: BootParamType)
tools/igvmbuilder/src/boot_params.rs:74
↓ 4 callers
Method
get_param_offset
(&self, param_type: BootParamType)
tools/igvmbuilder/src/boot_params.rs:55
↓ 4 callers
Method
get_state
(&self)
kernel/src/task/tasks.rs:272
↓ 4 callers
Function
handle_debug_exception
(ctx: &mut X86ExceptionContext, exception: usize)
kernel/src/debug/gdbstub.rs:98
↓ 4 callers
Method
init
(&self)
kernel/src/serial.rs:47
↓ 4 callers
Method
init
Initialize the [`SlabPage`].
kernel/src/mm/alloc.rs:1835
↓ 4 callers
Method
init_from_ref
Initialize an uninitialized `ImmutAfterInitCell` instance from a reference. Will fail if called on an initialized instance. `v` - Initialization refe
kernel/src/utils/immut_after_init.rs:149
↓ 4 callers
Method
ipi_state
# Safety The caller is responsible for ensuring the correct synchronization of `IpiState` are followed.
kernel/src/cpu/percpu.rs:369
↓ 4 callers
Function
is_aligned
(addr: T, align: T)
kernel/src/utils/util.rs:49
↓ 4 callers
Function
is_cet_ss_enabled
()
kernel/src/cpu/shadow_stack.rs:32
↓ 4 callers
Method
len
(&self)
kernel/src/debug/stacktrace.rs:255
↓ 4 callers
Method
list
(&self)
kernel/src/fs/ramfs.rs:352
↓ 4 callers
Method
lookup_vaddr_range
Looks up an address range and returns the associated program header index and offset within the segment. # Parameters - `range`: An [`Elf64AddrRange`
elf/src/load_segments.rs:105
↓ 4 callers
Method
map
(&self, offset: usize)
kernel/src/mm/vm/mapping/file_mapping.rs:143
↓ 4 callers
Function
map_global_range
Map physical addresses into the global shared address range. # Arguments `pstart`: Start physical to map, must be aligned to requested page-size. `s
kernel/src/mm/global_memory.rs:184
↓ 4 callers
Method
mapping_size
Request size of the mapping in bytes # Returns The size of the mapping in bytes as `usize`.
kernel/src/mm/vm/mapping/rawalloc.rs:100
↓ 4 callers
Method
mmio_read
Perfrom a read from a memory-mapped IO area # Safety Caller must ensure that `pa` points to a properly aligned memory location and the memory access
kernel/src/sev/ghcb.rs:591
↓ 4 callers
Method
mmio_write
Perfrom a write to a memory-mapped IO area # Safety Caller must ensure that `pa` points to a properly aligned memory location and the memory accesse
kernel/src/sev/ghcb.rs:577
↓ 4 callers
Function
open
(path: &CStr, mode: FileModes, flags: FileFlags)
syscall/src/class1.rs:51
↓ 4 callers
Function
opendir
Used to open a directory object. # Argument `path_items`: contains items in a path. # Returns [`Result<Arc<dyn Directory>, SvsmError>`]: [`Result`
kernel/src/fs/filesystem.rs:594
↓ 4 callers
Method
page_align_up
(&self)
kernel/src/address.rs:96
↓ 4 callers
Method
page_state_change_required
(&self)
kernel/src/boot_params.rs:140
↓ 4 callers
Function
phys_to_virt
(paddr: PhysAddr)
kernel/src/mm/address_space.rs:113
↓ 4 callers
Method
post_interrupt
(&mut self, irq: u8, level_sensitive: bool)
kernel/src/cpu/apic.rs:368
↓ 4 callers
Method
push
(&mut self, b: u8)
kernel/src/fs/console.rs:44
↓ 4 callers
Method
range
Request the mapped range # Returns The start and end virtual address for this virtual mapping.
kernel/src/mm/vm/mapping/api.rs:200
↓ 4 callers
Method
range_pfn
Request the mapped range as page frame numbers # Returns The start and end (non-inclusive) virtual address for this virtual mapping, right-shifted b
kernel/src/mm/vm/mapping/api.rs:191
← previous
next →
201–300 of 2,698, ranked by callers