From: =?ISO-8859-1?B?QWxw4XIgVPZy9msg?= Subject: Differences on Intel and Amd Date: Mon, 21 Sep 2009 13:05:26 +0300 Message-ID: <8d3051340909210305h5ddcfdc4xbb8d87b3f6bd3055@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE To: kvm@vger.kernel.org Return-path: Received: from mail-bw0-f210.google.com ([209.85.218.210]:50426 "EHLO mail-bw0-f210.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755889AbZIUKFX convert rfc822-to-8bit (ORCPT ); Mon, 21 Sep 2009 06:05:23 -0400 Received: by bwz6 with SMTP id 6so1816612bwz.37 for ; Mon, 21 Sep 2009 03:05:26 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: Hi all, Sorry if this issues, or parts of this issue have been covered in separate threads. We=A0 have an executable, of unknown origin, that is very likely to be malicious.=A0 We use KVM ( version 78) for sand-boxing the execution of such software. Each time the Virtual Machine is started from=A0 a snapshot (with loadv= m ), an executable is copied from a share and launched. Now the problem. We have both AMD and Intel=A0 machines. A snapshot taken on Intel doesn't load on AMD and vice versa, so The snapshots from which the VMs are started are different. This executable, runs on the AMD machines, but not on Intel. We concluded that the executable uses an undocumented Windows API function, and relies on a side-effect (a value placed in a register). The value of this register differs from AMD to Intel. That is why it shortly and silently terminates if ran on Intel. (by ran on Intel and ran on AMD i mean of course a KVM VM on those platforms) The questions are: =A0Can a process within the VM find out the native processor type? =A0Or can Windows XP find out the original processor type and behave di= fferently? =A0Does this behavior make sense to you? =A0Is it possible that the difference is not due to hardware differences, but because of different snapshots, and the events that occur before the snapshots, are different? =A0We need to have consistent and repeatable results with thease sand-boxed tests, that was what triggered the investigation in the first place. -- Alpar Torok