From: Marcelo Tosatti Subject: Re: [PATCH] x86 emulator: Add IRET instruction Date: Wed, 28 Jul 2010 14:15:24 -0300 Message-ID: <20100728171524.GA26822@amt.cnet> References: <1280309920-13539-1-git-send-email-m.gamal005@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: avi@redhat.com, kvm@vger.kernel.org To: Mohammed Gamal Return-path: Received: from mx1.redhat.com ([209.132.183.28]:29704 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751894Ab0G1RQF (ORCPT ); Wed, 28 Jul 2010 13:16:05 -0400 Content-Disposition: inline In-Reply-To: <1280309920-13539-1-git-send-email-m.gamal005@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Jul 28, 2010 at 12:38:40PM +0300, Mohammed Gamal wrote: > Ths patch adds IRET instruction (opcode 0xcf). > Currently, only IRET in real mode is emulated. Protected mode support is to be added later if needed. > > Signed-off-by: Mohammed Gamal > > ---- > Changes from v2: > - Delay committing cs until all pop operation are ensured to be successful > - Corrected handling for eflags > --- > arch/x86/kvm/emulate.c | 81 ++++++++++++++++++++++++++++++++++++++++++++++++ > 1 files changed, 81 insertions(+), 0 deletions(-) Applied, thanks.