sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget'/translations/zh_CN/virt/kvm/devices/vmmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/zh_TW/virt/kvm/devices/vmmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/it_IT/virt/kvm/devices/vmmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/ja_JP/virt/kvm/devices/vmmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/ko_KR/virt/kvm/devices/vmmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hPortuguese (Brazilian)}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/pt_BR/virt/kvm/devices/vmmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/sp_SP/virt/kvm/devices/vmmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h SPDX-License-Identifier: GPL-2.0h]h SPDX-License-Identifier: GPL-2.0}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhhA/var/lib/git/docbuild/linux/Documentation/virt/kvm/devices/vm.rsthKubhsection)}(hhh](htitle)}(hGeneric vm interfaceh]hGeneric vm interface}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh paragraph)}(hThe virtual machine "device" also accepts the ioctls KVM_SET_DEVICE_ATTR, KVM_GET_DEVICE_ATTR, and KVM_HAS_DEVICE_ATTR. The interface uses the same struct kvm_device_attr as other devices, but targets VM-wide settings and controls.h]hThe virtual machine “device” also accepts the ioctls KVM_SET_DEVICE_ATTR, KVM_GET_DEVICE_ATTR, and KVM_HAS_DEVICE_ATTR. The interface uses the same struct kvm_device_attr as other devices, but targets VM-wide settings and controls.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hQThe groups and attributes per virtual machine, if any, are architecture specific.h]hQThe groups and attributes per virtual machine, if any, are architecture specific.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hhhhubh)}(hhh](h)}(h1. GROUP: KVM_S390_VM_MEM_CTRLh]h1. GROUP: KVM_S390_VM_MEM_CTRL}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh field_list)}(hhh]hfield)}(hhh](h field_name)}(h Architecturesh]h Architectures}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhhKubh field_body)}(hs390 h]h)}(hs390h]hs390}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj(ubah}(h]h ]h"]h$]h&]uh1j&hjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjhhubah}(h]h ]h"]h$]h&]uh1j hhhhhhhKubh)}(hhh](h)}(h+1.1. ATTRIBUTE: KVM_S390_VM_MEM_ENABLE_CMMAh]h+1.1. ATTRIBUTE: KVM_S390_VM_MEM_ENABLE_CMMA}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhhhhhKubj )}(hhh](j)}(hhh](j)}(h Parametersh]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`hhhKubj')}(hnoneh]h)}(hjsh]hnone}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjqubah}(h]h ]h"]h$]h&]uh1j&hj`ubeh}(h]h ]h"]h$]h&]uh1jhhhKhj]hhubj)}(hhh](j)}(hReturnsh]hReturns}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhhKubj')}(h1-EBUSY if a vcpu is already defined, otherwise 0 h]h)}(h0-EBUSY if a vcpu is already defined, otherwise 0h]h0-EBUSY if a vcpu is already defined, otherwise 0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j&hjubeh}(h]h ]h"]h$]h&]uh1jhhhKhj]hhubeh}(h]h ]h"]h$]h&]uh1j hjLhhhhhKubh)}(hNEnables Collaborative Memory Management Assist (CMMA) for the virtual machine.h]hNEnables Collaborative Memory Management Assist (CMMA) for the virtual machine.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjLhhubeh}(h]%attribute-kvm-s390-vm-mem-enable-cmmaah ]h"]+1.1. attribute: kvm_s390_vm_mem_enable_cmmaah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h(1.2. ATTRIBUTE: KVM_S390_VM_MEM_CLR_CMMAh]h(1.2. ATTRIBUTE: KVM_S390_VM_MEM_CLR_CMMA}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubj )}(hhh](j)}(hhh](j)}(h Parametersh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhhKubj')}(hnoneh]h)}(hjh]hnone}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j&hjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjhhubj)}(hhh](j)}(hReturnsh]hReturns}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhhKubj')}(h--EINVAL if CMMA was not enabled; 0 otherwise h]h)}(h,-EINVAL if CMMA was not enabled; 0 otherwiseh]h,-EINVAL if CMMA was not enabled; 0 otherwise}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hj,ubah}(h]h ]h"]h$]h&]uh1j&hjubeh}(h]h ]h"]h$]h&]uh1jhhhK hjhhubeh}(h]h ]h"]h$]h&]uh1j hjhhhhhKubh)}(hClear the CMMA status for all guest pages, so any pages the guest marked as unused are again used any may not be reclaimed by the host.h]hClear the CMMA status for all guest pages, so any pages the guest marked as unused are again used any may not be reclaimed by the host.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK#hjhhubeh}(h]"attribute-kvm-s390-vm-mem-clr-cmmaah ]h"](1.2. attribute: kvm_s390_vm_mem_clr_cmmaah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h)1.3. ATTRIBUTE KVM_S390_VM_MEM_LIMIT_SIZEh]h)1.3. ATTRIBUTE KVM_S390_VM_MEM_LIMIT_SIZE}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhhhhhK'ubj )}(hhh](j)}(hhh](j)}(h Parametersh]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzhhhKubj')}(h;in attr->addr the address for the new limit of guest memoryh]h)}(hjh]h;in attr->addr the address for the new limit of guest memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK)hjubah}(h]h ]h"]h$]h&]uh1j&hjzubeh}(h]h ]h"]h$]h&]uh1jhhhK)hjwhhubj)}(hhh](j)}(hReturnsh]hReturns}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhhKubj')}(hX-EFAULT if the given address is not accessible; -EINVAL if the virtual machine is of type UCONTROL; -E2BIG if the given guest memory is to big for that machine; -EBUSY if a vcpu is already defined; -ENOMEM if not enough memory is available for a new shadow guest mapping; 0 otherwise. h]h)}(hX-EFAULT if the given address is not accessible; -EINVAL if the virtual machine is of type UCONTROL; -E2BIG if the given guest memory is to big for that machine; -EBUSY if a vcpu is already defined; -ENOMEM if not enough memory is available for a new shadow guest mapping; 0 otherwise.h]hX-EFAULT if the given address is not accessible; -EINVAL if the virtual machine is of type UCONTROL; -E2BIG if the given guest memory is to big for that machine; -EBUSY if a vcpu is already defined; -ENOMEM if not enough memory is available for a new shadow guest mapping; 0 otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK*hjubah}(h]h ]h"]h$]h&]uh1j&hjubeh}(h]h ]h"]h$]h&]uh1jhhhK*hjwhhubeh}(h]h ]h"]h$]h&]uh1j hjfhhhhhK)ubh)}(hXDAllows userspace to query the actual limit and set a new limit for the maximum guest memory size. The limit will be rounded up to 2048 MB, 4096 GB, 8192 TB respectively, as this limit is governed by the number of page table levels. In the case that there is no limit we will set the limit to KVM_S390_NO_MEM_LIMIT (U64_MAX).h]hXDAllows userspace to query the actual limit and set a new limit for the maximum guest memory size. The limit will be rounded up to 2048 MB, 4096 GB, 8192 TB respectively, as this limit is governed by the number of page table levels. In the case that there is no limit we will set the limit to KVM_S390_NO_MEM_LIMIT (U64_MAX).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK1hjfhhubeh}(h]$attribute-kvm-s390-vm-mem-limit-sizeah ]h"])1.3. attribute kvm_s390_vm_mem_limit_sizeah$]h&]uh1hhhhhhhhK'ubeh}(h]group-kvm-s390-vm-mem-ctrlah ]h"]1. group: kvm_s390_vm_mem_ctrlah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h2. GROUP: KVM_S390_VM_CPU_MODELh]h2. GROUP: KVM_S390_VM_CPU_MODEL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK8ubj )}(hhh]j)}(hhh](j)}(h Architecturesh]h Architectures}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhhKubj')}(hs390 h]h)}(hs390h]hs390}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK:hj ubah}(h]h ]h"]h$]h&]uh1j&hjubeh}(h]h ]h"]h$]h&]uh1jhhhK:hj hhubah}(h]h ]h"]h$]h&]uh1j hjhhhhhK:ubh)}(hhh](h)}(h-2.1. ATTRIBUTE: KVM_S390_VM_CPU_MACHINE (r/o)h]h-2.1. ATTRIBUTE: KVM_S390_VM_CPU_MACHINE (r/o)}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhhhhhK=ubh)}(hPAllows user space to retrieve machine and kvm specific cpu related information::h]hOAllows user space to retrieve machine and kvm specific cpu related information:}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK?hjDhhubh literal_block)}(hX&struct kvm_s390_vm_cpu_machine { __u64 cpuid; # CPUID of host __u32 ibc; # IBC level range offered by host __u8 pad[4]; __u64 fac_mask[256]; # set of cpu facilities enabled by KVM __u64 fac_list[256]; # set of cpu facilities offered by host }h]hX&struct kvm_s390_vm_cpu_machine { __u64 cpuid; # CPUID of host __u32 ibc; # IBC level range offered by host __u8 pad[4]; __u64 fac_mask[256]; # set of cpu facilities enabled by KVM __u64 fac_list[256]; # set of cpu facilities offered by host }}hjesbah}(h]h ]h"]h$]h&]hhuh1jchhhKAhjDhhubj )}(hhh](j)}(hhh](j)}(h Parametersh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvhhhKubj')}(h_address of buffer to store the machine related cpu data of type struct kvm_s390_vm_cpu_machine*h]h)}(h_address of buffer to store the machine related cpu data of type struct kvm_s390_vm_cpu_machine*h]h_address of buffer to store the machine related cpu data of type struct kvm_s390_vm_cpu_machine*}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKIhjubah}(h]h ]h"]h$]h&]uh1j&hjvubeh}(h]h ]h"]h$]h&]uh1jhhhKIhjshhubj)}(hhh](j)}(hReturnsh]hReturns}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhhKubj')}(h-EFAULT if the given address is not accessible from kernel space; -ENOMEM if not enough memory is available to process the ioctl; 0 in case of success. h]h)}(h-EFAULT if the given address is not accessible from kernel space; -ENOMEM if not enough memory is available to process the ioctl; 0 in case of success.h]h-EFAULT if the given address is not accessible from kernel space; -ENOMEM if not enough memory is available to process the ioctl; 0 in case of success.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKKhjubah}(h]h ]h"]h$]h&]uh1j&hjubeh}(h]h ]h"]h$]h&]uh1jhhhKKhjshhubeh}(h]h ]h"]h$]h&]uh1j hjDhhhhhKIubeh}(h]%attribute-kvm-s390-vm-cpu-machine-r-oah ]h"]-2.1. attribute: kvm_s390_vm_cpu_machine (r/o)ah$]h&]uh1hhjhhhhhK=ubeh}(h]group-kvm-s390-vm-cpu-modelah ]h"]2. group: kvm_s390_vm_cpu_modelah$]h&]uh1hhhhhhhhK8ubh)}(hhh](h)}(h/2.2. ATTRIBUTE: KVM_S390_VM_CPU_PROCESSOR (r/w)h]h/2.2. ATTRIBUTE: KVM_S390_VM_CPU_PROCESSOR (r/w)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKPubh)}(hWAllows user space to retrieve or request to change cpu related information for a vcpu::h]hVAllows user space to retrieve or request to change cpu related information for a vcpu:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKRhjhhubjd)}(hXAstruct kvm_s390_vm_cpu_processor { __u64 cpuid; # CPUID currently (to be) used by this vcpu __u16 ibc; # IBC level currently (to be) used by this vcpu __u8 pad[6]; __u64 fac_list[256]; # set of cpu facilities currently (to be) used # by this vcpu }h]hXAstruct kvm_s390_vm_cpu_processor { __u64 cpuid; # CPUID currently (to be) used by this vcpu __u16 ibc; # IBC level currently (to be) used by this vcpu __u8 pad[6]; __u64 fac_list[256]; # set of cpu facilities currently (to be) used # by this vcpu }}hj sbah}(h]h ]h"]h$]h&]hhuh1jchhhKThjhhubh)}(hX=KVM does not enforce or limit the cpu model data in any form. Take the information retrieved by means of KVM_S390_VM_CPU_MACHINE as hint for reasonable configuration setups. Instruction interceptions triggered by additionally set facility bits that are not handled by KVM need to by implemented in the VM driver code.h]hX=KVM does not enforce or limit the cpu model data in any form. Take the information retrieved by means of KVM_S390_VM_CPU_MACHINE as hint for reasonable configuration setups. Instruction interceptions triggered by additionally set facility bits that are not handled by KVM need to by implemented in the VM driver code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK\hjhhubj )}(hhh](j)}(hhh](j)}(h Parametersh]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(hhhKubj')}(hhaddress of buffer to store/set the processor related cpu data of type struct kvm_s390_vm_cpu_processor*.h]h)}(hhaddress of buffer to store/set the processor related cpu data of type struct kvm_s390_vm_cpu_processor*.h]hhaddress of buffer to store/set the processor related cpu data of type struct kvm_s390_vm_cpu_processor*.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKahj9ubah}(h]h ]h"]h$]h&]uh1j&hj(ubeh}(h]h ]h"]h$]h&]uh1jhhhKahj%hhubj)}(hhh](j)}(hReturnsh]hReturns}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWhhhKubj')}(h-EBUSY in case 1 or more vcpus are already activated (only in write case); -EFAULT if the given address is not accessible from kernel space; -ENOMEM if not enough memory is available to process the ioctl; 0 in case of success. h]h)}(h-EBUSY in case 1 or more vcpus are already activated (only in write case); -EFAULT if the given address is not accessible from kernel space; -ENOMEM if not enough memory is available to process the ioctl; 0 in case of success.h]h-EBUSY in case 1 or more vcpus are already activated (only in write case); -EFAULT if the given address is not accessible from kernel space; -ENOMEM if not enough memory is available to process the ioctl; 0 in case of success.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKchjhubah}(h]h ]h"]h$]h&]uh1j&hjWubeh}(h]h ]h"]h$]h&]uh1jhhhKchj%hhubeh}(h]h ]h"]h$]h&]uh1j hjhhhhhKaubhtarget)}(h!.. _KVM_S390_VM_CPU_MACHINE_FEAT:h]h}(h]h ]h"]h$]h&]refidkvm-s390-vm-cpu-machine-featuh1jhKhhjhhhhubh)}(hhh](h)}(h22.3. ATTRIBUTE: KVM_S390_VM_CPU_MACHINE_FEAT (r/o)h]h22.3. ATTRIBUTE: KVM_S390_VM_CPU_MACHINE_FEAT (r/o)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKkubh)}(hAllows user space to retrieve available cpu features. A feature is available if provided by the hardware and supported by kvm. In theory, cpu features could even be completely emulated by kvm.h]hAllows user space to retrieve available cpu features. A feature is available if provided by the hardware and supported by kvm. In theory, cpu features could even be completely emulated by kvm.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKmhjhhubjd)}(hlstruct kvm_s390_vm_cpu_feat { __u64 feat[16]; # Bitmap (1 = feature available), MSB 0 bit numbering };h]hlstruct kvm_s390_vm_cpu_feat { __u64 feat[16]; # Bitmap (1 = feature available), MSB 0 bit numbering };}hjsbah}(h]h ]h"]h$]h&]hhuh1jchhhKshjhhubj )}(hhh](j)}(hhh](j)}(h Parametersh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhhKubj')}(h2address of a buffer to load the feature list from.h]h)}(hjh]h2address of a buffer to load the feature list from.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKwhjubah}(h]h ]h"]h$]h&]uh1j&hjubeh}(h]h ]h"]h$]h&]uh1jhhhKwhjhhubj)}(hhh](j)}(hReturnsh]hReturns}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhhKubj')}(hX-EFAULT if the given address is not accessible from kernel space; 0 in case of success. h]h)}(hW-EFAULT if the given address is not accessible from kernel space; 0 in case of success.h]hW-EFAULT if the given address is not accessible from kernel space; 0 in case of success.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKxhj ubah}(h]h ]h"]h$]h&]uh1j&hjubeh}(h]h ]h"]h$]h&]uh1jhhhKxhjhhubeh}(h]h ]h"]h$]h&]uh1j hjhhhhhKwubeh}(h](*attribute-kvm-s390-vm-cpu-machine-feat-r-ojeh ]h"](22.3. attribute: kvm_s390_vm_cpu_machine_feat (r/o)kvm_s390_vm_cpu_machine_feateh$]h&]uh1hhjhhhhhKkexpect_referenced_by_name}j3jsexpect_referenced_by_id}jjsubh)}(hhh](h)}(h42.4. ATTRIBUTE: KVM_S390_VM_CPU_PROCESSOR_FEAT (r/w)h]h42.4. ATTRIBUTE: KVM_S390_VM_CPU_PROCESSOR_FEAT (r/w)}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hhhhhK|ubh)}(hAllows user space to retrieve or change enabled cpu features for all VCPUs of a VM. Features that are not available cannot be enabled.h]hAllows user space to retrieve or change enabled cpu features for all VCPUs of a VM. Features that are not available cannot be enabled.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK~hj:hhubh)}(hRSee :ref:`KVM_S390_VM_CPU_MACHINE_FEAT` for a description of the parameter struct.h](hSee }(hjYhhhNhNubh)}(h#:ref:`KVM_S390_VM_CPU_MACHINE_FEAT`h]hinline)}(hjch]hKVM_S390_VM_CPU_MACHINE_FEAT}(hjghhhNhNubah}(h]h ](xrefstdstd-refeh"]h$]h&]uh1jehjaubah}(h]h ]h"]h$]h&]refdocvirt/kvm/devices/vm refdomainjrreftyperef refexplicitrefwarn reftargetkvm_s390_vm_cpu_machine_featuh1hhhhKhjYubh+ for a description of the parameter struct.}(hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj:hhubj )}(hhh](j)}(hhh](j)}(h Parametersh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhhKubj')}(h8address of a buffer to store/load the feature list from.h]h)}(hjh]h8address of a buffer to store/load the feature list from.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j&hjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjhhubj)}(hhh](j)}(hReturnsh]hReturns}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhhKubj')}(h-EFAULT if the given address is not accessible from kernel space; -EINVAL if a cpu feature that is not available is to be enabled; -EBUSY if at least one VCPU has already been defined; 0 in case of success. h]h)}(h-EFAULT if the given address is not accessible from kernel space; -EINVAL if a cpu feature that is not available is to be enabled; -EBUSY if at least one VCPU has already been defined; 0 in case of success.h]h-EFAULT if the given address is not accessible from kernel space; -EINVAL if a cpu feature that is not available is to be enabled; -EBUSY if at least one VCPU has already been defined; 0 in case of success.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j&hjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjhhubeh}(h]h ]h"]h$]h&]uh1j hj:hhhhhKubj)}(h$.. _KVM_S390_VM_CPU_MACHINE_SUBFUNC:h]h}(h]h ]h"]h$]h&]jkvm-s390-vm-cpu-machine-subfuncuh1jhKhj:hhhhubeh}(h],attribute-kvm-s390-vm-cpu-processor-feat-r-wah ]h"]42.4. attribute: kvm_s390_vm_cpu_processor_feat (r/w)ah$]h&]uh1hhjhhhhhK|ubh)}(hhh](h)}(h52.5. ATTRIBUTE: KVM_S390_VM_CPU_MACHINE_SUBFUNC (r/o)h]h52.5. ATTRIBUTE: KVM_S390_VM_CPU_MACHINE_SUBFUNC (r/o)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhKubh)}(hAllows user space to retrieve available cpu subfunctions without any filtering done by a set IBC. These subfunctions are indicated to the guest VCPU via query or "test bit" subfunctions and used e.g. by cpacf functions, plo and ptff.h]hAllows user space to retrieve available cpu subfunctions without any filtering done by a set IBC. These subfunctions are indicated to the guest VCPU via query or “test bit” subfunctions and used e.g. by cpacf functions, plo and ptff.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj hhubh)}(hXA subfunction block is only valid if KVM_S390_VM_CPU_MACHINE contains the STFL(E) bit introducing the affected instruction. If the affected instruction indicates subfunctions via a "query subfunction", the response block is contained in the returned struct. If the affected instruction indicates subfunctions via a "test bit" mechanism, the subfunction codes are contained in the returned struct in MSB 0 bit numbering.h]hXA subfunction block is only valid if KVM_S390_VM_CPU_MACHINE contains the STFL(E) bit introducing the affected instruction. If the affected instruction indicates subfunctions via a “query subfunction”, the response block is contained in the returned struct. If the affected instruction indicates subfunctions via a “test bit” mechanism, the subfunction codes are contained in the returned struct in MSB 0 bit numbering.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj hhubjd)}(hXxstruct kvm_s390_vm_cpu_subfunc { u8 plo[32]; # always valid (ESA/390 feature) u8 ptff[16]; # valid with TOD-clock steering u8 kmac[16]; # valid with Message-Security-Assist u8 kmc[16]; # valid with Message-Security-Assist u8 km[16]; # valid with Message-Security-Assist u8 kimd[16]; # valid with Message-Security-Assist u8 klmd[16]; # valid with Message-Security-Assist u8 pckmo[16]; # valid with Message-Security-Assist-Extension 3 u8 kmctr[16]; # valid with Message-Security-Assist-Extension 4 u8 kmf[16]; # valid with Message-Security-Assist-Extension 4 u8 kmo[16]; # valid with Message-Security-Assist-Extension 4 u8 pcc[16]; # valid with Message-Security-Assist-Extension 4 u8 ppno[16]; # valid with Message-Security-Assist-Extension 5 u8 kma[16]; # valid with Message-Security-Assist-Extension 8 u8 kdsa[16]; # valid with Message-Security-Assist-Extension 9 u8 reserved[1792]; # reserved for future instructions };h]hXxstruct kvm_s390_vm_cpu_subfunc { u8 plo[32]; # always valid (ESA/390 feature) u8 ptff[16]; # valid with TOD-clock steering u8 kmac[16]; # valid with Message-Security-Assist u8 kmc[16]; # valid with Message-Security-Assist u8 km[16]; # valid with Message-Security-Assist u8 kimd[16]; # valid with Message-Security-Assist u8 klmd[16]; # valid with Message-Security-Assist u8 pckmo[16]; # valid with Message-Security-Assist-Extension 3 u8 kmctr[16]; # valid with Message-Security-Assist-Extension 4 u8 kmf[16]; # valid with Message-Security-Assist-Extension 4 u8 kmo[16]; # valid with Message-Security-Assist-Extension 4 u8 pcc[16]; # valid with Message-Security-Assist-Extension 4 u8 ppno[16]; # valid with Message-Security-Assist-Extension 5 u8 kma[16]; # valid with Message-Security-Assist-Extension 8 u8 kdsa[16]; # valid with Message-Security-Assist-Extension 9 u8 reserved[1792]; # reserved for future instructions };}hj6sbah}(h]h ]h"]h$]h&]hhuh1jchhhKhj hhubj )}(hhh](j)}(hhh](j)}(h Parametersh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGhhhKubj')}(h8address of a buffer to load the subfunction blocks from.h]h)}(hjZh]h8address of a buffer to load the subfunction blocks from.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjXubah}(h]h ]h"]h$]h&]uh1j&hjGubeh}(h]h ]h"]h$]h&]uh1jhhhKhjDhhubj)}(hhh](j)}(hReturnsh]hReturns}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuhhhKubj')}(hX-EFAULT if the given address is not accessible from kernel space; 0 in case of success. h]h)}(hW-EFAULT if the given address is not accessible from kernel space; 0 in case of success.h]hW-EFAULT if the given address is not accessible from kernel space; 0 in case of success.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j&hjuubeh}(h]h ]h"]h$]h&]uh1jhhhKhjDhhubeh}(h]h ]h"]h$]h&]uh1j hj hhhhhKubeh}(h](-attribute-kvm-s390-vm-cpu-machine-subfunc-r-ojeh ]h"](52.5. attribute: kvm_s390_vm_cpu_machine_subfunc (r/o)kvm_s390_vm_cpu_machine_subfunceh$]h&]uh1hhjhhhhhKj6}jjsj8}jjsubh)}(hhh](h)}(h72.6. ATTRIBUTE: KVM_S390_VM_CPU_PROCESSOR_SUBFUNC (r/w)h]h72.6. ATTRIBUTE: KVM_S390_VM_CPU_PROCESSOR_SUBFUNC (r/w)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hAllows user space to retrieve or change cpu subfunctions to be indicated for all VCPUs of a VM. This attribute will only be available if kernel and hardware support are in place.h]hAllows user space to retrieve or change cpu subfunctions to be indicated for all VCPUs of a VM. This attribute will only be available if kernel and hardware support are in place.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hThe kernel uses the configured subfunction blocks for indication to the guest. A subfunction block will only be used if the associated STFL(E) bit has not been disabled by user space (so the instruction to be queried is actually available for the guest).h]hThe kernel uses the configured subfunction blocks for indication to the guest. A subfunction block will only be used if the associated STFL(E) bit has not been disabled by user space (so the instruction to be queried is actually available for the guest).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hAs long as no data has been written, a read will fail. The IBC will be used to determine available subfunctions in this case, this will guarantee backward compatibility.h]hAs long as no data has been written, a read will fail. The IBC will be used to determine available subfunctions in this case, this will guarantee backward compatibility.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hUSee :ref:`KVM_S390_VM_CPU_MACHINE_SUBFUNC` for a description of the parameter struct.h](hSee }(hjhhhNhNubh)}(h&:ref:`KVM_S390_VM_CPU_MACHINE_SUBFUNC`h]jf)}(hjh]hKVM_S390_VM_CPU_MACHINE_SUBFUNC}(hjhhhNhNubah}(h]h ](jqstdstd-refeh"]h$]h&]uh1jehjubah}(h]h ]h"]h$]h&]refdocj~ refdomainjreftyperef refexplicitrefwarnjkvm_s390_vm_cpu_machine_subfuncuh1hhhhKhjubh+ for a description of the parameter struct.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj )}(hhh](j)}(hhh](j)}(h Parametersh]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%hhhKubj')}(h>address of a buffer to store/load the subfunction blocks from.h]h)}(hj8h]h>address of a buffer to store/load the subfunction blocks from.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj6ubah}(h]h ]h"]h$]h&]uh1j&hj%ubeh}(h]h ]h"]h$]h&]uh1jhhhKhj"hhubj)}(hhh](j)}(hReturnsh]hReturns}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjShhhKubj')}(h-EFAULT if the given address is not accessible from kernel space; -EINVAL when reading, if there was no write yet; -EBUSY if at least one VCPU has already been defined; 0 in case of success. h]h)}(h-EFAULT if the given address is not accessible from kernel space; -EINVAL when reading, if there was no write yet; -EBUSY if at least one VCPU has already been defined; 0 in case of success.h]h-EFAULT if the given address is not accessible from kernel space; -EINVAL when reading, if there was no write yet; -EBUSY if at least one VCPU has already been defined; 0 in case of success.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjdubah}(h]h ]h"]h$]h&]uh1j&hjSubeh}(h]h ]h"]h$]h&]uh1jhhhKhj"hhubeh}(h]h ]h"]h$]h&]uh1j hjhhhhhKubeh}(h]/attribute-kvm-s390-vm-cpu-processor-subfunc-r-wah ]h"]72.6. attribute: kvm_s390_vm_cpu_processor_subfunc (r/w)ah$]h&]uh1hhjhhhhhKubeh}(h]'attribute-kvm-s390-vm-cpu-processor-r-wah ]h"]/2.2. attribute: kvm_s390_vm_cpu_processor (r/w)ah$]h&]uh1hhhhhhhhKPubh)}(hhh](h)}(h3. GROUP: KVM_S390_VM_TODh]h3. GROUP: KVM_S390_VM_TOD}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubj )}(hhh]j)}(hhh](j)}(h Architecturesh]h Architectures}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhhKubj')}(hs390 h]h)}(hs390h]hs390}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j&hjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjhhubah}(h]h ]h"]h$]h&]uh1j hjhhhhhKubh)}(hhh](h)}(h$3.1. ATTRIBUTE: KVM_S390_VM_TOD_HIGHh]h$3.1. ATTRIBUTE: KVM_S390_VM_TOD_HIGH}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(h^Allows user space to set/get the TOD clock extension (u8) (superseded by KVM_S390_VM_TOD_EXT).h]h^Allows user space to set/get the TOD clock extension (u8) (superseded by KVM_S390_VM_TOD_EXT).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj )}(hhh](j)}(hhh](j)}(h Parametersh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhhKubj')}(h;address of a buffer in user space to store the data (u8) toh]h)}(hjh]h;address of a buffer in user space to store the data (u8) to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j&hjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjhhubj)}(hhh](j)}(hReturnsh]hReturns}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1hhhKubj')}(h-EFAULT if the given address is not accessible from kernel space; -EINVAL if setting the TOD clock extension to != 0 is not supported -EOPNOTSUPP for a PV guest (TOD managed by the ultravisor) h]h)}(h-EFAULT if the given address is not accessible from kernel space; -EINVAL if setting the TOD clock extension to != 0 is not supported -EOPNOTSUPP for a PV guest (TOD managed by the ultravisor)h]h-EFAULT if the given address is not accessible from kernel space; -EINVAL if setting the TOD clock extension to != 0 is not supported -EOPNOTSUPP for a PV guest (TOD managed by the ultravisor)}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjBubah}(h]h ]h"]h$]h&]uh1j&hj1ubeh}(h]h ]h"]h$]h&]uh1jhhhKhjhhubeh}(h]h ]h"]h$]h&]uh1j hjhhhhhKubeh}(h]attribute-kvm-s390-vm-tod-highah ]h"]$3.1. attribute: kvm_s390_vm_tod_highah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(h#3.2. ATTRIBUTE: KVM_S390_VM_TOD_LOWh]h#3.2. ATTRIBUTE: KVM_S390_VM_TOD_LOW}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhhhhhKubh)}(h]Allows user space to set/get bits 0-63 of the TOD clock register as defined in the POP (u64).h]h]Allows user space to set/get bits 0-63 of the TOD clock register as defined in the POP (u64).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjnhhubj )}(hhh](j)}(hhh](j)}(h Parametersh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhhKubj')}(h
ubah}(h]h ]h"]h$]h&]uh1j&hj-ubeh}(h]h ]h"]h$]h&]uh1jhhhMHhj*hhubah}(h]h ]h"]h$]h&]uh1j hjhhhhhMHubh)}(hhh](h)}(h-6.1. ATTRIBUTE: KVM_ARM_VM_SMCCC_FILTER (w/o)h]h-6.1. ATTRIBUTE: KVM_ARM_VM_SMCCC_FILTER (w/o)}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhhhhhMKubj )}(hhh](j)}(hhh](j)}(h Parametersh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvhhhKubj')}(h)Pointer to a ``struct kvm_smccc_filter`` h]h)}(h(Pointer to a ``struct kvm_smccc_filter``h](h Pointer to a }(hjhhhNhNubhliteral)}(h``struct kvm_smccc_filter``h]hstruct kvm_smccc_filter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhhhMMhjubah}(h]h ]h"]h$]h&]uh1j&hjvubeh}(h]h ]h"]h$]h&]uh1jhhhMMhjshhubj)}(hhh](j)}(hReturnsh]hReturns}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhhKubj')}(hXc====== =========================================== EEXIST Range intersects with a previously inserted or reserved range EBUSY A vCPU in the VM has already run EINVAL Invalid filter configuration ENOMEM Failed to allocate memory for the in-kernel representation of the SMCCC filter ====== =========================================== h]htable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK+uh1jhjubhtbody)}(hhh](hrow)}(hhh](hentry)}(hhh]h)}(hEEXISTh]hEEXIST}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMRhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h=Range intersects with a previously inserted or reserved rangeh]h=Range intersects with a previously inserted or reserved range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMRhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hEBUSYh]hEBUSY}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMThj-ubah}(h]h ]h"]h$]h&]uh1jhj*ubj)}(hhh]h)}(h A vCPU in the VM has already runh]h A vCPU in the VM has already run}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMThjDubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hEINVALh]hEINVAL}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMUhjdubah}(h]h ]h"]h$]h&]uh1jhjaubj)}(hhh]h)}(hInvalid filter configurationh]hInvalid filter configuration}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMUhj{ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hENOMEMh]hENOMEM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMVhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hNFailed to allocate memory for the in-kernel representation of the SMCCC filterh]hNFailed to allocate memory for the in-kernel representation of the SMCCC filter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMVhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j&hjubeh}(h]h ]h"]h$]h&]uh1jhhhMOhjshhubeh}(h]h ]h"]h$]h&]uh1j hjbhhhhhMMubh)}(hHRequests the installation of an SMCCC call filter described as follows::h]hGRequests the installation of an SMCCC call filter described as follows:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMZhjbhhubjd)}(hXenum kvm_smccc_filter_action { KVM_SMCCC_FILTER_HANDLE = 0, KVM_SMCCC_FILTER_DENY, KVM_SMCCC_FILTER_FWD_TO_USER, }; struct kvm_smccc_filter { __u32 base; __u32 nr_functions; __u8 action; __u8 pad[15]; };h]hXenum kvm_smccc_filter_action { KVM_SMCCC_FILTER_HANDLE = 0, KVM_SMCCC_FILTER_DENY, KVM_SMCCC_FILTER_FWD_TO_USER, }; struct kvm_smccc_filter { __u32 base; __u32 nr_functions; __u8 action; __u8 pad[15]; };}hjsbah}(h]h ]h"]h$]h&]hhuh1jchhhM\hjbhhubh)}(hThe filter is defined as a set of non-overlapping ranges. Each range defines an action to be applied to SMCCC calls within the range. Userspace can insert multiple ranges into the filter by using successive calls to this attribute.h]hThe filter is defined as a set of non-overlapping ranges. Each range defines an action to be applied to SMCCC calls within the range. Userspace can insert multiple ranges into the filter by using successive calls to this attribute.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMihjbhhubh)}(hThe default configuration of KVM is such that all implemented SMCCC calls are allowed. Thus, the SMCCC filter can be defined sparsely by userspace, only describing ranges that modify the default behavior.h]hThe default configuration of KVM is such that all implemented SMCCC calls are allowed. Thus, the SMCCC filter can be defined sparsely by userspace, only describing ranges that modify the default behavior.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMnhjbhhubh)}(hThe range expressed by ``struct kvm_smccc_filter`` is [``base``, ``base + nr_functions``). The range is not allowed to wrap, i.e. userspace cannot rely on ``base + nr_functions`` overflowing.h](hThe range expressed by }(hj,hhhNhNubj)}(h``struct kvm_smccc_filter``h]hstruct kvm_smccc_filter}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubh is [}(hj,hhhNhNubj)}(h``base``h]hbase}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubh, }(hj,hhhNhNubj)}(h``base + nr_functions``h]hbase + nr_functions}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubhC). The range is not allowed to wrap, i.e. userspace cannot rely on }(hj,hhhNhNubj)}(h``base + nr_functions``h]hbase + nr_functions}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubh overflowing.}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMrhjbhhubh)}(hThe SMCCC filter applies to both SMC and HVC calls initiated by the guest. The SMCCC filter gates the in-kernel emulation of SMCCC calls and as such takes effect before other interfaces that interact with SMCCC calls (e.g. hypercall bitmap registers).h]hThe SMCCC filter applies to both SMC and HVC calls initiated by the guest. The SMCCC filter gates the in-kernel emulation of SMCCC calls and as such takes effect before other interfaces that interact with SMCCC calls (e.g. hypercall bitmap registers).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMvhjbhhubh)}(hActions:h]hActions:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM{hjbhhubh block_quote)}(hX- ``KVM_SMCCC_FILTER_HANDLE``: Allows the guest SMCCC call to be handled in-kernel. It is strongly recommended that userspace *not* explicitly describe the allowed SMCCC call ranges. - ``KVM_SMCCC_FILTER_DENY``: Rejects the guest SMCCC call in-kernel and returns to the guest. - ``KVM_SMCCC_FILTER_FWD_TO_USER``: The guest SMCCC call is forwarded to userspace with an exit reason of ``KVM_EXIT_HYPERCALL``. h]h bullet_list)}(hhh](h list_item)}(h``KVM_SMCCC_FILTER_HANDLE``: Allows the guest SMCCC call to be handled in-kernel. It is strongly recommended that userspace *not* explicitly describe the allowed SMCCC call ranges. h]h)}(h``KVM_SMCCC_FILTER_HANDLE``: Allows the guest SMCCC call to be handled in-kernel. It is strongly recommended that userspace *not* explicitly describe the allowed SMCCC call ranges.h](j)}(h``KVM_SMCCC_FILTER_HANDLE``h]hKVM_SMCCC_FILTER_HANDLE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubha: Allows the guest SMCCC call to be handled in-kernel. It is strongly recommended that userspace }(hjhhhNhNubhemphasis)}(h*not*h]hnot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh3 explicitly describe the allowed SMCCC call ranges.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM}hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h\``KVM_SMCCC_FILTER_DENY``: Rejects the guest SMCCC call in-kernel and returns to the guest. h]h)}(h[``KVM_SMCCC_FILTER_DENY``: Rejects the guest SMCCC call in-kernel and returns to the guest.h](j)}(h``KVM_SMCCC_FILTER_DENY``h]hKVM_SMCCC_FILTER_DENY}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhB: Rejects the guest SMCCC call in-kernel and returns to the guest.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h``KVM_SMCCC_FILTER_FWD_TO_USER``: The guest SMCCC call is forwarded to userspace with an exit reason of ``KVM_EXIT_HYPERCALL``. h]h)}(h``KVM_SMCCC_FILTER_FWD_TO_USER``: The guest SMCCC call is forwarded to userspace with an exit reason of ``KVM_EXIT_HYPERCALL``.h](j)}(h ``KVM_SMCCC_FILTER_FWD_TO_USER``h]hKVM_SMCCC_FILTER_FWD_TO_USER}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhH: The guest SMCCC call is forwarded to userspace with an exit reason of }(hjhhhNhNubj)}(h``KVM_EXIT_HYPERCALL``h]hKVM_EXIT_HYPERCALL}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]bullet-uh1jhhhM}hjubah}(h]h ]h"]h$]h&]uh1jhhhM}hjbhhubh)}(hrThe ``pad`` field is reserved for future use and must be zero. KVM may return ``-EINVAL`` if the field is nonzero.h](hThe }(hjQhhhNhNubj)}(h``pad``h]hpad}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubhC field is reserved for future use and must be zero. KVM may return }(hjQhhhNhNubj)}(h ``-EINVAL``h]h-EINVAL}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh if the field is nonzero.}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjbhhubh)}(hKVM reserves the 'Arm Architecture Calls' range of function IDs and will reject attempts to define a filter for any portion of these ranges:h]hKVM reserves the ‘Arm Architecture Calls’ range of function IDs and will reject attempts to define a filter for any portion of these ranges:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjbhhubj)}(h=========== =============== Start End (inclusive) =========== =============== 0x8000_0000 0x8000_FFFF 0xC000_0000 0xC000_FFFF =========== ===============h]j)}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubhthead)}(hhh]j)}(hhh](j)}(hhh]h)}(hStarth]hStart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hEnd (inclusive)h]hEnd (inclusive)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh](j)}(hhh]h)}(h 0x8000_0000h]h 0x8000_0000}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h 0x8000_FFFFh]h 0x8000_FFFF}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h 0xC000_0000h]h 0xC000_0000}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj.ubah}(h]h ]h"]h$]h&]uh1jhj+ubj)}(hhh]h)}(h 0xC000_FFFFh]h 0xC000_FFFF}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjEubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhhhMhjbhhubeh}(h]%attribute-kvm-arm-vm-smccc-filter-w-oah ]h"]-6.1. attribute: kvm_arm_vm_smccc_filter (w/o)ah$]h&]uh1hhjhhhhhMKubeh}(h]group-kvm-arm-vm-smccc-ctrlah ]h"]6. group: kvm_arm_vm_smccc_ctrlah$]h&]uh1hhhhhhhhMFubeh}(h]generic-vm-interfaceah ]h"]generic vm interfaceah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksjfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourcehnj _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}(j]jaj]jaunameids}(jjjjjjjcj`jjjjjjjjj3jj2j/jjjjjjjjj j jkjhjjj j j j jd ja j j j| jy j j jjj j j j} jj jjjj}u nametypes}(jjjjcjjjjj3j2jjjjj jkjj j jd j j| j jj j jjjuh}(jhjhjjLj`jjjfjjjjDjjjjj/jjj:jj jj jjj jjhjjjnj jj j ja j j jg jy j j j jj j j\ j} j j j jjj}jbu footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages](hsystem_message)}(hhh]h)}(hhh]hBHyperlink target "kvm-s390-vm-cpu-machine-feat" is not referenced.}hj sbah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]levelKtypeINFOsourcehnjlineKhuh1jubj)}(hhh]h)}(hhh]hEHyperlink target "kvm-s390-vm-cpu-machine-subfunc" is not referenced.}hj;sbah}(h]h ]h"]h$]h&]uh1hhj8ubah}(h]h ]h"]h$]h&]levelKtypej5sourcehnjlineKuh1jube transformerN include_log] decorationNhhub.