函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\kvm.c Create Date:2022-07-27 09:43:50
Last Modify:2020-03-16 21:33:46 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:kvm_guest_cpu_init

函数原型:static void kvm_guest_cpu_init(void)

返回类型:void

参数:

312  如果kvm_para_has_feature(KVM_FEATURE_ASYNC_PF)且kvmapf
313  pa等于slow_virt_to_phys(this_cpu_ptr( & apf_reason))
318  pa或等于KVM_ASYNC_PF_ENABLED
320  如果kvm_para_has_feature(KVM_FEATURE_ASYNC_PF_VMEXIT)则pa或等于KVM_ASYNC_PF_DELIVERY_AS_PF_VMEXIT
323  wrmsrl(MSR_KVM_ASYNC_PF_EN, pa)
324  __this_cpu_write(enabled, 1)
325  printk(formational "KVM setup async PF for cpu %d\n", 当前cpu ID())
329  如果kvm_para_has_feature(KVM_FEATURE_PV_EOI)则
332  BUILD_BUG_ON - break compile if a condition is true(__alignof__(kvm_apic_eoi) < 4)
333  __this_cpu_write(kvm_apic_eoi, 0)
334  pa等于slow_virt_to_phys(this_cpu_ptr( & kvm_apic_eoi))按位或KVM_MSR_ENABLED
336  wrmsrl(MSR_KVM_PV_EOI_EN, pa)
339  如果has_steal_clockkvm_register_steal_time()
调用者
名称描述
kvm_guest_init