From: "Jan Beulich" Subject: Re: [PATCH RFC v12 13/21] pvh: Support read_segment_register for PVH Date: Wed, 18 Sep 2013 15:56:34 +0100 Message-ID: <5239DB4202000078000F4716@nat28.tlf.novell.com> References: <1379089521-25720-1-git-send-email-george.dunlap@eu.citrix.com> <1379089521-25720-14-git-send-email-george.dunlap@eu.citrix.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 1VMJBG-0003KT-Sp for xen-devel@lists.xenproject.org; Wed, 18 Sep 2013 14:56:38 +0000 In-Reply-To: <1379089521-25720-14-git-send-email-george.dunlap@eu.citrix.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: George Dunlap Cc: xen-devel , Keir Fraser , Tim Deegan List-Id: xen-devel@lists.xenproject.org >>> On 13.09.13 at 18:25, George Dunlap wrote: > This will be necessary to do PV-style emulated operations for PVH guests. > > Signed-off-by: George Dunlap > Signed-off-by: Mukesh Rathor Reviewed-by: Jan Beulich provided you ... > @@ -1566,6 +1605,7 @@ static struct hvm_function_table __initdata vmx_function_table = { > .sync_pir_to_irr = vmx_sync_pir_to_irr, > .handle_eoi = vmx_handle_eoi, > .nhvm_hap_walk_L1_p2m = nvmx_hap_walk_L1_p2m, > + .read_selector = vmx_read_selector, > }; ... put this and ... > --- a/xen/include/asm-x86/hvm/hvm.h > +++ b/xen/include/asm-x86/hvm/hvm.h > @@ -193,6 +193,7 @@ struct hvm_function_table { > paddr_t *L1_gpa, unsigned int *page_order, > uint8_t *p2m_acc, bool_t access_r, > bool_t access_w, bool_t access_x); > + u16 (*read_selector)(struct vcpu *v, enum x86_segment seg); > }; this alongside the other segment register related hooks. Jan