在Linux中,我正在猜测猜测VM并加载另一个Linux实例。VM通过KVM / LIBVIRT / QEMU生成。Guest VM被视为主机内核的过程。让我们出于某种原因,Guest VM QEMU进程不会在某个时候计划。VM中的内核如何维护时间?让我们说我在Guest VM中的应用程序中有一个计时器。如果Guest VM QEMU进程本身没有计划会影响我的计时器到期?

有帮助吗?

解决方案

Some virtualization solutions have the VM clock(s) hooked to some host clock(s), so that the VM clock does not tick independently. In other cases, no such thing may occur (relying on an emulated interrupt clock for example), which then does lead to clock skew. The wall clock skew you can attempt to combat with ntpd, but for things like CLOCK_MONOTONIC, you will probably have to live with it.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top