From: Nadav Amit Date: Mon, 30 Mar 2015 12:39:21 +0000 (+0300) Subject: KVM: x86: BSF and BSR emulation change register unnecassarily X-Git-Tag: omap-for-v4.1/fixes-rc1~202^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=900efe200e317649aecbeaa55619a4fc3adb2251;p=pandora-kernel.git KVM: x86: BSF and BSR emulation change register unnecassarily If the source of BSF and BSR is zero, the destination register should not change. That is how real hardware behaves. If we set the destination even with the same value that we had before, we may clear bits [63:32] unnecassarily. Signed-off-by: Nadav Amit Message-Id: <1427719163-5429-4-git-send-email-namit@cs.technion.ac.il> Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed