From: Andre Przywara Subject: [PATCH 0/6] add sysenter/syscall emulation for 32bit compat mode Date: Wed, 17 Jun 2009 15:50:30 +0200 Message-ID: <1245246636-30760-1-git-send-email-andre.przywara@amd.com> Mime-Version: 1.0 Content-Type: text/plain Cc: kvm@vger.kernel.org, Amit Shah , Christoph Egger , Andre Przywara To: avi@redhat.com Return-path: Received: from outbound-dub.frontbridge.com ([213.199.154.16]:12180 "EHLO IE1EHSOBE001.bigfish.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755150AbZFQNrT (ORCPT ); Wed, 17 Jun 2009 09:47:19 -0400 Sender: kvm-owner@vger.kernel.org List-ID: sysenter/sysexit are not supported on AMD's 32bit compat mode, whereas syscall is not supported on Intel's 32bit compat mode. To allow cross vendor migration we emulate the missing instructions by setting up the processor state accordingly. The sysenter code was originally sketched by Amit Shah, it was completed, debugged, syscall added and made-to-work by Christoph Egger and polished up by Andre Przywara. Please note that sysret does not need to be emulated, because it will be exectued in 64bit mode and returning to 32bit compat mode works on Intel. This has been tested with GETPIDs in a tight loop in compat mode on both Intel and AMD boxes. Additionally a 32-bit userland was booted under a 64-bit kernel and then cross-vendor migrated. Please apply or comment ;-) Regards, Andre. Signed-off-by: Amit Shah Signed-off-by: Christoph Egger Signed-off-by: Andre Przywara