Notes about virtual IPI fastpath and virtual TSC-Deadline timer fastpath
本文参考的内核版本为v6.0。
Motivation
virtual IPI fastpath
1 | vmx_vcpu_run |
1 | /* |
virtual TSC-Deadline timer fastpath
KVM: X86: TSCDEADLINE MSR emulation fastpath1
2
3
4
5vmx_vcpu_run
└── vmx_exit_handlers_fastpath
└── handle_fastpath_set_msr_irqoff
└── handle_fastpath_set_tscdeadline
└── kvm_set_lapic_tscdeadline_msr
KVM: VMX: Handle preemption timer fastpath
该patch优化的是使用preemption timer模拟lapic timer的case。1
2
3vmx_vcpu_run
└── vmx_exit_handlers_fastpath
└── handle_fastpath_preemption_timer
参考资料: