From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joerg Roedel Subject: Re: [RFC PATCH] emulator: Fix task switch into/out of VM86 Date: Tue, 10 Jan 2012 18:51:59 +0100 Message-ID: <20120110175159.GF7166@amd.com> References: <1326139810-5448-1-git-send-email-kwolf@redhat.com> <20120110090122.GI2167@redhat.com> <4F0C04A6.1080705@redhat.com> <4F0C201E.3040206@redhat.com> <20120110113047.GM2167@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: Kevin Wolf , To: Gleb Natapov Return-path: Received: from tx2ehsobe002.messaging.microsoft.com ([65.55.88.12]:48007 "EHLO TX2EHSOBE003.bigfish.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932456Ab2AJRwO (ORCPT ); Tue, 10 Jan 2012 12:52:14 -0500 Content-Disposition: inline In-Reply-To: <20120110113047.GM2167@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Jan 10, 2012 at 01:30:47PM +0200, Gleb Natapov wrote: > On Tue, Jan 10, 2012 at 12:25:18PM +0100, Kevin Wolf wrote: > > Did that now, and it looks like exit_int_info is always 0 during the > > task switch intercept for a task gate in the IDT. So special-casing VM86 > > won't help, I'm afraid. > > > Joerg, do you know how can we check that task switch was cause by an > exception triggering task gate if exit_int_info is not provided during > intercept (short of decoding instruction that caused intercept to see if > it's a call to a gate, which is racy) ? Hmm, havn't found a solution yet. But I will check further and let you know if I find out something. Joerg -- AMD Operating System Research Center Advanced Micro Devices GmbH Einsteinring 24 85609 Dornach General Managers: Alberto Bozzo, Andrew Bowd Registration: Dornach, Landkr. Muenchen; Registerger. Muenchen, HRB Nr. 43632