]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Assertions to check no overrun in MSR lists
authorNadav Amit <namit@cs.technion.ac.il>
Thu, 24 Jul 2014 12:06:56 +0000 (15:06 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Jul 2014 12:16:57 +0000 (14:16 +0200)
commit67c6efa6c64a8f4d9b83055a3aa301065f5c29c0
tree7a4b1a24036413133baadde140475aab6ac693d0
parent0fcf7fdca6c8cdb7f94f1a5b24ff3b76460241ac
KVM: x86: Assertions to check no overrun in MSR lists

Currently there is no check whether shared MSRs list overrun the allocated size
which can results in bugs. In addition there is no check that vmx->guest_msrs
has sufficient space to accommodate all the VMX msrs.  This patch adds the
assertions.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c