id
stringlengths
4
63
text
stringlengths
153
8.81M
kvm_mips_read_count_running(9)
NAME kvm_mips_read_count_running - Read the current count value as if running. SYNOPSIS u32 kvm_mips_read_count_running (struct kvm_vcpu *vcpu , ktime_t now ); ARGUMENTS vcpu Virtual CPU. now Kernel time to read CP0_Count at. DESCRIPTION Returns the current guest CP0_Count register at time now...
kvm_mips_restore_hrtimer(9)
NAME kvm_mips_restore_hrtimer - Restore hrtimer after a gap, updating expiry. SYNOPSIS int kvm_mips_restore_hrtimer (struct kvm_vcpu *vcpu , ktime_t before , u32 count , int min_drift ); ARGUMENTS vcpu Virtual CPU. before Time before Count was saved, lower bound of drift calculation. count...
kvm_mips_resume_hrtimer(9)
NAME kvm_mips_resume_hrtimer - Resume hrtimer, updating expiry. SYNOPSIS void kvm_mips_resume_hrtimer (struct kvm_vcpu *vcpu , ktime_t now , u32 count ); ARGUMENTS vcpu Virtual CPU. now ktime at point of resume. count CP0_Count at point of resume. DESCRIPTION Resumes the timer an...
kvm_mips_set_count_ctl(9)
NAME kvm_mips_set_count_ctl - Update the count control KVM register. SYNOPSIS int kvm_mips_set_count_ctl (struct kvm_vcpu *vcpu , s64 count_ctl ); ARGUMENTS vcpu Virtual CPU. count_ctl Count control register new value. DESCRIPTION Set the count control KVM register. The timer is updated accordingly....
kvm_mips_set_count_hz(9)
NAME kvm_mips_set_count_hz - Update the frequency of the timer. SYNOPSIS int kvm_mips_set_count_hz (struct kvm_vcpu *vcpu , s64 count_hz ); ARGUMENTS vcpu Virtual CPU. count_hz Frequency of CP0_Count timer in Hz. DESCRIPTION Change the frequency of the CP0_Count timer. This is done atomically so th...
kvm_mips_set_count_resume(9)
NAME kvm_mips_set_count_resume - Update the count resume KVM register. SYNOPSIS int kvm_mips_set_count_resume (struct kvm_vcpu *vcpu , s64 count_resume ); ARGUMENTS vcpu Virtual CPU. count_resume Count resume register new value. DESCRIPTION Set the count resume KVM register. RETURN...
kvm_mips_walk_pgd(9)
NAME kvm_mips_walk_pgd - Walk page table with optional allocation. SYNOPSIS pte_t * kvm_mips_walk_pgd (pgd_t *pgd , struct kvm_mmu_memory_cache *cache , unsigned long addr ); ARGUMENTS pgd Page directory pointer. cache MMU page cache to allocate new page tables from, or NULL. addr ...
kvm_mips_write_compare(9)
NAME kvm_mips_write_compare - Modify compare and update timer. SYNOPSIS void kvm_mips_write_compare (struct kvm_vcpu *vcpu , u32 compare , bool ack ); ARGUMENTS vcpu Virtual CPU. compare New CP0_Compare value. ack Whether to acknowledge timer interrupt. DESCRIPTION Update CP0_Compa...
kvm_mips_write_count(9)
NAME kvm_mips_write_count - Modify the count and update timer. SYNOPSIS void kvm_mips_write_count (struct kvm_vcpu *vcpu , u32 count ); ARGUMENTS vcpu Virtual CPU. count Guest CP0_Count value to set. DESCRIPTION Sets the CP0_Count value and updates the timer accordingly. SEE ALSO Kernel file ...
kvm_mmu_split_memory_region(9)
NAME kvm_mmu_split_memory_region - split the stage 2 blocks into PAGE_SIZE pages for memory slot SYNOPSIS void kvm_mmu_split_memory_region (struct kvm *kvm , int slot ); ARGUMENTS kvm The KVM pointer slot The memory slot to split DESCRIPTION Acquires kvm->mmu_lock. Called with kvm->slots_lock ...
kvm_mmu_wp_memory_region(9)
NAME kvm_mmu_wp_memory_region - write protect stage 2 entries for memory slot SYNOPSIS void kvm_mmu_wp_memory_region (struct kvm *kvm , int slot ); ARGUMENTS kvm The KVM pointer slot The memory slot to write protect DESCRIPTION Called to start logging dirty pages after memory region KVM_MEM_L...
kvm_nvhe_unwind_init(9)
NAME kvm_nvhe_unwind_init - Start an unwind from the given nVHE HYP fp and pc SYNOPSIS void kvm_nvhe_unwind_init (struct unwind_state *state , unsigned long fp , unsigned long pc ); ARGUMENTS state unwind_state to initialize fp frame pointer at which to start the unwinding. pc ...
kvm_pgd_alloc(9)
NAME kvm_pgd_alloc - Allocate and initialise a KVM GPA page directory. SYNOPSIS pgd_t * kvm_pgd_alloc (void ); ARGUMENTS void no arguments DESCRIPTION Allocate a blank KVM GPA page directory (PGD) for representing guest physical to host physical page mappings. RETURN Pointer to new KVM GPA page directory. N...
kvm_pgd_init(9)
NAME kvm_pgd_init - Initialise KVM GPA page directory. SYNOPSIS void kvm_pgd_init (void *page ); ARGUMENTS page Pointer to page directory (PGD) for KVM GPA. DESCRIPTION Initialise a KVM GPA page directory with pointers to the invalid table, i.e. representing no mappings. This is similar to pgd_init, however...
kvm_pgtable_get_leaf(9)
NAME kvm_pgtable_get_leaf - Walk a page-table and retrieve the leaf entry with its level. SYNOPSIS int kvm_pgtable_get_leaf (struct kvm_pgtable *pgt , u64 addr , kvm_pte_t *ptep , s8 *level ); ARGUMENTS pgt Page-table structure initialised by kvm_pgtable_*_init or a similar initialiser. addr In...
kvm_pgtable_hyp_destroy(9)
NAME kvm_pgtable_hyp_destroy - Destroy an unused hypervisor stage-1 page-table. SYNOPSIS void kvm_pgtable_hyp_destroy (struct kvm_pgtable *pgt ); ARGUMENTS pgt Page-table structure initialised by kvm_pgtable_hyp_init. DESCRIPTION The page-table is assumed to be unreachable by any hardware walkers prior to fr...
kvm_pgtable_hyp_init(9)
NAME kvm_pgtable_hyp_init - Initialise a hypervisor stage-1 page-table. SYNOPSIS int kvm_pgtable_hyp_init (struct kvm_pgtable *pgt , u32 va_bits , struct kvm_pgtable_mm_ops *mm_ops ); ARGUMENTS pgt Uninitialised page-table structure to initialise. va_bits Maximum virtual address bits. mm_o...
kvm_pgtable_hyp_map(9)
NAME kvm_pgtable_hyp_map - Install a mapping in a hypervisor stage-1 page-table. SYNOPSIS int kvm_pgtable_hyp_map (struct kvm_pgtable *pgt , u64 addr , u64 size , u64 phys , enum kvm_pgtable_prot prot ); ARGUMENTS pgt Page-table structure initialised by kvm_pgtable_hyp_init. addr Virtual addres...
kvm_pgtable_hyp_pte_prot(9)
NAME kvm_pgtable_hyp_pte_prot - Retrieve the protection attributes of a stage-1 Page-Table Entry. SYNOPSIS enum kvm_pgtable_prot kvm_pgtable_hyp_pte_prot (kvm_pte_t pte ); ARGUMENTS pte Page-table entry RETURN protection attributes of the page-table entry in the enum kvm_pgtable_prot format. SEE ALSO Kernel...
kvm_pgtable_hyp_unmap(9)
NAME kvm_pgtable_hyp_unmap - Remove a mapping from a hypervisor stage-1 page-table. SYNOPSIS u64 kvm_pgtable_hyp_unmap (struct kvm_pgtable *pgt , u64 addr , u64 size ); ARGUMENTS pgt Page-table structure initialised by kvm_pgtable_hyp_init. addr Virtual address from which to remove the mapping....
kvm_pgtable_stage2_create_unlinked(9)
NAME kvm_pgtable_stage2_create_unlinked - Create an unlinked stage-2 paging structure. SYNOPSIS kvm_pte_t * kvm_pgtable_stage2_create_unlinked (struct kvm_pgtable *pgt , u64 phys , s8 level , enum kvm_pgtable_prot prot , void *mc , bool force_pte ); ARGUMENTS pgt Page-table structure initialised by kvm_pgtabl...
kvm_pgtable_stage2_destroy(9)
NAME kvm_pgtable_stage2_destroy - Destroy an unused guest stage-2 page-table. SYNOPSIS void kvm_pgtable_stage2_destroy (struct kvm_pgtable *pgt ); ARGUMENTS pgt Page-table structure initialised by kvm_pgtable_stage2_init*(). DESCRIPTION The page-table is assumed to be unreachable by any hardware walkers prio...
kvm_pgtable_stage2_destroy_pgd(9)
NAME kvm_pgtable_stage2_destroy_pgd - Destroy the PGD of guest stage-2 page-table. SYNOPSIS void kvm_pgtable_stage2_destroy_pgd (struct kvm_pgtable *pgt ); ARGUMENTS pgt Page-table structure initialised by kvm_pgtable_stage2_init*(). DESCRIPTION It is assumed that the rest of the page-table is freed before t...
kvm_pgtable_stage2_destroy_range(9)
NAME kvm_pgtable_stage2_destroy_range - Destroy the unlinked range of addresses. SYNOPSIS void kvm_pgtable_stage2_destroy_range (struct kvm_pgtable *pgt , u64 addr , u64 size ); ARGUMENTS pgt Page-table structure initialised by kvm_pgtable_stage2_init*(). addr Intermediate physical address at w...
kvm_pgtable_stage2_free_unlinked(9)
NAME kvm_pgtable_stage2_free_unlinked - Free an unlinked stage-2 paging structure. SYNOPSIS void kvm_pgtable_stage2_free_unlinked (struct kvm_pgtable_mm_ops *mm_ops , void *pgtable , s8 level ); ARGUMENTS mm_ops Memory management callbacks. pgtable Unlinked stage-2 paging structure to be freed. ...
kvm_pgtable_stage2_map(9)
NAME kvm_pgtable_stage2_map - Install a mapping in a guest stage-2 page-table. SYNOPSIS int kvm_pgtable_stage2_map (struct kvm_pgtable *pgt , u64 addr , u64 size , u64 phys , enum kvm_pgtable_prot prot , void *mc , enum kvm_pgtable_walk_flags flags ); ARGUMENTS pgt Page-table structure initialised by kvm_pgta...
kvm_pgtable_stage2_mkyoung(9)
NAME kvm_pgtable_stage2_mkyoung - Set the access flag in a page-table entry. SYNOPSIS void kvm_pgtable_stage2_mkyoung (struct kvm_pgtable *pgt , u64 addr , enum kvm_pgtable_walk_flags flags ); ARGUMENTS pgt Page-table structure initialised by kvm_pgtable_stage2_init*(). addr Intermediate physic...
kvm_pgtable_stage2_pgd_size(9)
NAME kvm_pgtable_stage2_pgd_size - Helper to compute size of a stage-2 PGD SYNOPSIS size_t kvm_pgtable_stage2_pgd_size (u64 vtcr ); ARGUMENTS vtcr Content of the VTCR register. RETURN the size (in bytes) of the stage-2 PGD SEE ALSO Kernel file ./arch/arm64/include/asm/kvm_pgtable.h struct kvm_pgtable_mm_...
kvm_pgtable_stage2_pte_prot(9)
NAME kvm_pgtable_stage2_pte_prot - Retrieve the protection attributes of a stage-2 Page-Table Entry. SYNOPSIS enum kvm_pgtable_prot kvm_pgtable_stage2_pte_prot (kvm_pte_t pte ); ARGUMENTS pte Page-table entry RETURN protection attributes of the page-table entry in the enum kvm_pgtable_prot format. SEE ALSO ...
kvm_pgtable_stage2_relax_perms(9)
NAME kvm_pgtable_stage2_relax_perms - Relax the permissions enforced by a page-table entry. SYNOPSIS int kvm_pgtable_stage2_relax_perms (struct kvm_pgtable *pgt , u64 addr , enum kvm_pgtable_prot prot , enum kvm_pgtable_walk_flags flags ); ARGUMENTS pgt Page-table structure initialised by kvm_pgtable_stage2_i...
kvm_pgtable_stage2_set_owner(9)
NAME kvm_pgtable_stage2_set_owner - Unmap and annotate pages in the IPA space to track ownership. SYNOPSIS int kvm_pgtable_stage2_set_owner (struct kvm_pgtable *pgt , u64 addr , u64 size , void *mc , u8 owner_id ); ARGUMENTS pgt Page-table structure initialised by kvm_pgtable_stage2_init*(). addr ...
kvm_pgtable_stage2_split(9)
NAME kvm_pgtable_stage2_split - Split a range of huge pages into leaf PTEs pointing to PAGE_SIZE guest pages. SYNOPSIS int kvm_pgtable_stage2_split (struct kvm_pgtable *pgt , u64 addr , u64 size , struct kvm_mmu_memory_cache *mc ); ARGUMENTS pgt Page-table structure initialised by kvm_pgtable_stage2_init. ...
kvm_pgtable_stage2_test_clear_young(9)
NAME kvm_pgtable_stage2_test_clear_young - Test and optionally clear the access flag in a page-table entry. SYNOPSIS bool kvm_pgtable_stage2_test_clear_young (struct kvm_pgtable *pgt , u64 addr , u64 size , bool mkold ); ARGUMENTS pgt Page-table structure initialised by kvm_pgtable_stage2_init*(). add...
kvm_pgtable_stage2_unmap(9)
NAME kvm_pgtable_stage2_unmap - Remove a mapping from a guest stage-2 page-table. SYNOPSIS int kvm_pgtable_stage2_unmap (struct kvm_pgtable *pgt , u64 addr , u64 size ); ARGUMENTS pgt Page-table structure initialised by kvm_pgtable_stage2_init*(). addr Intermediate physical address from which t...
kvm_pgtable_stage2_wrprotect(9)
NAME kvm_pgtable_stage2_wrprotect - Write-protect guest stage-2 address range without TLB invalidation. SYNOPSIS int kvm_pgtable_stage2_wrprotect (struct kvm_pgtable *pgt , u64 addr , u64 size ); ARGUMENTS pgt Page-table structure initialised by kvm_pgtable_stage2_init*(). addr Intermediate phy...
kvm_pgtable_walk(9)
NAME kvm_pgtable_walk - Walk a page-table. SYNOPSIS int kvm_pgtable_walk (struct kvm_pgtable *pgt , u64 addr , u64 size , struct kvm_pgtable_walker *walker ); ARGUMENTS pgt Page-table structure initialised by kvm_pgtable_*_init. addr Input address for the start of the walk. size ...
kvm_phys_addr_ioremap(9)
NAME kvm_phys_addr_ioremap - map a device range to guest IPA SYNOPSIS int kvm_phys_addr_ioremap (struct kvm *kvm , phys_addr_t guest_ipa , phys_addr_t pa , unsigned long size , bool writable ); ARGUMENTS kvm The KVM pointer guest_ipa The IPA at which to insert the mapping pa The phy...
kvm_pmc_is_64bit(9)
NAME kvm_pmc_is_64bit - determine if counter is 64bit SYNOPSIS bool kvm_pmc_is_64bit (struct kvm_pmc *pmc ); ARGUMENTS pmc counter context SEE ALSO Kernel file ./arch/arm64/kvm/pmu-emul.c kvm_pmu_get_counter_value(9), kvm_pmu_set_counter_value(9), kvm_pmu_set_counter_value_user(9), kvm_pmu_release_per...
kvm_pmu_create_perf_event(9)
NAME kvm_pmu_create_perf_event - create a perf event for a counter SYNOPSIS void kvm_pmu_create_perf_event (struct kvm_pmc *pmc ); ARGUMENTS pmc Counter context 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_pmu_se...
kvm_pmu_flush_hwstate(9)
NAME kvm_pmu_flush_hwstate - flush pmu state to cpu SYNOPSIS void kvm_pmu_flush_hwstate (struct kvm_vcpu *vcpu ); ARGUMENTS vcpu The vcpu pointer DESCRIPTION Check if the PMU has overflowed while we were running in the host, and inject an interrupt if that was the case. SEE ALSO Kernel file ./arch/arm64/kv...
kvm_pmu_get_counter_value(9)
NAME kvm_pmu_get_counter_value - get PMU counter value SYNOPSIS u64 kvm_pmu_get_counter_value (struct kvm_vcpu *vcpu , u64 select_idx ); ARGUMENTS vcpu The vcpu pointer select_idx The counter index SEE ALSO Kernel file ./arch/arm64/kvm/pmu-emul.c kvm_pmc_is_64bit(9), kvm_pmu_set_counter_value(9), kv...
kvm_pmu_handle_pmcr(9)
NAME kvm_pmu_handle_pmcr - handle PMCR register SYNOPSIS void kvm_pmu_handle_pmcr (struct kvm_vcpu *vcpu , u64 val ); ARGUMENTS vcpu The vcpu pointer val the value guest writes to PMCR register SEE ALSO Kernel file ./arch/arm64/kvm/pmu-emul.c kvm_pmc_is_64bit(9), kvm_pmu_get_counter_valu...
kvm_pmu_release_perf_event(9)
NAME kvm_pmu_release_perf_event - remove the perf event SYNOPSIS void kvm_pmu_release_perf_event (struct kvm_pmc *pmc ); ARGUMENTS pmc The PMU counter 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_pmu_set_counte...
kvm_pmu_set_counter_event_type(9)
NAME kvm_pmu_set_counter_event_type - set selected counter to monitor some event SYNOPSIS void kvm_pmu_set_counter_event_type (struct kvm_vcpu *vcpu , u64 data , u64 select_idx ); ARGUMENTS vcpu The vcpu pointer data The data guest writes to PMXEVTYPER_EL0 select_idx The number of selec...
kvm_pmu_set_counter_value(9)
NAME kvm_pmu_set_counter_value - set PMU counter value SYNOPSIS void kvm_pmu_set_counter_value (struct kvm_vcpu *vcpu , u64 select_idx , u64 val ); ARGUMENTS vcpu The vcpu pointer select_idx The counter index val The counter value SEE ALSO Kernel file ./arch/arm64/kvm/pmu-emul.c kvm_...
kvm_pmu_set_counter_value_user(9)
NAME kvm_pmu_set_counter_value_user - set PMU counter value from user SYNOPSIS void kvm_pmu_set_counter_value_user (struct kvm_vcpu *vcpu , u64 select_idx , u64 val ); ARGUMENTS vcpu The vcpu pointer select_idx The counter index val The counter value SEE ALSO Kernel file ./arch/arm6...
kvm_pmu_software_increment(9)
NAME kvm_pmu_software_increment - do software increment SYNOPSIS void kvm_pmu_software_increment (struct kvm_vcpu *vcpu , u64 val ); ARGUMENTS vcpu The vcpu pointer val the value guest writes to PMSWINC register SEE ALSO Kernel file ./arch/arm64/kvm/pmu-emul.c kvm_pmc_is_64bit(9), kvm_pm...
kvm_pmu_stop_counter(9)
NAME kvm_pmu_stop_counter - stop PMU counter SYNOPSIS void kvm_pmu_stop_counter (struct kvm_pmc *pmc ); ARGUMENTS pmc The PMU counter pointer DESCRIPTION If this counter has been configured to monitor some event, release it here. SEE ALSO Kernel file ./arch/arm64/kvm/pmu-emul.c kvm_pmc_is_64bit(9), ...
kvm_pmu_sync_hwstate(9)
NAME kvm_pmu_sync_hwstate - sync pmu state from cpu SYNOPSIS void kvm_pmu_sync_hwstate (struct kvm_vcpu *vcpu ); ARGUMENTS vcpu The vcpu pointer DESCRIPTION Check if the PMU has overflowed while we were running in the guest, and inject an interrupt if that was the case. SEE ALSO Kernel file ./arch/arm64/...
kvm_pmu_vcpu_destroy(9)
NAME kvm_pmu_vcpu_destroy - free perf event of PMU for cpu SYNOPSIS void kvm_pmu_vcpu_destroy (struct kvm_vcpu *vcpu ); ARGUMENTS vcpu The vcpu 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_pmu_set_counter_...
kvm_pmu_vcpu_init(9)
NAME kvm_pmu_vcpu_init - assign pmu counter idx for cpu SYNOPSIS void kvm_pmu_vcpu_init (struct kvm_vcpu *vcpu ); ARGUMENTS vcpu The vcpu 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_pmu_set_counter_value_...
kvm_psci_call(9)
NAME kvm_psci_call - handle PSCI call if r0 value is in range SYNOPSIS int kvm_psci_call (struct kvm_vcpu *vcpu ); ARGUMENTS vcpu Pointer to the VCPU struct DESCRIPTION Handle PSCI calls from guests through traps from HVC instructions. The calling convention is similar to SMC calls to the secure world whe...
kvm_reset_sys_regs(9)
NAME kvm_reset_sys_regs - sets system registers to reset value SYNOPSIS void kvm_reset_sys_regs (struct kvm_vcpu *vcpu ); ARGUMENTS vcpu The VCPU pointer DESCRIPTION This function finds the right table above and sets the registers on the virtual CPU struct to their architecturally defined reset values. SEE A...
kvm_reset_vcpu(9)
NAME kvm_reset_vcpu - sets core registers and sys_regs to reset value SYNOPSIS void kvm_reset_vcpu (struct kvm_vcpu *vcpu ); ARGUMENTS vcpu The VCPU pointer DESCRIPTION This function sets the registers on the virtual CPU struct to their architecturally defined reset values, except for registers whose reset is...
kvm_riscv_check_vcpu_requests(9)
NAME kvm_riscv_check_vcpu_requests - check and handle pending vCPU requests SYNOPSIS int kvm_riscv_check_vcpu_requests (struct kvm_vcpu *vcpu ); ARGUMENTS vcpu the VCPU pointer RETURN 1 if we should enter the guest 0 if we should exit to userspace SEE ALSO Kernel file ./arch/riscv/kvm/vcpu.c April 2026 ...
kvm_riscv_vcpu_csr_return(9)
NAME kvm_riscv_vcpu_csr_return - - Handle CSR read/write after user space emulation or in-kernel emulation SYNOPSIS int kvm_riscv_vcpu_csr_return (struct kvm_vcpu *vcpu , struct kvm_run *run ); ARGUMENTS vcpu The VCPU pointer run The VCPU run struct containing the CSR data DESCRIPTION Returns ...
kvm_riscv_vcpu_mmio_load(9)
NAME kvm_riscv_vcpu_mmio_load - - Emulate MMIO load instruction SYNOPSIS int kvm_riscv_vcpu_mmio_load (struct kvm_vcpu *vcpu , struct kvm_run *run , unsigned long fault_addr , unsigned long htinst ); ARGUMENTS vcpu The VCPU pointer run The VCPU run struct containing the mmio data fault_...
kvm_riscv_vcpu_mmio_return(9)
NAME kvm_riscv_vcpu_mmio_return - - Handle MMIO loads after user space emulation or in-kernel IO emulation SYNOPSIS int kvm_riscv_vcpu_mmio_return (struct kvm_vcpu *vcpu , struct kvm_run *run ); ARGUMENTS vcpu The VCPU pointer run The VCPU run struct containing the mmio data SEE ALSO Kernel fi...
kvm_riscv_vcpu_mmio_store(9)
NAME kvm_riscv_vcpu_mmio_store - - Emulate MMIO store instruction SYNOPSIS int kvm_riscv_vcpu_mmio_store (struct kvm_vcpu *vcpu , struct kvm_run *run , unsigned long fault_addr , unsigned long htinst ); ARGUMENTS vcpu The VCPU pointer run The VCPU run struct containing the mmio data fau...
kvm_riscv_vcpu_trap_redirect(9)
NAME kvm_riscv_vcpu_trap_redirect - - Redirect trap to Guest SYNOPSIS void kvm_riscv_vcpu_trap_redirect (struct kvm_vcpu *vcpu , struct kvm_cpu_trap *trap ); ARGUMENTS vcpu The VCPU pointer trap Trap details SEE ALSO Kernel file ./arch/riscv/kvm/vcpu_exit.c kvm_riscv_vcpu_unpriv_read(9) April ...
kvm_riscv_vcpu_unpriv_read(9)
NAME kvm_riscv_vcpu_unpriv_read - - Read machine word from Guest memory SYNOPSIS unsigned long kvm_riscv_vcpu_unpriv_read (struct kvm_vcpu *vcpu , bool read_insn , unsigned long guest_addr , struct kvm_cpu_trap *trap ); ARGUMENTS vcpu The VCPU pointer read_insn Flag representing whether we are readin...
kvm_riscv_vcpu_virtual_insn(9)
NAME kvm_riscv_vcpu_virtual_insn - - Handle virtual instruction trap SYNOPSIS int kvm_riscv_vcpu_virtual_insn (struct kvm_vcpu *vcpu , struct kvm_run *run , struct kvm_cpu_trap *trap ); ARGUMENTS vcpu The VCPU pointer run The VCPU run struct containing the mmio data trap Trap det...
kvm_riscv_vcpu_wfi(9)
NAME kvm_riscv_vcpu_wfi - - Emulate wait for interrupt (WFI) behaviour SYNOPSIS void kvm_riscv_vcpu_wfi (struct kvm_vcpu *vcpu ); ARGUMENTS vcpu The VCPU pointer SEE ALSO Kernel file ./arch/riscv/kvm/vcpu_insn.c kvm_riscv_vcpu_csr_return(9), kvm_riscv_vcpu_virtual_insn(9), kvm_riscv_vcpu_mmio_load(9), kvm_ris...
kvm_s390_check_low_addr_prot_real(9)
NAME kvm_s390_check_low_addr_prot_real - check for low-address protection SYNOPSIS int kvm_s390_check_low_addr_prot_real (struct kvm_vcpu *vcpu , unsigned long gra ); ARGUMENTS vcpu virtual cpu gra Guest real address DESCRIPTION Checks whether an address is subject to low-address protection an...
kvm_s390_cpus_from_pv(9)
NAME kvm_s390_cpus_from_pv - Convert all protected vCPUs in a protected VM to non protected. SYNOPSIS int kvm_s390_cpus_from_pv (struct kvm *kvm , u16 *rc , u16 *rrc ); ARGUMENTS kvm the VM whose protected vCPUs are to be converted rc return value for the RC field of the UVC (in case of error...
kvm_s390_cpus_to_pv(9)
NAME kvm_s390_cpus_to_pv - Convert all non-protected vCPUs in a protected VM to protected. SYNOPSIS int kvm_s390_cpus_to_pv (struct kvm *kvm , u16 *rc , u16 *rrc ); ARGUMENTS kvm the VM whose protected vCPUs are to be converted rc return value for the RC field of the UVC (in case of error) ...
kvm_s390_gisc_register(9)
NAME kvm_s390_gisc_register - register a guest ISC SYNOPSIS int kvm_s390_gisc_register (struct kvm *kvm , u32 gisc ); ARGUMENTS kvm the kernel vm to work with gisc the guest interruption sub class to register DESCRIPTION The function extends the vm specific alert mask to use. The effective ...
kvm_s390_gisc_unregister(9)
NAME kvm_s390_gisc_unregister - unregister a guest ISC SYNOPSIS int kvm_s390_gisc_unregister (struct kvm *kvm , u32 gisc ); ARGUMENTS kvm the kernel vm to work with gisc the guest interruption sub class to register DESCRIPTION The function reduces the vm specific alert mask to use. ...
kvm_s390_inject_prog_cond(9)
NAME kvm_s390_inject_prog_cond - conditionally inject a program check SYNOPSIS int kvm_s390_inject_prog_cond (struct kvm_vcpu *vcpu , int rc ); ARGUMENTS vcpu virtual cpu rc original return/error code DESCRIPTION This function is supposed to be used after regular guest access funct...
kvm_s390_logical_to_effective(9)
NAME kvm_s390_logical_to_effective - convert guest logical to effective address SYNOPSIS unsigned long kvm_s390_logical_to_effective (struct kvm_vcpu *vcpu , unsigned long ga ); ARGUMENTS vcpu guest virtual cpu ga guest logical address DESCRIPTION Convert a guest vcpu logical address to a ...
kvm_s390_pv_deinit_aside_vm(9)
NAME kvm_s390_pv_deinit_aside_vm - Teardown a previously set aside protected VM. SYNOPSIS int kvm_s390_pv_deinit_aside_vm (struct kvm *kvm , u16 *rc , u16 *rrc ); ARGUMENTS kvm the VM previously associated with the protected VM rc return value for the RC field of the UVCB rrc ...
kvm_s390_pv_deinit_cleanup_all(9)
NAME kvm_s390_pv_deinit_cleanup_all - Clean up all protected VMs associated with a specific KVM. SYNOPSIS int kvm_s390_pv_deinit_cleanup_all (struct kvm *kvm , u16 *rc , u16 *rrc ); ARGUMENTS kvm the KVM to be cleaned up rc the RC code of the first failing UVC rrc the RRC code...
kvm_s390_pv_deinit_vm(9)
NAME kvm_s390_pv_deinit_vm - Deinitialize the current protected VM SYNOPSIS int kvm_s390_pv_deinit_vm (struct kvm *kvm , u16 *rc , u16 *rrc ); ARGUMENTS kvm the KVM whose protected VM needs to be deinitialized rc the RC code of the UVC rrc the RRC code of the UVC DESCRIPTION ...
kvm_s390_pv_destroy_page(9)
NAME kvm_s390_pv_destroy_page - Destroy a guest page. SYNOPSIS int kvm_s390_pv_destroy_page (struct kvm *kvm , unsigned long gaddr ); ARGUMENTS kvm the guest gaddr the guest address to destroy DESCRIPTION An attempt will be made to destroy the given guest page. If the attempt fails, an attempt ...
kvm_s390_pv_dispose_one_leftover(9)
NAME kvm_s390_pv_dispose_one_leftover - Clean up one leftover protected VM. SYNOPSIS int kvm_s390_pv_dispose_one_leftover (struct kvm *kvm , struct pv_vm_to_be_destroyed *leftover , u16 *rc , u16 *rrc ); ARGUMENTS kvm the KVM that was associated with this leftover protected VM leftover details abou...
kvm_s390_pv_dump_complete(9)
NAME kvm_s390_pv_dump_complete - SYNOPSIS int kvm_s390_pv_dump_complete (struct kvm *kvm , void __user *buff_user , u16 *rc , u16 *rrc ); ARGUMENTS kvm pointer to the guest's KVM struct buff_user Userspace pointer where we will write the results to rc Pointer to where the uvcb retur...
kvm_s390_pv_dump_stor_state(9)
NAME kvm_s390_pv_dump_stor_state - SYNOPSIS int kvm_s390_pv_dump_stor_state (struct kvm *kvm , void __user *buff_user , u64 *gaddr , u64 buff_user_len , u16 *rc , u16 *rrc ); ARGUMENTS kvm pointer to the guest's KVM struct buff_user Userspace pointer where we will write the results to gaddr ...
kvm_s390_pv_make_secure(9)
NAME kvm_s390_pv_make_secure - make one guest page secure SYNOPSIS int kvm_s390_pv_make_secure (struct kvm *kvm , unsigned long gaddr , void *uvcb ); ARGUMENTS kvm the guest gaddr the guest address that needs to be made secure uvcb the UVCB specifying which operation needs to be p...
kvm_s390_pv_set_aside(9)
NAME kvm_s390_pv_set_aside - Set aside a protected VM for later teardown. SYNOPSIS int kvm_s390_pv_set_aside (struct kvm *kvm , u16 *rc , u16 *rrc ); ARGUMENTS kvm the VM rc return value for the RC field of the UVCB rrc return value for the RRC field of the UVCB DESCRIPTION S...
kvm_s390_real_to_abs(9)
NAME kvm_s390_real_to_abs - convert guest real address to guest absolute address @vcpu - guest virtual cpu @gra - guest real address SYNOPSIS unsigned long kvm_s390_real_to_abs (struct kvm_vcpu *vcpu , unsigned long gra ); ARGUMENTS vcpu -- undescribed -- gra -- undescribed -- DESCRIPTION Retu...
kvm_s390_update_topology_change_report(9)
NAME kvm_s390_update_topology_change_report - update CPU topology change report SYNOPSIS void kvm_s390_update_topology_change_report (struct kvm *kvm , bool val ); ARGUMENTS kvm guest KVM description val set or clear the MTCR bit DESCRIPTION Updates the Multiprocessor Topology-Change-Report b...
kvm_s390_vcpu_crypto_reset_all(9)
NAME kvm_s390_vcpu_crypto_reset_all - SYNOPSIS void kvm_s390_vcpu_crypto_reset_all (struct kvm *kvm ); ARGUMENTS kvm the KVM guest DESCRIPTION Reset the crypto attributes for each vcpu. This can be done while the vcpus are running as each vcpu will be removed from SIE before resetting the crypt attributes an...
kvm_s390_vcpu_pci_enable_interp(9)
NAME kvm_s390_vcpu_pci_enable_interp - SYNOPSIS void kvm_s390_vcpu_pci_enable_interp (struct kvm *kvm ); ARGUMENTS kvm the KVM guest DESCRIPTION Set the associated PCI attributes for each vcpu to allow for zPCI Load/Store interpretation as well as adapter interruption forwarding. SEE ALSO Kernel file ./arch...
kvm_set_routing_entry(9)
NAME kvm_set_routing_entry - populate a kvm routing entry from a user routing entry SYNOPSIS int kvm_set_routing_entry (struct kvm *kvm , struct kvm_kernel_irq_routing_entry *e , const struct kvm_irq_routing_entry *ue ); ARGUMENTS kvm the VM this entry is applied to e kvm kernel routing entr...
kvm_skip_instr32(9)
NAME kvm_skip_instr32 - skip a trapped instruction and proceed to the next SYNOPSIS void kvm_skip_instr32 (struct kvm_vcpu *vcpu ); ARGUMENTS vcpu The vcpu pointer SEE ALSO Kernel file ./arch/arm64/kvm/hyp/aarch32.c kvm_adjust_itstate(9) April 2026 ...
kvm_stage2_wp_range(9)
NAME kvm_stage2_wp_range - write protect stage2 memory region range SYNOPSIS void kvm_stage2_wp_range (struct kvm_s2_mmu *mmu , phys_addr_t addr , phys_addr_t end ); ARGUMENTS mmu The KVM stage-2 MMU pointer addr Start address of range end End address of range SEE ALSO Kernel ...
kvm_stats_linear_hist_update(9)
NAME kvm_stats_linear_hist_update - Update bucket value for linear histogram statistics data. SYNOPSIS void kvm_stats_linear_hist_update (u64 *data , size_t size , u64 value , size_t bucket_size ); ARGUMENTS data start address of the stats data size the number of bucket of the stats data ...
kvm_stats_log_hist_update(9)
NAME kvm_stats_log_hist_update - Update bucket value for logarithmic histogram statistics data. SYNOPSIS void kvm_stats_log_hist_update (u64 *data , size_t size , u64 value ); ARGUMENTS data start address of the stats data size the number of bucket of the stats data value the new v...
kvm_stats_read(9)
NAME kvm_stats_read - Common function to read from the binary statistics file descriptor. SYNOPSIS ssize_t kvm_stats_read (char *id , const struct kvm_stats_header *header , const struct kvm_stats_desc *desc , void *stats , size_t size_stats , char __user *user_buffer , size_t size , loff_t *offset ); ARGUMENTS id ...
kvm_test_age_gfn(9)
NAME kvm_test_age_gfn - test young SYNOPSIS bool kvm_test_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...
kvm_tlb_flush_vmid_range(9)
NAME kvm_tlb_flush_vmid_range - Invalidate/flush a range of TLB entries SYNOPSIS void kvm_tlb_flush_vmid_range (struct kvm_s2_mmu *mmu , phys_addr_t addr , size_t size ); ARGUMENTS mmu Stage-2 KVM MMU struct addr The base Intermediate physical address from which to invalidate size ...
kvm_trap_vz_handle_cop_unusable(9)
NAME kvm_trap_vz_handle_cop_unusable - Guest used unusable coprocessor. SYNOPSIS int kvm_trap_vz_handle_cop_unusable (struct kvm_vcpu *vcpu ); ARGUMENTS vcpu Virtual CPU context. DESCRIPTION Handle when the guest attempts to use a coprocessor which hasn't been allowed by the root context. RETURN value indica...
kvm_trap_vz_handle_msa_disabled(9)
NAME kvm_trap_vz_handle_msa_disabled - Guest used MSA while disabled in root. SYNOPSIS int kvm_trap_vz_handle_msa_disabled (struct kvm_vcpu *vcpu ); ARGUMENTS vcpu Virtual CPU context. DESCRIPTION Handle when the guest attempts to use MSA when it is disabled in the root context. RETURN value indicating wheth...
kvm_unmap_gfn_range(9)
NAME kvm_unmap_gfn_range - Unmap a range of guest addresses SYNOPSIS bool kvm_unmap_gfn_range (struct kvm *kvm , struct kvm_gfn_range *range ); ARGUMENTS kvm the kvm instance range the range of guest page frames to invalidate DESCRIPTION This function always returns false because every DAT tabl...
kvm_vcpu_exit_request(9)
NAME kvm_vcpu_exit_request - returns true if the VCPU should *not* enter the guest SYNOPSIS bool kvm_vcpu_exit_request (struct kvm_vcpu *vcpu , int *ret ); ARGUMENTS vcpu The VCPU pointer ret Pointer to write optional return code RETURN true if the VCPU needs to return to a preemptible + inter...
kvm_vcpu_read_pmcr(9)
NAME kvm_vcpu_read_pmcr - Read PMCR_EL0 register for the vCPU SYNOPSIS u64 kvm_vcpu_read_pmcr (struct kvm_vcpu *vcpu ); ARGUMENTS vcpu The vcpu 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_pmu_set_counter_...
kvm_vcpu_wfi(9)
NAME kvm_vcpu_wfi - emulate Wait-For-Interrupt behavior SYNOPSIS void kvm_vcpu_wfi (struct kvm_vcpu *vcpu ); ARGUMENTS vcpu The VCPU pointer DESCRIPTION Suspend execution of a vCPU until a valid wake event is detected, i.e. until the vCPU is runnable. The vCPU may or may not be scheduled out, depending o...
kvm_vgic_addr(9)
NAME kvm_vgic_addr - set or get vgic VM base addresses SYNOPSIS int kvm_vgic_addr (struct kvm *kvm , struct kvm_device_attr *attr , bool write ); ARGUMENTS kvm pointer to the vm struct attr pointer to the attribute being retrieved/updated write if true set the address in the VM ad...
kvm_vgic_create(9)
NAME kvm_vgic_create - triggered by the instantiation of the VGIC device by user space, either through the legacy KVM_CREATE_IRQCHIP ioctl (v2 only) or through the generic KVM_CREATE_DEVICE API ioctl. irqchip_in_kernel() tells you if this function succeeded or not. SYNOPSIS int kvm_vgic_create (struct kvm *kvm , u32 t...
kvm_vgic_dist_init(9)
NAME kvm_vgic_dist_init - initialize the dist data structures SYNOPSIS int kvm_vgic_dist_init (struct kvm *kvm , unsigned int nr_spis ); ARGUMENTS kvm kvm struct pointer nr_spis number of spis, frozen by caller SEE ALSO Kernel file ./arch/arm64/kvm/vgic/vgic-init.c kvm_vgic_early_init(9), kvm_vgi...