From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: Cross vendor migration ideas Date: Wed, 12 Nov 2008 21:06:48 +0100 Message-ID: <87vdusd7zb.fsf@basil.nowhere.org> References: <45680888-AF1B-42B6-B0A7-EE635F44E2A2@suse.de> <491AFA36.4040909@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Alexander Graf , "kvm@vger.kernel.org list" , Amit Shah , Avi Kivity , Elsie Wahlig , "Serebrin, Benjamin (Calendar)" , "Nakajima, Jun" To: Anthony Liguori Return-path: Received: from one.firstfloor.org ([213.235.205.2]:44038 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752811AbYKLTtW (ORCPT ); Wed, 12 Nov 2008 14:49:22 -0500 In-Reply-To: <491AFA36.4040909@codemonkey.ws> (Anthony Liguori's message of "Wed, 12 Nov 2008 09:45:58 -0600") Sender: kvm-owner@vger.kernel.org List-ID: Anthony Liguori writes: > > I wonder if patching is an option? Not by patching instructions because SYSENTER and SYSCALL have completely different semantics (e.g. regarding register use). That is why the entry paths are different on both sides. In theory you could switch the entry paths around, but that would be highly kernel version specific. One easy way is to just clear the SEP and SYSCALL32 flags in CPUID, then int 0x80 will be always used. Of course it'll cost you in performance significantly. I wouldn't recommend to make it default. -Andi -- ak@linux.intel.com