From: "Jan Beulich" Subject: Re: [PATCH RFC V8 1/5] xen: Emulate with no writes Date: Wed, 27 Aug 2014 16:40:20 +0100 Message-ID: <53FE1804020000780002E2E1@mail.emea.novell.com> References: <1409148101-11703-1-git-send-email-rcojocaru@bitdefender.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XMfKh-0008Vm-U4 for xen-devel@lists.xenproject.org; Wed, 27 Aug 2014 15:40:24 +0000 In-Reply-To: <1409148101-11703-1-git-send-email-rcojocaru@bitdefender.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Razvan Cojocaru Cc: kevin.tian@intel.com, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com, andrew.cooper3@citrix.com, eddie.dong@intel.com, tim@xen.org, jun.nakajima@intel.com, xen-devel@lists.xenproject.org, ian.jackson@eu.citrix.com List-Id: xen-devel@lists.xenproject.org >>> On 27.08.14 at 16:01, wrote: > Added support for emulating an instruction with no memory writes. > Additionally, introduced hvm_emulate_one_full(), which inspects > possible return values from the hvm_emulate_one() functions > (EXCEPTION, UNHANDLEABLE) and acts on them. > > Changes since V1: > - Removed the Linux code that computes the length of an instruction. > - Unused function parameters are no longer marked. > - Refactored the code to eliminate redundancy. > - Made the exception passed on to the guest by hvm_emulate_one_full() > configurable. > > Changes since V2: > - Renamed hvmemul_write_dummy() to hvmemul_write_discard(). > - Fixed a comment (Xen coding style rules). > - Renamed hvm_emulate_one_with_ops() to _hvm_emulate_one(). > - Changed stack variable hvm_emulate_ops_no_write into a static const. > - Modified struct hvm_emulate_ctxt ctx initialization syntax. > - Renamed unhandleable_trapnr to trapnr and unhandleable_errcode > to errcode. > - Changed errcode's type to unsigned int. > - Removed hvm_emulate_one() loop that went on until it returned > something other than X86EMUL_RETRY (to prevent potential > blocking against the time calibration rendezvous). > > Changes since V3: > - The rep_ins, rep_movs and cmpxchg handlers are > now also inactive. > > Changes since V4: > - Also discarding IO reads (dummy read_io handler). > > Changes since V5: > - Added discard versions of write_io and rep_outs. > > Changes since V6: > - Added discard versions of write_msr and wbinvd. > - Now calling hvm_emulate_writeback() for the X86EMUL_UNHANDLEABLE > case as well. > > Changes since V7: > - Renamed hvm_emulate_one_full() to hvm_mem_event_emulate_one(). > - Added a comment explaining how X86EMUL_RETRY is being treated. > > Signed-off-by: Razvan Cojocaru Acked-by: Jan Beulich But btw., please get used to putting the version history after the first --- separator. And commonly such history is more useful if sorted in reverse chronological order. Jan