From: Takuya Yoshikawa Subject: Re: [PATCH 2/5] KVM: x86 emulator: Use single stage decoding for PUSH/POP XS instructions Date: Wed, 23 Mar 2011 00:45:29 +0900 Message-ID: <20110323004529.0d0d264f.takuya.yoshikawa@gmail.com> References: <20110314001524.f35e8a3f.takuya.yoshikawa@gmail.com> <20110314001907.95b806ed.takuya.yoshikawa@gmail.com> <4D889E0F.3090007@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: mtosatti@redhat.com, kvm@vger.kernel.org, yoshikawa.takuya@oss.ntt.co.jp, gleb@redhat.com To: Avi Kivity Return-path: Received: from mail-wy0-f174.google.com ([74.125.82.174]:36001 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751435Ab1CVPpg (ORCPT ); Tue, 22 Mar 2011 11:45:36 -0400 Received: by wya21 with SMTP id 21so6822741wya.19 for ; Tue, 22 Mar 2011 08:45:35 -0700 (PDT) In-Reply-To: <4D889E0F.3090007@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, 22 Mar 2011 15:03:11 +0200 Avi Kivity wrote: > > +static int em_push_es(struct x86_emulate_ctxt *ctxt) > > +{ > > + emulate_push_sreg(ctxt, ctxt->ops, VCPU_SREG_ES); > > + return X86EMUL_CONTINUE; > > +} > > I thought of adding generic sreg decoding, so we can use > em_push()/em_pop() here. It can be done later, though, and really > there's no huge advantage here. > Then, I will drop this one from the next version. Takuya