From: Keir Fraser Subject: Re: [PATCH v2 0/4] XEN: fix vmx exception mistake Date: Wed, 30 May 2012 11:40:22 +0100 Message-ID: References: <1338345347-22433-1-git-send-email-xudong.hao@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1338345347-22433-1-git-send-email-xudong.hao@intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xudong Hao , JBeulich@suse.com Cc: Aravindh Puthiyaparambil , eddie.dong@intel.com, Ian Jackson , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On 30/05/2012 03:35, "Xudong Hao" wrote: > Changes from v1: > - Define new struct hvm_trap to represent information of trap, include > instruction length. > - Renames hvm_inject_exception to hvm_inject_trap. Then define a couple of > wrappers around that function for existing callers, so that their parameter > lists actually *shrink*. I checked in the series, except for the bit that infers trap type from within vmx_inject_trap(). Instead I plumbed through a trap-type field to dom0 toolstack, so the type can be specified by the caller. -- Keir > This series of patches fix the mistake for debug exception(#DB), overflow > exception(#OF) and INT3(#BP), INTn instruction emulation. > > PATCH 3 and PATCH 4 supply an interface for userspace to inject trap. > > > PATCH 1: Define new struct hvm_trap and cleanup vmx exception. > > PATCH 2: Fix the mistake for debug exception(#DB), overflow exception(#OF) and > INT3(#BP), INTn instruction emulation. Add inslen field in struct hvm_trap. > > PATCH 3: Add parameter inslen for hypercall HVMOP_inject_trap, supply > interface > used by passing instruction length from userspace. > > PATCH 4: Add a parameter to represent instruction length in function > xc_hvm_inject_trap(), user should set this value when this > function is called. >