android_kernel_samsung_msm8976/arch/x86
Marcelo Tosatti 73c1d981f0 KVM: x86: move steal time initialization to vcpu entry time
commit 7cae2bedcbd4680b155999655e49c27b9cf020fa upstream.

As reported at https://bugs.launchpad.net/qemu/+bug/1494350,
it is possible to have vcpu->arch.st.last_steal initialized
from a thread other than vcpu thread, say the iothread, via
KVM_SET_MSRS.

Which can cause an overflow later (when subtracting from vcpu threads
sched_info.run_delay).

To avoid that, move steal time accumulation to vcpu entry time,
before copying steal time data to guest.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Reviewed-by: David Matlack <dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-03-16 08:41:36 -07:00
..
boot efi: fix 32bit kernel boot failed problem using efi 2015-08-10 12:20:31 -07:00
configs
crypto crypto: ghash-clmulni: specify context size for ghash async algorithm 2015-09-21 10:00:08 -07:00
ia32 x86/entry/compat: Add missing CLAC to entry_INT80_32 2016-03-09 15:31:54 -08:00
include x86/asm/irq: Stop relying on magic JMP behavior for early_idt_handlers 2016-02-25 11:57:49 -08:00
kernel PM / sleep / x86: Fix crash on graph trace through x86 suspend 2016-03-09 15:31:54 -08:00
kvm KVM: x86: move steal time initialization to vcpu entry time 2016-03-16 08:41:36 -07:00
lguest Merge branch 'x86-paravirt-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2013-04-30 08:41:21 -07:00
lib x86, smap: Handle csum_partial_copy_*_user() 2013-09-26 17:18:13 -07:00
math-emu
mm x86/mm: Set NX on gap between __ex_table and rodata 2015-10-22 14:37:49 -07:00
net x86: bpf_jit: fix compilation of large bpf programs 2015-10-01 12:07:34 +02:00
oprofile
pci x86/PCI: Use host bridge _CRS info on Foxconn K8M890-8237A 2015-07-10 10:40:22 -07:00
platform efi: Disable interrupts around EFI calls, not in the epilog/prolog calls 2016-03-03 15:06:19 -08:00
power nosave: consolidate __nosave_{begin,end} in <asm/sections.h> 2015-05-06 21:56:28 +02:00
realmode x86, build: Pass in additional -mno-mmx, -mno-sse options 2013-12-20 07:45:10 -08:00
syscalls x86, x32: Use compat shims for io_{setup,submit} 2014-06-30 20:09:45 -07:00
tools x86, relocs: Move __vvar_page from S_ABS to S_REL 2013-06-12 15:14:57 -07:00
um x86, um: actually mark system call tables readonly 2015-01-27 07:52:33 -08:00
vdso x86/vdso: Fix the build on GCC5 2015-03-26 15:01:00 +01:00
video
xen x86/xen: don't reset vcpu_info on a cancelled suspend 2016-01-28 21:49:28 -08:00
.gitignore
Kbuild
Kconfig config: Enable NEED_DMA_MAP_STATE by default when SWIOTLB is selected 2015-07-03 19:48:08 -07:00
Kconfig.cpu
Kconfig.debug Kconfig: consolidate CONFIG_DEBUG_STRICT_USER_COPY_CHECKS 2013-04-30 17:04:09 -07:00
Makefile x86, build: Pass in additional -mno-mmx, -mno-sse options 2013-12-20 07:45:10 -08:00
Makefile.um
Makefile_32.cpu