MCPcopy Create free account

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

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

↓ 6 callersMethodvirt_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 callersMethodwrite_all
(&mut self, buf: &[u8])
kernel/src/io.rs:93
↓ 6 callersFunctionwrite_reg
(mctx: &mut I, reg: Register, data: usize, size: Bytes)
kernel/src/insn_decode/decode.rs:549
↓ 5 callersFunction_print
(args: fmt::Arguments<'_>)
kernel/src/console.rs:53
↓ 5 callersMethodadd_empty_pages
( &mut self, gpa_start: u64, size: u64, compatibility_mask: u32, data_
tools/igvmbuilder/src/igvm_builder.rs:786
↓ 5 callersMethodallocate_page
(&mut self)
kernel/src/mm/alloc.rs:1010
↓ 5 callersMethodas_fs
(&self)
kernel/src/syscall/obj.rs:28
↓ 5 callersMethodcheck_delivered_interrupts
( &mut self, cpu_state: &mut T, caa: Option<NonNull<SvsmCaa>>, )
kernel/src/cpu/apic.rs:106
↓ 5 callersFunctioncopy_bytes
(src: *const u8, dst: *mut u8, size: usize)
kernel/src/mm/guestmem.rs:246
↓ 5 callersMethodcount
Returns the current nesting count # Returns Levels of IRQ-disable nesting currently active
kernel/src/cpu/irq_state.rs:230
↓ 5 callersFunctioncpu_get_feat
Gets the raw value of the given feature
kernel/src/cpu/features.rs:153
↓ 5 callersMethodcpu_index
(&self)
kernel/src/cpu/percpu.rs:301
↓ 5 callersFunctioncreate_16k_test_file
()
kernel/src/mm/vm/mapping/file_mapping.rs:191
↓ 5 callersMethoddisable
(&self)
kernel/src/cpu/irq_state.rs:183
↓ 5 callersMethodfill
(&self, val: u8)
kernel/src/sev/ghcb.rs:813
↓ 5 callersMethodget_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 callersMethodget_byte
(&self)
kernel/src/serial.rs:85
↓ 5 callersMethodget_child
(&self, index: usize)
kernel/src/utils/bitmap_allocator.rs:123
↓ 5 callersMethodget_param_size
(&self, param_type: BootParamType)
tools/igvmbuilder/src/boot_params.rs:64
↓ 5 callersMethodget_task_id
(&self)
kernel/src/task/tasks.rs:576
↓ 5 callersMethodhv_doorbell
(&self)
kernel/src/cpu/percpu.rs:608
↓ 5 callersMethodid
(&self)
syscall/src/class1.rs:25
↓ 5 callersMethodinto_bits
(self)
cpuarch/src/vmsa.rs:93
↓ 5 callersFunctionipi_available
Indicates whether use of IPIs is currently available.
kernel/src/cpu/ipi.rs:628
↓ 5 callersMethodis_bit64
(&self)
kernel/src/insn_decode/decode.rs:366
↓ 5 callersMethodis_page_aligned
(&self)
kernel/src/address.rs:140
↓ 5 callersMethodload
(&'static self)
kernel/src/cpu/percpu.rs:920
↓ 5 callersMethodmap_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 callersMethodmapping
(&self, offset: usize)
kernel/src/fs/ramfs.rs:264
↓ 5 callersFunctionmemcpy
libtcgtpm/deps/libcrt/src/string/memcpy.c:7
↓ 5 callersMethodmmap_user
( &self, addr: VirtAddr, file: Option<&FileHandle>, offset: usize, siz
kernel/src/task/tasks.rs:863
↓ 5 callersFunctionobj_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 callersMethodparameter_type
( &mut self, parameter_type: IgvmVariableHeaderType, parameter: &IGVM_VHS_PARAMETER,
tools/igvmbuilder/src/igvm_firmware.rs:417
↓ 5 callersMethodphys_addr
Returns the physical address of the memory page.
kernel/src/mm/alloc.rs:1548
↓ 5 callersFunctionpreemption_checks
()
kernel/src/task/schedule.rs:594
↓ 5 callersMethodprepare_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 callersFunctionprotocol_supported
(version: u32, version_min: u32, version_max: u32)
kernel/src/protocols/core.rs:227
↓ 5 callersMethodput_byte
(&self, ch: u8)
kernel/src/serial.rs:74
↓ 5 callersFunctionraw_set_tpr
(tpr_value: usize)
kernel/src/cpu/irq_state.rs:92
↓ 5 callersFunctionreal_mode_data_segment
()
kernel/src/cpu/vmsa.rs:117
↓ 5 callersMethodregion
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 callersMethodremove
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 callersFunctionschedule
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 callersMethodseek_abs
(&mut self, pos: usize)
kernel/src/fs/filesystem.rs:104
↓ 5 callersFunctionselect_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 callersMethodset
(&mut self, index: NonZeroU8, addr: VirtAddr)
kernel/src/cpu/isst.rs:16
↓ 5 callersFunctionset_affinity
(cpu_index: usize)
kernel/src/task/schedule.rs:474
↓ 5 callersFunctionsplit_val
(val: u64)
kernel/src/locking/rwlock.rs:327
↓ 5 callersFunctionstrlen
libtcgtpm/deps/libcrt/src/string/strlen.c:12
↓ 5 callersFunctiontdx_result
(err: u64)
kernel/src/tdx/error.rs:39
↓ 5 callersMethoduse_interrupts
(&self)
kernel/src/platform/snp.rs:414
↓ 5 callersFunctionvirt_from_idx
(idx: usize)
kernel/src/mm/address_space.rs:168
↓ 5 callersMethodvirt_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 callersFunctionvirt_to_frame
(vaddr: VirtAddr)
kernel/src/mm/address_space.rs:103
↓ 5 callersFunctionwrite_cr4
(cr4: CR4Flags)
kernel/src/cpu/control_regs.rs:200
↓ 4 callersFunctiona_ctz_32
libtcgtpm/deps/libcrt/include/atomic.h:258
↓ 4 callersMethodadd
(&self, add_mask: u32)
tools/igvmbuilder/src/platform.rs:24
↓ 4 callersFunctionalign_down
(addr: T, align: T)
kernel/src/utils/util.rs:36
↓ 4 callersFunctionallocate_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 callersMethodallocate_pages
(&mut self, order: usize)
kernel/src/mm/alloc.rs:996
↓ 4 callersMethodas_mut_ptr
(&self)
kernel/src/address.rs:372
↓ 4 callersMethodas_usize
(&self)
kernel/src/address.rs:378
↓ 4 callersMethodcheck_write
(&self)
kernel/src/fs/filesystem.rs:50
↓ 4 callersMethodcontains_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 callersMethodcurrent_task
Gets a pointer to the current task # Panics Panics if there is no current task.
kernel/src/task/schedule.rs:236
↓ 4 callersFunctiondo_movsb
(src: *const T, dst: *mut T)
kernel/src/mm/guestmem.rs:279
↓ 4 callersMethodemulate_mmio_write
( &self, mctx: &mut I, seg: SegRegister, ea: usize, data: u64, )
kernel/src/insn_decode/decode.rs:1506
↓ 4 callersMethodenable
Enables to APIC in X2APIC mode.
kernel/src/cpu/x86/apic.rs:131
↓ 4 callersMethodfilter_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 callersFunctionfree_page
Free the page at the given virtual address.
kernel/src/mm/alloc.rs:1787
↓ 4 callersMethodget_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 callersMethodget_mapping
(&self)
kernel/src/mm/vm/mapping/api.rs:207
↓ 4 callersMethodget_or_init
(&self)
kernel/src/cpu/features.rs:96
↓ 4 callersMethodget_param_gpa
(&self, param_base_gpa: u64, param_type: BootParamType)
tools/igvmbuilder/src/boot_params.rs:74
↓ 4 callersMethodget_param_offset
(&self, param_type: BootParamType)
tools/igvmbuilder/src/boot_params.rs:55
↓ 4 callersMethodget_state
(&self)
kernel/src/task/tasks.rs:272
↓ 4 callersFunctionhandle_debug_exception
(ctx: &mut X86ExceptionContext, exception: usize)
kernel/src/debug/gdbstub.rs:98
↓ 4 callersMethodinit
(&self)
kernel/src/serial.rs:47
↓ 4 callersMethodinit
Initialize the [`SlabPage`].
kernel/src/mm/alloc.rs:1835
↓ 4 callersMethodinit_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 callersMethodipi_state
# Safety The caller is responsible for ensuring the correct synchronization of `IpiState` are followed.
kernel/src/cpu/percpu.rs:369
↓ 4 callersFunctionis_aligned
(addr: T, align: T)
kernel/src/utils/util.rs:49
↓ 4 callersFunctionis_cet_ss_enabled
()
kernel/src/cpu/shadow_stack.rs:32
↓ 4 callersMethodlen
(&self)
kernel/src/debug/stacktrace.rs:255
↓ 4 callersMethodlist
(&self)
kernel/src/fs/ramfs.rs:352
↓ 4 callersMethodlookup_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 callersMethodmap
(&self, offset: usize)
kernel/src/mm/vm/mapping/file_mapping.rs:143
↓ 4 callersFunctionmap_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 callersMethodmapping_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 callersMethodmmio_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 callersMethodmmio_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 callersFunctionopen
(path: &CStr, mode: FileModes, flags: FileFlags)
syscall/src/class1.rs:51
↓ 4 callersFunctionopendir
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 callersMethodpage_align_up
(&self)
kernel/src/address.rs:96
↓ 4 callersMethodpage_state_change_required
(&self)
kernel/src/boot_params.rs:140
↓ 4 callersFunctionphys_to_virt
(paddr: PhysAddr)
kernel/src/mm/address_space.rs:113
↓ 4 callersMethodpost_interrupt
(&mut self, irq: u8, level_sensitive: bool)
kernel/src/cpu/apic.rs:368
↓ 4 callersMethodpush
(&mut self, b: u8)
kernel/src/fs/console.rs:44
↓ 4 callersMethodrange
Request the mapped range # Returns The start and end virtual address for this virtual mapping.
kernel/src/mm/vm/mapping/api.rs:200
↓ 4 callersMethodrange_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
← previousnext →201–300 of 2,698, ranked by callers