]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: fix KVM_SET_XCRS loop
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Oct 2013 14:50:47 +0000 (16:50 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 31 Oct 2013 10:31:19 +0000 (11:31 +0100)
commit36d9f72cd1a830293d16696a32ed43f31c282847
tree2c044ca0265cded83f7e1ef0958a55df31f08867
parent5eea16891fc6a3ef6b1fa3dc6491056938766900
KVM: x86: fix KVM_SET_XCRS loop

The loop was always using 0 as the index.  This means that
any rubbish after the first element of the array went undetected.
It seems reasonable to assume that no KVM userspace did that.

Reviewed-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c