id stringlengths 4 63 | text stringlengths 153 8.81M |
|---|---|
kunit_kfree(9) | NAME kunit_kfree - Like kfree except for allocations managed by KUnit.
SYNOPSIS void kunit_kfree (struct kunit *test , const void *ptr );
ARGUMENTS test The test case to which the resource belongs.
ptr The memory allocation to free.
SEE ALSO Kernel file ./include/kunit/test.h enum kunit_stat... |
kunit_kfree_const(9) | NAME kunit_kfree_const - conditionally free test managed memory
SYNOPSIS void kunit_kfree_const (struct kunit *test , const void *x );
ARGUMENTS test The test context object.
x pointer to the memory
DESCRIPTION Calls kunit_kfree only if x is not in .rodata section. See kunit_kstrdup_const f... |
kunit_kfree_skb(9) | NAME kunit_kfree_skb - Like kfree_skb except for allocations managed by KUnit.
SYNOPSIS void kunit_kfree_skb (struct kunit *test , struct sk_buff *skb );
ARGUMENTS test The test case to which the resource belongs.
skb The SKB to free.
SEE ALSO Kernel file ./include/kunit/skbuff.h kunit_zalloc_... |
kunit_kmalloc(9) | NAME kunit_kmalloc - Like kmalloc() except the allocation is *test managed*.
SYNOPSIS void * kunit_kmalloc (struct kunit *test , size_t size , gfp_t gfp );
ARGUMENTS test The test context object.
size The size in bytes of the desired memory.
gfp flags passed to underlying kmalloc... |
kunit_kmalloc_array(9) | NAME kunit_kmalloc_array - Like kmalloc_array() except the allocation is *test managed*.
SYNOPSIS void * kunit_kmalloc_array (struct kunit *test , size_t n , size_t size , gfp_t gfp );
ARGUMENTS test The test context object.
n number of elements.
size The size in bytes of the d... |
kunit_kstrdup(9) | NAME kunit_kstrdup - Duplicates a string into a test managed allocation.
SYNOPSIS char * kunit_kstrdup (struct kunit *test , const char *str , gfp_t gfp );
ARGUMENTS test The test context object.
str The NULL-terminated string to duplicate.
gfp flags passed to underlying kmalloc... |
kunit_kstrdup_const(9) | NAME kunit_kstrdup_const - Conditionally duplicates a string into a test managed allocation.
SYNOPSIS const char * kunit_kstrdup_const (struct kunit *test , const char *str , gfp_t gfp );
ARGUMENTS test The test context object.
str The NULL-terminated string to duplicate.
gfp fl... |
kunit_kzalloc(9) | NAME kunit_kzalloc - Just like kunit_kmalloc(), but zeroes the allocation.
SYNOPSIS void * kunit_kzalloc (struct kunit *test , size_t size , gfp_t gfp );
ARGUMENTS test The test context object.
size The size in bytes of the desired memory.
gfp flags passed to underlying kmalloc.
... |
kunit_mark_skipped(9) | NAME kunit_mark_skipped - Marks @test as skipped
SYNOPSIS kunit_mark_skipped (test , fmt , ... );
ARGUMENTS test The test context object.
fmt A printk style format string.
... variable arguments
DESCRIPTION Marks the test as skipped. fmt is given output as the test status comme... |
kunit_platform_device_add(9) | NAME kunit_platform_device_add - Register a KUnit test managed platform device
SYNOPSIS int kunit_platform_device_add (struct kunit *test , struct platform_device *pdev );
ARGUMENTS test test context
pdev platform device to add
DESCRIPTION Register a test managed platform device. The device is ... |
kunit_platform_device_alloc(9) | NAME kunit_platform_device_alloc - Allocate a KUnit test managed platform device
SYNOPSIS struct platform_device * kunit_platform_device_alloc (struct kunit *test , const char *name , int id );
ARGUMENTS test test context
name device name of platform device to alloc
id identifie... |
kunit_platform_device_prepare_wait_for_probe(9) | NAME kunit_platform_device_prepare_wait_for_probe - Prepare a completion variable to wait for a platform device to probe
SYNOPSIS int kunit_platform_device_prepare_wait_for_probe (struct kunit *test , struct platform_device *pdev , struct completion *x );
ARGUMENTS test test context
pdev platfor... |
kunit_platform_driver_register(9) | NAME kunit_platform_driver_register - Register a KUnit test managed platform driver
SYNOPSIS int kunit_platform_driver_register (struct kunit *test , struct platform_driver *drv );
ARGUMENTS test test context
drv platform driver to register
DESCRIPTION Register a test managed platform driver... |
kunit_put_resource(9) | NAME kunit_put_resource - When caller is done with retrieved resource, kunit_put_resource() should be called to drop reference count. The resource list maintains a reference count on resources, so if no users are utilizing a resource and it is removed from the resource list, it will be freed via the associated free f... |
kunit_register_params_array(9) | NAME kunit_register_params_array - Register parameter array for a KUnit test.
SYNOPSIS kunit_register_params_array (test , array , param_count , get_desc );
ARGUMENTS test The KUnit test structure to which parameters will be added.
array An array of test parameters.
param_count Number of ... |
kunit_release_action(9) | NAME kunit_release_action - Run a matching action call immediately.
SYNOPSIS void kunit_release_action (struct kunit *test , kunit_action_t *action , void *ctx );
ARGUMENTS test Test case the action is associated with.
action The deferred function to trigger.
ctx The context passed... |
kunit_remove_action(9) | NAME kunit_remove_action - Cancel a matching deferred action.
SYNOPSIS void kunit_remove_action (struct kunit *test , kunit_action_t *action , void *ctx );
ARGUMENTS test Test case the action is associated with.
action The deferred function to cancel.
ctx The context passed to the ... |
kunit_remove_resource(9) | NAME kunit_remove_resource - remove resource from resource list associated with test.
SYNOPSIS void kunit_remove_resource (struct kunit *test , struct kunit_resource *res );
ARGUMENTS test The test context object.
res The resource to be removed.
DESCRIPTION Note that the resource will not be i... |
kunit_resource_name_match(9) | NAME kunit_resource_name_match - Match a resource with the same name.
SYNOPSIS bool kunit_resource_name_match (struct kunit *test , struct kunit_resource *res , void *match_name );
ARGUMENTS test Test case to which the resource belongs.
res The resource.
match_name The name to match ag... |
kunit_skip(9) | NAME kunit_skip - Marks @test as skipped
SYNOPSIS kunit_skip (test , fmt , ... );
ARGUMENTS test The test context object.
fmt A printk style format string.
... variable arguments
DESCRIPTION Skips the test. fmt is given output as the test status comment, typically the reason th... |
kunit_test_init_section_suites(9) | NAME kunit_test_init_section_suites - used to register one or more &struct kunit_suite containing init functions or init data.
SYNOPSIS kunit_test_init_section_suites (__suites... );
ARGUMENTS __suites a statically allocated list of struct kunit_suite.
DESCRIPTION This functions similar to kunit_test_suites exc... |
kunit_test_suites(9) | NAME kunit_test_suites - used to register one or more &struct kunit_suite with KUnit.
SYNOPSIS kunit_test_suites (__suites... );
ARGUMENTS __suites a statically allocated list of struct kunit_suite.
DESCRIPTION Registers suites with the test framework. This is done by placing the array of struct kunit_suite * ... |
kunit_vm_mmap(9) | NAME kunit_vm_mmap - Allocate KUnit-tracked vm_mmap() area
SYNOPSIS unsigned long kunit_vm_mmap (struct kunit *test , struct file *file , unsigned long addr , unsigned long len , unsigned long prot , unsigned long flag , unsigned long offset );
ARGUMENTS test The test context object.
file struct... |
kunit_warn(9) | NAME kunit_warn - Prints a WARN level message associated with @test.
SYNOPSIS kunit_warn (test , fmt , ... );
ARGUMENTS test The test context object.
fmt A printk style format string.
... variable arguments
DESCRIPTION Prints a warning level message.
SEE ALSO Kernel file ./i... |
kunit_zalloc_skb(9) | NAME kunit_zalloc_skb - Allocate and initialize a resource managed skb.
SYNOPSIS struct sk_buff * kunit_zalloc_skb (struct kunit *test , int len , gfp_t gfp );
ARGUMENTS test The test case to which the skb belongs
len size to allocate
gfp allocation flags
DESCRIPTION Allocate a... |
kunmap(9) | NAME kunmap - Unmap the virtual address mapped by kmap()
SYNOPSIS void kunmap (const struct page *page );
ARGUMENTS page Pointer to the page which was mapped by kmap
DESCRIPTION Counterpart to kmap. A NOOP for CONFIG_HIGHMEM=n and for mappings of pages in the low memory area.
SEE ALSO Kernel file ./include... |
kunmap_atomic(9) | NAME kunmap_atomic - Unmap the virtual address mapped by kmap_atomic() - deprecated!
SYNOPSIS kunmap_atomic (__addr );
ARGUMENTS __addr Virtual address to be unmapped
DESCRIPTION Unmaps an address previously mapped by kmap_atomic and re-enables pagefaults. Depending on PREEMP_RT configuration, re-enables also ... |
kunmap_high(9) | NAME kunmap_high - unmap a highmem page into memory
SYNOPSIS void kunmap_high (const struct page *page );
ARGUMENTS page struct page to unmap
DESCRIPTION If ARCH_NEEDS_KMAP_HIGH_GET is not defined then this may be called only from user context.
SEE ALSO Kernel file ./mm/highmem.c kmap_high(9), kmap_high_get(... |
kunmap_local(9) | NAME kunmap_local - Unmap a page mapped via kmap_local_page().
SYNOPSIS kunmap_local (__addr );
ARGUMENTS __addr An address within the page mapped
DESCRIPTION __addr can be any address within the mapped page. Commonly it is the address return from kmap_local_page, but it can also include offsets. Unmappi... |
kvec_array_init(9) | NAME kvec_array_init - initialize a IO vector segment
SYNOPSIS unsigned int kvec_array_init (struct kvec *new , struct kvec *iov , unsigned int nr_segs , size_t bytes );
ARGUMENTS new IO vector to be initialized
iov base IO vector
nr_segs number of segments in base iov
byte... |
kvfree(9) | NAME kvfree - Free memory.
SYNOPSIS void kvfree (const void *addr );
ARGUMENTS addr Pointer to allocated memory.
DESCRIPTION kvfree frees memory allocated by any of vmalloc, kmalloc or kvmalloc. It is slightly more efficient to use kfree or vfree if you are certain that you know which one to use.
CONTEXT Ei... |
kvfree_rcu_barrier(9) | NAME kvfree_rcu_barrier - Wait until all in-flight kvfree_rcu() complete.
SYNOPSIS void kvfree_rcu_barrier (void );
ARGUMENTS void no arguments
DESCRIPTION Note that a single argument of kvfree_rcu call has a slow path that triggers synchronize_rcu following by freeing a pointer. It is done before the return ... |
kvfree_rcu_barrier_on_cache(9) | NAME kvfree_rcu_barrier_on_cache - Wait for in-flight kvfree_rcu() calls on a specific slab cache.
SYNOPSIS void kvfree_rcu_barrier_on_cache (struct kmem_cache *s );
ARGUMENTS s slab cache to wait for
DESCRIPTION See the description of kvfree_rcu_barrier for details.
SEE ALSO Kernel file ./mm/slab_commo... |
kvfree_sensitive(9) | NAME kvfree_sensitive - Free a data object containing sensitive information.
SYNOPSIS void kvfree_sensitive (const void *addr , size_t len );
ARGUMENTS addr address of the data object to be freed.
len length of the data object.
DESCRIPTION Use the special memzero_explicit function to clear the... |
kvm_adjust_itstate(9) | NAME kvm_adjust_itstate - adjust ITSTATE when emulating instructions in IT-block
SYNOPSIS void kvm_adjust_itstate (struct kvm_vcpu *vcpu );
ARGUMENTS vcpu The VCPU pointer
DESCRIPTION When exceptions occur while instructions are executed in Thumb IF-THEN blocks, the ITSTATE field of the CPSR is not advanced ... |
kvm_age_gfn(9) | NAME kvm_age_gfn - clear young
SYNOPSIS bool kvm_age_gfn (struct kvm *kvm , struct kvm_gfn_range *range );
ARGUMENTS kvm the kvm instance
range the range of guest addresses whose young status needs to be cleared
CONTEXT called by KVM common code without holding the kvm mmu lock
RETURN true if ... |
kvm_arch_destroy_vm(9) | NAME kvm_arch_destroy_vm - destroy the VM data structure
SYNOPSIS void kvm_arch_destroy_vm (struct kvm *kvm );
ARGUMENTS kvm pointer to the KVM struct
SEE ALSO Kernel file ./arch/arm64/kvm/arm.c kvm_arch_init_vm(9), kvm_arch_vcpu_runnable(9), kvm_vcpu_wfi(9), check_vcpu_requests(9), kvm_vcpu_exit_request(9),... |
kvm_arch_flush_remote_tlbs(9) | NAME kvm_arch_flush_remote_tlbs - flush all VM TLB entries for v7/8
SYNOPSIS int kvm_arch_flush_remote_tlbs (struct kvm *kvm );
ARGUMENTS kvm pointer to kvm structure.
DESCRIPTION Interface to HYP function to flush all VM TLB entries
SEE ALSO Kernel file ./arch/arm64/kvm/mmu.c __unmap_stage2_range(9),... |
kvm_arch_init_vm(9) | NAME kvm_arch_init_vm - initializes a VM data structure
SYNOPSIS int kvm_arch_init_vm (struct kvm *kvm , unsigned long type );
ARGUMENTS kvm pointer to the KVM struct
type kvm device type
SEE ALSO Kernel file ./arch/arm64/kvm/arm.c kvm_arch_destroy_vm(9), kvm_arch_vcpu_runnable(9), kvm_vcpu_wf... |
kvm_arch_mmu_enable_log_dirty_pt_masked(9) | NAME kvm_arch_mmu_enable_log_dirty_pt_masked - write protect dirty pages
SYNOPSIS void kvm_arch_mmu_enable_log_dirty_pt_masked (struct kvm *kvm , struct kvm_memory_slot *slot , gfn_t gfn_offset , unsigned long mask );
ARGUMENTS kvm The KVM pointer
slot The memory slot associated with mask
... |
kvm_arch_vcpu_ioctl_run(9) | NAME kvm_arch_vcpu_ioctl_run - the main VCPU run function to execute guest code
SYNOPSIS int kvm_arch_vcpu_ioctl_run (struct kvm_vcpu *vcpu );
ARGUMENTS vcpu The VCPU pointer
DESCRIPTION This function is called through the VCPU_RUN ioctl called from user space. It will execute VM code in a loop until the time... |
kvm_arch_vcpu_ioctl_set_guest_debug(9) | NAME kvm_arch_vcpu_ioctl_set_guest_debug - set up guest debugging
SYNOPSIS int kvm_arch_vcpu_ioctl_set_guest_debug (struct kvm_vcpu *vcpu , struct kvm_guest_debug *dbg );
ARGUMENTS vcpu the vCPU pointer
dbg the ioctl data buffer
DESCRIPTION This sets up and enables the VM for guest debugging. ... |
kvm_arch_vcpu_runnable(9) | NAME kvm_arch_vcpu_runnable - determine if the vcpu can be scheduled
SYNOPSIS int kvm_arch_vcpu_runnable (struct kvm_vcpu *v );
ARGUMENTS v The VCPU pointer
DESCRIPTION If the guest CPU is not waiting for interrupts or an interrupt line is asserted, the CPU is by definition runnable.
SEE ALSO Kernel file ... |
kvm_arm_copy_reg_indices(9) | NAME kvm_arm_copy_reg_indices - get indices of all registers.
SYNOPSIS int kvm_arm_copy_reg_indices (struct kvm_vcpu *vcpu , u64 __user *uindices );
ARGUMENTS vcpu the vCPU pointer
uindices register list to copy
DESCRIPTION We do core registers right here, then we append system regs.
SEE ALSO Kern... |
kvm_arm_num_regs(9) | NAME kvm_arm_num_regs - how many registers do we present via KVM_GET_ONE_REG
SYNOPSIS unsigned long kvm_arm_num_regs (struct kvm_vcpu *vcpu );
ARGUMENTS vcpu the vCPU pointer
DESCRIPTION This is for all registers.
SEE ALSO Kernel file ./arch/arm64/kvm/guest.c kvm_arm_copy_reg_indices(9), kvm_arch_vcpu_ioctl_... |
kvm_arm_pmu_get_max_counters(9) | NAME kvm_arm_pmu_get_max_counters - Return the max number of PMU counters.
SYNOPSIS u8 kvm_arm_pmu_get_max_counters (struct kvm *kvm );
ARGUMENTS kvm The kvm pointer
SEE ALSO Kernel file ./arch/arm64/kvm/pmu-emul.c kvm_pmc_is_64bit(9), kvm_pmu_get_counter_value(9), kvm_pmu_set_counter_value(9), kvm_p... |
kvm_arm_set_default_pmu(9) | NAME kvm_arm_set_default_pmu - No PMU set, get the default one.
SYNOPSIS int kvm_arm_set_default_pmu (struct kvm *kvm );
ARGUMENTS kvm The kvm pointer
DESCRIPTION The observant among you will notice that the supported_cpus mask does not get updated for the default PMU even though it is quite possible the s... |
kvm_arm_setup_mdcr_el2(9) | NAME kvm_arm_setup_mdcr_el2 - configure vcpu mdcr_el2 value
SYNOPSIS void kvm_arm_setup_mdcr_el2 (struct kvm_vcpu *vcpu );
ARGUMENTS vcpu the vcpu pointer
DESCRIPTION This ensures we will trap access to: - Performance monitors (MDCR_EL2_TPM/MDCR_EL2_TPMCR) - Debug ROM Address (MDCR_EL2_TDRA) - OS related reg... |
kvm_clear_dirty_log_protect(9) | NAME kvm_clear_dirty_log_protect - clear dirty bits in the bitmap and reenable dirty page tracking for the corresponding pages.
SYNOPSIS int kvm_clear_dirty_log_protect (struct kvm *kvm , struct kvm_clear_dirty_log *log );
ARGUMENTS kvm pointer to kvm instance
log slot id and address from whic... |
kvm_cma_reserve(9) | NAME kvm_cma_reserve - reserve area for kvm hash pagetable
SYNOPSIS void kvm_cma_reserve (void );
ARGUMENTS void no arguments
DESCRIPTION This function reserves memory from early allocator. It should be called by arch specific code once the memblock allocator has been activated and all other subsystems have a... |
kvm_emulate_cp15_id_reg(9) | NAME kvm_emulate_cp15_id_reg - Handles an MRC trap on a guest CP15 access where CRn=0, which corresponds to the AArch32 feature registers.
SYNOPSIS int kvm_emulate_cp15_id_reg (struct kvm_vcpu *vcpu , struct sys_reg_params *params );
ARGUMENTS vcpu the vCPU pointer
params the system register acces... |
kvm_get_badinstr(9) | NAME kvm_get_badinstr - Get bad instruction encoding.
SYNOPSIS int kvm_get_badinstr (u32 *opc , struct kvm_vcpu *vcpu , u32 *out );
ARGUMENTS opc Guest pointer to faulting instruction.
vcpu KVM VCPU information.
out -- undescribed --
DESCRIPTION Gets the instruction encoding of... |
kvm_get_badinstrp(9) | NAME kvm_get_badinstrp - Get bad prior instruction encoding.
SYNOPSIS int kvm_get_badinstrp (u32 *opc , struct kvm_vcpu *vcpu , u32 *out );
ARGUMENTS opc Guest pointer to prior faulting instruction.
vcpu KVM VCPU information.
out -- undescribed --
DESCRIPTION Gets the instruc... |
kvm_get_dirty_log(9) | NAME kvm_get_dirty_log - get a snapshot of dirty pages
SYNOPSIS int kvm_get_dirty_log (struct kvm *kvm , struct kvm_dirty_log *log , int *is_dirty , struct kvm_memory_slot **memslot );
ARGUMENTS kvm pointer to kvm instance
log slot id and address to which we copy the log
is_dirty se... |
kvm_get_dirty_log_protect(9) | NAME kvm_get_dirty_log_protect - get a snapshot of dirty pages and reenable dirty page tracking for the corresponding pages.
SYNOPSIS int kvm_get_dirty_log_protect (struct kvm *kvm , struct kvm_dirty_log *log );
ARGUMENTS kvm pointer to kvm instance
log slot id and address to which we copy the... |
kvm_get_running_vcpu(9) | NAME kvm_get_running_vcpu - get the vcpu running on the current CPU.
SYNOPSIS struct kvm_vcpu * kvm_get_running_vcpu (void );
ARGUMENTS void no arguments
DESCRIPTION We can disable preemption locally around accessing the per-CPU variable, and use the resolved vcpu pointer after enabling preemption again, be... |
kvm_get_running_vcpus(9) | NAME kvm_get_running_vcpus - get the per-CPU array of currently running vcpus.
SYNOPSIS struct kvm_vcpu * __percpu * kvm_get_running_vcpus (void );
ARGUMENTS void no arguments
SEE ALSO Kernel file ./virt/kvm/kvm_main.c kvm_get_dirty_log(9), kvm_get_dirty_log_protect(9), kvm_vm_ioctl_get_dirty_log(9), kvm_clea... |
kvm_get_vtcr(9) | NAME kvm_get_vtcr - Helper to construct VTCR_EL2
SYNOPSIS u64 kvm_get_vtcr (u64 mmfr0 , u64 mmfr1 , u32 phys_shift );
ARGUMENTS mmfr0 Sanitized value of SYS_ID_AA64MMFR0_EL1 register.
mmfr1 Sanitized value of SYS_ID_AA64MMFR1_EL1 register.
phys_shift -- undescribed --
DESCRIPTION The VT... |
kvm_gpc_activate(9) | NAME kvm_gpc_activate - prepare a cached kernel mapping and HPA for a given guest physical address.
SYNOPSIS int kvm_gpc_activate (struct gfn_to_pfn_cache *gpc , gpa_t gpa , unsigned long len );
ARGUMENTS gpc struct gfn_to_pfn_cache object.
gpa guest physical address to map.
len ... |
kvm_gpc_activate_hva(9) | NAME kvm_gpc_activate_hva - prepare a cached kernel mapping and HPA for a given HVA.
SYNOPSIS int kvm_gpc_activate_hva (struct gfn_to_pfn_cache *gpc , unsigned long hva , unsigned long len );
ARGUMENTS gpc struct gfn_to_pfn_cache object.
hva userspace virtual address to map.
len ... |
kvm_gpc_check(9) | NAME kvm_gpc_check - check validity of a gfn_to_pfn_cache.
SYNOPSIS bool kvm_gpc_check (struct gfn_to_pfn_cache *gpc , unsigned long len );
ARGUMENTS gpc struct gfn_to_pfn_cache object.
len sanity check; the range being access must fit a single page.
RETURN true if the cache is still valid an... |
kvm_gpc_deactivate(9) | NAME kvm_gpc_deactivate - deactivate and unlink a gfn_to_pfn_cache.
SYNOPSIS void kvm_gpc_deactivate (struct gfn_to_pfn_cache *gpc );
ARGUMENTS gpc struct gfn_to_pfn_cache object.
DESCRIPTION This removes a cache from the VM's list to be processed on MMU notifier invocation.
SEE ALSO Kernel file ./include... |
kvm_gpc_init(9) | NAME kvm_gpc_init - initialize gfn_to_pfn_cache.
SYNOPSIS void kvm_gpc_init (struct gfn_to_pfn_cache *gpc , struct kvm *kvm );
ARGUMENTS gpc struct gfn_to_pfn_cache object.
kvm pointer to kvm instance.
DESCRIPTION This sets up a gfn_to_pfn_cache by initializing locks and assigning the immutab... |
kvm_gpc_refresh(9) | NAME kvm_gpc_refresh - update a previously initialized cache.
SYNOPSIS int kvm_gpc_refresh (struct gfn_to_pfn_cache *gpc , unsigned long len );
ARGUMENTS gpc struct gfn_to_pfn_cache object.
len sanity check; the range being access must fit a single page.
RETURN 0 for success. -EINVAL for a m... |
kvm_handle_cp10_id(9) | NAME kvm_handle_cp10_id - Handles a VMRS trap on guest access to a 'Media and VFP Register' from AArch32.
SYNOPSIS int kvm_handle_cp10_id (struct kvm_vcpu *vcpu );
ARGUMENTS vcpu The vCPU pointer
DESCRIPTION MVFR{0-2} are architecturally mapped to the AArch64 MVFR{0-2}_EL1 registers. Work out the correct AAr... |
kvm_handle_cp_32(9) | NAME kvm_handle_cp_32 - - handles a mrc/mcr trap on a guest CP14/CP15 access
SYNOPSIS int kvm_handle_cp_32 (struct kvm_vcpu *vcpu , struct sys_reg_params *params , const struct sys_reg_desc *global , size_t nr_global );
ARGUMENTS vcpu The VCPU pointer
params struct sys_reg_params
global ... |
kvm_handle_cp_64(9) | NAME kvm_handle_cp_64 - - handles a mrrc/mcrr trap on a guest CP14/CP15 access
SYNOPSIS int kvm_handle_cp_64 (struct kvm_vcpu *vcpu , const struct sys_reg_desc *global , size_t nr_global );
ARGUMENTS vcpu The VCPU pointer
global struct sys_reg_desc
nr_global size of the global array
SEE... |
kvm_handle_fpu_disabled(9) | NAME kvm_handle_fpu_disabled - Guest used fpu however it is disabled at host
SYNOPSIS int kvm_handle_fpu_disabled (struct kvm_vcpu *vcpu , int ecode );
ARGUMENTS vcpu Virtual CPU context.
ecode Exception code.
DESCRIPTION Handle when the guest attempts to use fpu which hasn't been allowed by the... |
kvm_handle_guest_abort(9) | NAME kvm_handle_guest_abort - handles all 2nd stage aborts
SYNOPSIS int kvm_handle_guest_abort (struct kvm_vcpu *vcpu );
ARGUMENTS vcpu the VCPU pointer
DESCRIPTION Any abort that gets to the host is almost guaranteed to be caused by a missing second stage translation table entry, which can mean that either... |
kvm_handle_guest_debug(9) | NAME kvm_handle_guest_debug - handle a debug exception instruction
SYNOPSIS int kvm_handle_guest_debug (struct kvm_vcpu *vcpu );
ARGUMENTS vcpu the vcpu pointer
DESCRIPTION We route all debug exceptions through the same handler. If both the guest and host are using the same debug facilities it will be up to u... |
kvm_handle_mmio_return(9) | NAME kvm_handle_mmio_return - - Handle MMIO loads after user space emulation or in-kernel IO emulation
SYNOPSIS int kvm_handle_mmio_return (struct kvm_vcpu *vcpu );
ARGUMENTS vcpu The VCPU pointer
SEE ALSO Kernel file ./arch/arm64/kvm/mmio.c
April 2026 ... |
kvm_handle_sys_reg(9) | NAME kvm_handle_sys_reg - - handles a system instruction or mrs/msr instruction trap on a guest execution
SYNOPSIS int kvm_handle_sys_reg (struct kvm_vcpu *vcpu );
ARGUMENTS vcpu The VCPU pointer
SEE ALSO Kernel file ./arch/arm64/kvm/sys_regs.c kvm_handle_cp_64(9), kvm_handle_cp10_id(9), kvm_emulate_cp15_id_r... |
kvm_handle_wfx(9) | NAME kvm_handle_wfx - handle a wait-for-interrupts or wait-for-event instruction executed by a guest
SYNOPSIS int kvm_handle_wfx (struct kvm_vcpu *vcpu );
ARGUMENTS vcpu the vcpu pointer
DESCRIPTION WFE[T]: Yield the CPU and come back to this vcpu when the scheduler decides to. WFI: Simply call kvm_vcpu_halt... |
kvm_init_stage2_mmu(9) | NAME kvm_init_stage2_mmu - Initialise a S2 MMU structure
SYNOPSIS int kvm_init_stage2_mmu (struct kvm *kvm , struct kvm_s2_mmu *mmu , unsigned long type );
ARGUMENTS kvm The pointer to the KVM structure
mmu The pointer to the s2 MMU structure
type The machine type of the virtual... |
kvm_inject_dabt_excl_atomic(9) | NAME kvm_inject_dabt_excl_atomic - inject a data abort for unsupported exclusive or atomic access
SYNOPSIS int kvm_inject_dabt_excl_atomic (struct kvm_vcpu *vcpu , u64 addr );
ARGUMENTS vcpu The VCPU to receive the data abort
addr The address to report in the DFAR
DESCRIPTION It is assumed that... |
kvm_inject_undefined(9) | NAME kvm_inject_undefined - inject an undefined instruction into the guest
SYNOPSIS void kvm_inject_undefined (struct kvm_vcpu *vcpu );
ARGUMENTS vcpu The vCPU in which to inject the exception
DESCRIPTION It is assumed that this code is called from the VCPU thread and that the VCPU therefore is not currently ... |
kvm_is_ifetch_fault(9) | NAME kvm_is_ifetch_fault - Find whether a TLBL exception is due to ifetch fault.
SYNOPSIS bool kvm_is_ifetch_fault (struct kvm_vcpu_arch *vcpu );
ARGUMENTS vcpu Virtual CPU.
RETURN Whether the TLBL exception was likely due to an instruction fetch fault rather than a data load fault.
SEE ALSO Kernel file ./ar... |
kvm_mips_build_enter_guest(9) | NAME kvm_mips_build_enter_guest - Assemble code to resume guest execution.
SYNOPSIS void * kvm_mips_build_enter_guest (void *addr );
ARGUMENTS addr Address to start writing code.
DESCRIPTION Assemble the code to resume guest execution. This code is common between the initial entry into the guest from the host... |
kvm_mips_build_exception(9) | NAME kvm_mips_build_exception - Assemble first level guest exception handler.
SYNOPSIS void * kvm_mips_build_exception (void *addr , void *handler );
ARGUMENTS addr Address to start writing code.
handler Address of common handler (within range of addr).
DESCRIPTION Assemble exception vector code f... |
kvm_mips_build_exit(9) | NAME kvm_mips_build_exit - Assemble common guest exit handler.
SYNOPSIS void * kvm_mips_build_exit (void *addr );
ARGUMENTS addr Address to start writing code.
DESCRIPTION Assemble the generic guest exit handling code. This is called by the exception vectors (generated by kvm_mips_build_exception), and calls... |
kvm_mips_build_ret_from_exit(9) | NAME kvm_mips_build_ret_from_exit - Assemble guest exit return handler.
SYNOPSIS void * kvm_mips_build_ret_from_exit (void *addr );
ARGUMENTS addr Address to start writing code.
DESCRIPTION Assemble the code to handle the return from kvm_mips_handle_exit, either resuming the guest or returning to the host dep... |
kvm_mips_build_ret_to_guest(9) | NAME kvm_mips_build_ret_to_guest - Assemble code to return to the guest.
SYNOPSIS void * kvm_mips_build_ret_to_guest (void *addr );
ARGUMENTS addr Address to start writing code.
DESCRIPTION Assemble the code to handle return from the guest exit handler (kvm_mips_handle_exit) back to the guest.
RETURN Next ad... |
kvm_mips_build_ret_to_host(9) | NAME kvm_mips_build_ret_to_host - Assemble code to return to the host.
SYNOPSIS void * kvm_mips_build_ret_to_host (void *addr );
ARGUMENTS addr Address to start writing code.
DESCRIPTION Assemble the code to handle return from the guest exit handler (kvm_mips_handle_exit) back to the host, i.e. to the caller ... |
kvm_mips_build_tlb_refill_exception(9) | NAME kvm_mips_build_tlb_refill_exception - Assemble TLB refill handler.
SYNOPSIS void * kvm_mips_build_tlb_refill_exception (void *addr , void *handler );
ARGUMENTS addr Address to start writing code.
handler Address of common handler (within range of addr).
DESCRIPTION Assemble TLB refill excepti... |
kvm_mips_build_vcpu_run(9) | NAME kvm_mips_build_vcpu_run - Assemble function to start running a guest VCPU.
SYNOPSIS void * kvm_mips_build_vcpu_run (void *addr );
ARGUMENTS addr Address to start writing code.
DESCRIPTION Assemble the start of the vcpu_run function to run a guest VCPU. The function conforms to the following prototype: in... |
kvm_mips_count_disable(9) | NAME kvm_mips_count_disable - Disable count.
SYNOPSIS ktime_t kvm_mips_count_disable (struct kvm_vcpu *vcpu );
ARGUMENTS vcpu Virtual CPU.
DESCRIPTION Disable the CP0_Count timer. A timer interrupt on or before the final stop time will be handled but not after. Assumes CP0_Count was previously enabled but n... |
kvm_mips_count_disable_cause(9) | NAME kvm_mips_count_disable_cause - Disable count using CP0_Cause.DC.
SYNOPSIS void kvm_mips_count_disable_cause (struct kvm_vcpu *vcpu );
ARGUMENTS vcpu Virtual CPU.
DESCRIPTION Disable the CP0_Count timer and set CP0_Cause.DC. A timer interrupt on or before the final stop time will be handled if the time... |
kvm_mips_count_disabled(9) | NAME kvm_mips_count_disabled - Find whether the CP0_Count timer is disabled.
SYNOPSIS int kvm_mips_count_disabled (struct kvm_vcpu *vcpu );
ARGUMENTS vcpu Virtual CPU.
RETURN 1 if the CP0_Count timer is disabled by either the guest CP0_Cause.DC bit or the count_ctl.DC bit. 0 otherwise (in which case CP0_Coun... |
kvm_mips_count_enable_cause(9) | NAME kvm_mips_count_enable_cause - Enable count using CP0_Cause.DC.
SYNOPSIS void kvm_mips_count_enable_cause (struct kvm_vcpu *vcpu );
ARGUMENTS vcpu Virtual CPU.
DESCRIPTION Enable the CP0_Count timer and clear CP0_Cause.DC. A timer interrupt after the start time will be handled if the timer isn't disab... |
kvm_mips_count_time(9) | NAME kvm_mips_count_time - Get effective current time.
SYNOPSIS ktime_t kvm_mips_count_time (struct kvm_vcpu *vcpu );
ARGUMENTS vcpu Virtual CPU.
DESCRIPTION Get effective monotonic ktime. This is usually a straightforward ktime_get, except when the master disable bit is set in count_ctl, in which case it is ... |
kvm_mips_count_timeout(9) | NAME kvm_mips_count_timeout - Push timer forward on timeout.
SYNOPSIS enum hrtimer_restart kvm_mips_count_timeout (struct kvm_vcpu *vcpu );
ARGUMENTS vcpu Virtual CPU.
DESCRIPTION Handle an hrtimer event by push the hrtimer forward a period.
RETURN The hrtimer_restart value to return to the hrtimer subsystem... |
kvm_mips_entry_setup(9) | NAME kvm_mips_entry_setup - Perform global setup for entry code.
SYNOPSIS int kvm_mips_entry_setup (void );
ARGUMENTS void no arguments
DESCRIPTION Perform global setup for entry code, such as choosing a scratch register.
RETURN 0 on success. -errno on failure.
SEE ALSO Kernel file ./arch/mips/kvm/entr... |
kvm_mips_flush_gpa_pt(9) | NAME kvm_mips_flush_gpa_pt - Flush a range of guest physical addresses.
SYNOPSIS bool kvm_mips_flush_gpa_pt (struct kvm *kvm , gfn_t start_gfn , gfn_t end_gfn );
ARGUMENTS kvm KVM pointer.
start_gfn Guest frame number of first page in GPA range to flush.
end_gfn Guest frame number of las... |
kvm_mips_freeze_hrtimer(9) | NAME kvm_mips_freeze_hrtimer - Safely stop the hrtimer.
SYNOPSIS ktime_t kvm_mips_freeze_hrtimer (struct kvm_vcpu *vcpu , u32 *count );
ARGUMENTS vcpu Virtual CPU.
count Output pointer for CP0_Count value at point of freeze.
DESCRIPTION Freeze the hrtimer safely and return both the ktime and the... |
kvm_mips_init_count(9) | NAME kvm_mips_init_count - Initialise timer.
SYNOPSIS void kvm_mips_init_count (struct kvm_vcpu *vcpu , unsigned long count_hz );
ARGUMENTS vcpu Virtual CPU.
count_hz Frequency of timer.
DESCRIPTION Initialise the timer to the specified frequency, zero it, and set it going if it's enabled.
SEE ALS... |
kvm_mips_ktime_to_count(9) | NAME kvm_mips_ktime_to_count - Scale ktime_t to a 32-bit count.
SYNOPSIS u32 kvm_mips_ktime_to_count (struct kvm_vcpu *vcpu , ktime_t now );
ARGUMENTS vcpu -- undescribed --
now -- undescribed --
DESCRIPTION Caches the dynamic nanosecond bias in vcpu->arch.count_dyn_bias. Assumes !kvm_mips_co... |
kvm_mips_map_page(9) | NAME kvm_mips_map_page - Map a guest physical page.
SYNOPSIS int kvm_mips_map_page (struct kvm_vcpu *vcpu , unsigned long gpa , bool write_fault , pte_t *out_entry , pte_t *out_buddy );
ARGUMENTS vcpu VCPU pointer.
gpa Guest physical address of fault.
write_fault Whether the fault was d... |
kvm_mips_migrate_count(9) | NAME kvm_mips_migrate_count - Migrate timer.
SYNOPSIS void kvm_mips_migrate_count (struct kvm_vcpu *vcpu );
ARGUMENTS vcpu Virtual CPU.
DESCRIPTION Migrate CP0_Count hrtimer to the current CPU by cancelling and restarting it if it was running prior to being cancelled. Must be called when the VCPU is mig... |
kvm_mips_mkclean_gpa_pt(9) | NAME kvm_mips_mkclean_gpa_pt - Make a range of guest physical addresses clean.
SYNOPSIS int kvm_mips_mkclean_gpa_pt (struct kvm *kvm , gfn_t start_gfn , gfn_t end_gfn );
ARGUMENTS kvm KVM pointer.
start_gfn Guest frame number of first page in GPA range to flush.
end_gfn Guest frame numbe... |
kvm_mips_read_count(9) | NAME kvm_mips_read_count - Read the current count value.
SYNOPSIS u32 kvm_mips_read_count (struct kvm_vcpu *vcpu );
ARGUMENTS vcpu Virtual CPU.
DESCRIPTION Read the current guest CP0_Count value, taking into account whether the timer is stopped.
RETURN The current guest CP0_Count value.
SEE ALSO Kernel fil... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.