From: Amit Shah Subject: Re: [PATCH] add sysenter/syscall emulation for 32bit compat mode Date: Wed, 17 Jun 2009 10:32:36 +0530 Message-ID: <20090617050236.GA23051@amit-x200.redhat.com> References: <1245158713-15054-1-git-send-email-andre.przywara@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: avi@redhat.com, kvm@vger.kernel.org, Christoph Egger To: Andre Przywara Return-path: Received: from mx2.redhat.com ([66.187.237.31]:34098 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932551AbZFQFCi (ORCPT ); Wed, 17 Jun 2009 01:02:38 -0400 Content-Disposition: inline In-Reply-To: <1245158713-15054-1-git-send-email-andre.przywara@amd.com> Sender: kvm-owner@vger.kernel.org List-ID: Hi Andre, On (Tue) Jun 16 2009 [15:25:13], Andre Przywara wrote: > 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. Thanks for picking this up. You also had a testcase for this, right? Amit