aha/drivers/kvm
Christian Borntraeger e56a7a28e2 KVM: Use virtual cpu accounting if available for guest times.
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>
2008-01-30 17:52:54 +02:00
..
i8259.c KVM: Add get/set irqchip ioctls for in-kernel PIC live migration support 2007-10-13 10:18:25 +02:00
ioapic.c KVM: Add some \n in ioapic_debug() 2008-01-30 17:52:53 +02:00
irq.c KVM: deliver PIC interrupt only to vcpu0 2007-10-13 10:18:26 +02:00
irq.h KVM: Add kvm_free_lapic() to pair with kvm_create_lapic() 2008-01-30 17:52:50 +02:00
Kconfig Consolidate host virtualization support under Virtualization menu 2007-10-23 15:49:47 +10:00
kvm.h KVM: Use virtual cpu accounting if available for guest times. 2008-01-30 17:52:54 +02:00
kvm_main.c KVM: MMU: Partial swapping of guest memory 2008-01-30 17:52:54 +02:00
kvm_svm.h KVM: Dynamically allocate vcpus 2007-10-13 10:18:20 +02:00
lapic.c KVM: apic round robin cleanup 2008-01-30 17:52:52 +02:00
Makefile KVM: Move x86 msr handling to new files x86.[ch] 2008-01-30 17:52:51 +02:00
mmu.c KVM: MMU: Partial swapping of guest memory 2008-01-30 17:52:54 +02:00
paging_tmpl.h KVM: MMU: Partial swapping of guest memory 2008-01-30 17:52:54 +02:00
segment_descriptor.h [PATCH] kvm: userspace interface 2006-12-10 09:57:22 -08:00
svm.c KVM: Move apic timer interrupt backlog processing to common code 2008-01-30 17:52:53 +02:00
svm.h KVM: CodingStyle cleanup 2008-01-30 17:52:50 +02:00
vmx.c KVM: Move apic timer interrupt backlog processing to common code 2008-01-30 17:52:53 +02:00
vmx.h KVM: CodingStyle cleanup 2008-01-30 17:52:50 +02:00
x86.c KVM: Portability: split kvm_vcpu_ioctl 2008-01-30 17:52:52 +02:00
x86.h KVM: Move x86 msr handling to new files x86.[ch] 2008-01-30 17:52:51 +02:00
x86_emulate.c KVM: x86 emulator: cmc, clc, cli, sti 2008-01-30 17:52:53 +02:00
x86_emulate.h KVM: x86 emulator: Remove no_wb, use dst.type = OP_NONE instead 2008-01-30 17:52:49 +02:00