From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCPsO-0000vc-Hr for qemu-devel@nongnu.org; Tue, 07 Jul 2015 06:13:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCPsJ-0000PH-FY for qemu-devel@nongnu.org; Tue, 07 Jul 2015 06:13:20 -0400 Received: from mail.ispras.ru ([83.149.199.45]:54112) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCPsJ-0000OY-7v for qemu-devel@nongnu.org; Tue, 07 Jul 2015 06:13:15 -0400 From: "Pavel Dovgaluk" References: <20150706082535.11980.88013.stgit@PASHA-ISP> <20150706082622.11980.74680.stgit@PASHA-ISP> <559A70EA.2040109@twiddle.net> In-Reply-To: <559A70EA.2040109@twiddle.net> Date: Tue, 7 Jul 2015 13:13:13 +0300 Message-ID: <001001d0b89d$890aff80$9b20fe80$@Dovgaluk@ispras.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Language: ru Subject: Re: [Qemu-devel] [PATCH v5 08/11] target-i386: exception handling for seg_helper functions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: 'Richard Henderson' , qemu-devel@nongnu.org Cc: pbonzini@redhat.com, leon.alrae@imgtec.com, agraf@suse.de, aurelien@aurel32.net > From: Richard Henderson [mailto:rth7680@gmail.com] On Behalf Of Richard Henderson > On 07/06/2015 09:26 AM, Pavel Dovgalyuk wrote: > > This patch fixes exception handling for seg_helper functions. > > > > Signed-off-by: Pavel Dovgalyuk > > > No, you don't want to discriminately change every call. That was my original > point about not needing to change seg_helper.c or smm_helper.c. > > Further, any such changes would go along with the changes in translate.c to > remove the state saving there. > > I would only change those that are "normal" memory operations, like fp loads > etc. The segmentation changes are rare. The task state helpers require state > saving anyway, so requiring a TCG search is a pessimization. I can refine the patch, but the most of the changes should remain. E.g., lcall helpers can cause an exception or not. TB ends in both cases. But icount and PC values in these two situations should be different. And lcall helpers use most of the seg functions I changed in the patch. Pavel Dovgalyuk