From: "Jan Beulich" Subject: Re: [PATCH for-4.5 v6 04/16] xen: Add vmware_port support Date: Wed, 24 Sep 2014 09:28:39 +0100 Message-ID: <54229CD70200007800038116@mail.emea.novell.com> References: <1411236447-7435-1-git-send-email-dslutz@verizon.com> <1411236447-7435-5-git-send-email-dslutz@verizon.com> <5421AB09.6040402@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5421AB09.6040402@oracle.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: xen-devel@lists.xen.org, Boris Ostrovsky , Don Slutz Cc: Jun Nakajima , Kevin Tian , Keir Fraser , Ian Campbell , Stefano Stabellini , George Dunlap , Andrew Cooper , Ian Jackson , Tim Deegan , Eddie Dong , Aravind Gopalakrishnan , Suravee Suthikulpanit List-Id: xen-devel@lists.xenproject.org >>> On 23.09.14 at 19:16, wrote: > On 09/20/2014 02:07 PM, Don Slutz wrote: >> @@ -2064,6 +2065,42 @@ svm_vmexit_do_vmsave(struct vmcb_struct *vmcb, >> return; >> } >> >> +static void svm_vmexit_gp_intercept(struct cpu_user_regs *regs, >> + struct vcpu *v) >> +{ >> + struct vmcb_struct *vmcb = v->arch.hvm_svm.vmcb; >> + /* >> + * Just use 15 for the instruction length; vmport_gp_check will >> + * adjust it. This is because >> + * __get_instruction_length_from_list() has issues, and may >> + * require a double read of the instruction bytes. At some >> + * point a new routine could be added that is based on the code >> + * in vmport_gp_check with extensions to make it more general. >> + * Since that routine is the only user of this code this can be >> + * done later. >> + */ >> + unsigned long inst_len = 15; > > Can you add a comment describing why you chose 15? I think this much of architecture knowledge can be assumed as given. Jan