android_kernel_xiaomi_sm8350/arch/x86/kvm
Marcelo Tosatti 622395a9e6 KVM: only abort guest entry if timer count goes from 0->1
Only abort guest entry if the timer count went from 0->1, since for 1->2
or larger the bit will either be set already or a timer irq will have
been injected.

Using atomic_inc_and_test() for it also introduces an SMP barrier
to the LAPIC version (thought it was unecessary because of timer
migration, but guest can be scheduled to a different pCPU between exit
and kvm_vcpu_block(), so there is the possibility for a race).

Noticed by Avi.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
2008-07-20 12:42:32 +03:00
..
i8254.c KVM: only abort guest entry if timer count goes from 0->1 2008-07-20 12:42:32 +03:00
i8254.h KVM: Add reset support for in kernel PIT 2008-04-27 12:00:23 +03:00
i8259.c KVM: kvm_io_device: extend in_range() to manage len and write attribute 2008-07-20 12:42:30 +03:00
irq.c KVM: migrate PIT timer 2008-06-06 21:25:51 +03:00
irq.h KVM: migrate PIT timer 2008-06-06 21:25:51 +03:00
Kconfig KVM: Add kvm trace userspace interface 2008-04-27 12:01:22 +03:00
kvm_svm.h KVM: SVM: allocate the MSR permission map per VCPU 2008-04-27 11:53:21 +03:00
lapic.c KVM: only abort guest entry if timer count goes from 0->1 2008-07-20 12:42:32 +03:00
lapic.h KVM: add statics were possible, function definition in lapic.h 2008-07-20 12:40:46 +03:00
Makefile KVM: Add coalesced MMIO support (x86 part) 2008-07-20 12:42:31 +03:00
mmu.c KVM: MMU: Avoid page prefetch on SVM 2008-07-20 12:42:30 +03:00
mmu.h KVM: MMU: Fix false flooding when a pte points to page table 2008-07-20 12:40:50 +03:00
paging_tmpl.h KVM: MMU: Optimize prefetch_page() 2008-07-20 12:42:28 +03:00
svm.c KVM: Remove decache_vcpus_on_cpu() and related callbacks 2008-07-20 12:42:25 +03:00
svm.h KVM: x86: hardware task switching support 2008-04-27 12:00:39 +03:00
tss.h KVM: x86: hardware task switching support 2008-04-27 12:00:39 +03:00
vmx.c KVM: VMX: Enable NMI with in-kernel irqchip 2008-07-20 12:42:26 +03:00
vmx.h KVM: VMX: Enable NMI with in-kernel irqchip 2008-07-20 12:42:26 +03:00
x86_emulate.c KVM: x86 emulator: implement 'push imm' (opcode 0x68) 2008-07-20 12:42:29 +03:00
x86.c KVM: Add coalesced MMIO support (x86 part) 2008-07-20 12:42:31 +03:00