From: Bandan Das Date: Thu, 11 Jun 2015 06:05:33 +0000 (-0400) Subject: KVM: nSVM: Check for NRIPS support before updating control field X-Git-Tag: omap-for-v4.2/fixes-rc1^2~138^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f104765b4f81fd74d69e0eb161e89096deade2db;p=pandora-kernel.git KVM: nSVM: Check for NRIPS support before updating control field If hardware doesn't support DecodeAssist - a feature that provides more information about the intercept in the VMCB, KVM decodes the instruction and then updates the next_rip vmcb control field. However, NRIP support itself depends on cpuid Fn8000_000A_EDX[NRIPS]. Since skip_emulated_instruction() doesn't verify nrip support before accepting control.next_rip as valid, avoid writing this field if support isn't present. Signed-off-by: Bandan Das Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed