mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
e56a7a28e2
ppc and s390 offer the possibility to track process times precisely by looking at cpu timer on every context switch, irq, softirq etc. We can use that infrastructure as well for guest time accounting. We need to account the used time before we change the state. This patch adds a call to account_system_vtime to kvm_guest_enter and kvm_guest exit. If CONFIG_VIRT_CPU_ACCOUNTING is not set, account_system_vtime is defined in hardirq.h as an empty function, which means this patch does not change the behaviour on other platforms. I compile tested this patch on x86 and function tested the patch on s390. Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Avi Kivity <avi@qumranet.com> |
||
---|---|---|
.. | ||
i8259.c | ||
ioapic.c | ||
irq.c | ||
irq.h | ||
Kconfig | ||
kvm.h | ||
kvm_main.c | ||
kvm_svm.h | ||
lapic.c | ||
Makefile | ||
mmu.c | ||
paging_tmpl.h | ||
segment_descriptor.h | ||
svm.c | ||
svm.h | ||
vmx.c | ||
vmx.h | ||
x86.c | ||
x86.h | ||
x86_emulate.c | ||
x86_emulate.h |