[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [PATCH 1/5] x86/hvm: change EOI exit bitmap helper parameter


  • To: Roger Pau Monne <roger.pau@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
  • Date: Fri, 14 Aug 2020 05:56:01 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aICuG8feeZDQm3/J03UBMKQuEf4XxnE2rrj+DhovQD0=; b=lWMzeL1daPBRWgXvDiMs/ZdnacFn4PJyA9TTxrsRK1vk3Rjkbt9IaMV/oxV5CH2m9JnMFo1t8mHL/BaVvIJWdL8BTwD3UhoBfEJNh9e9SPobdeGbUwJGPaE8ozrXo06kt4vyE5WEL5ymnUVhheKH7GFfQpFSnVCZZ/eTxe4Yy1C5Hb5ne+1EWsv7ZxEXxWhlh4puw8rluklYeonVH7FYmmktFcgUpzvbq3xVhuH3IjOhnQynJMPws+iGs1dJ9ZTfZj/+d+7OLTD/fmd2hdl5hcNNsnarS+WHtZxMLouUKEh1wsv3BbbwMcMofz5UNOvl5Gj00+recOUC6iptB0tV5A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jYe+5myFEKJr+VqMz9mwifOt0zC+31gduTOeSpMOxPPjZ7gzkzRhIWuB/aeeb048uIXuXvEJxIThXAdtIWeiDTaSyXzxXy4/XTlKdXUhPsf+u08XemBc/AOX/X/ttpp1ycVwrmAb3xkxeGp7j4pqxCXvuQx9qWZMgML+V1LHjbkXdMSkctndS4o/1Qr3wghTtyA1tU/87nXQkMWc115pI3HywFq8U9m/52tbK041DJREp5PgNz9PXgNt86hiZwnuUIr4K1/yVQ0z57TX1Bau9tbGBCJOLKCnimBiSXNCdrG+R060chTtKV/yR04s4SnylH9eX2vNBs84iZr+SqLWtw==
  • Authentication-results: citrix.com; dkim=none (message not signed) header.d=none;citrix.com; dmarc=none action=none header.from=intel.com;
  • Cc: "Nakajima, Jun" <jun.nakajima@xxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Fri, 14 Aug 2020 05:56:14 +0000
  • Dlp-product: dlpe-windows
  • Dlp-reaction: no-action
  • Dlp-version: 11.5.1.3
  • Ironport-sdr: cSlacmw4raOYB+4dr8M5suy7zitzpPBAZU/8XriOThLaJCnH5V/dZmOpPYN0xP8HZFjFw39wjG MfbuAP5KNctQ==
  • Ironport-sdr: xuY6dUKfQzhQdDoq/JFbr7pLeQUKSGLXvEm5CbDhfxR0fFZAx4fPru5L+m5PnFT6Ib9tn/luCc ORJ8EcbXskHg==
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHWcKbWwWOIDQI7HU2Ykn1wPUczEak3HccA
  • Thread-topic: [PATCH 1/5] x86/hvm: change EOI exit bitmap helper parameter

> From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
> Sent: Wednesday, August 12, 2020 8:47 PM
arameter
> 
> Change the last parameter of the update_eoi_exit_bitmap helper to be a
> set/clear boolean instead of a triggering field. This is already
> inline with how the function is implemented, and will allow deciding
> whether an exit is required by the higher layers that call into
> update_eoi_exit_bitmap. Note that the current behavior is not changed
> by this patch.
> 
> No functional change intended.
> 
> Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>

Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>

> ---
>  xen/arch/x86/hvm/vmx/vmx.c    | 4 ++--
>  xen/include/asm-x86/hvm/hvm.h | 2 +-
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c
> index eb54aadfba..1c04a7e3fc 100644
> --- a/xen/arch/x86/hvm/vmx/vmx.c
> +++ b/xen/arch/x86/hvm/vmx/vmx.c
> @@ -1885,9 +1885,9 @@ static void vmx_set_info_guest(struct vcpu *v)
>      vmx_vmcs_exit(v);
>  }
> 
> -static void vmx_update_eoi_exit_bitmap(struct vcpu *v, u8 vector, u8 trig)
> +static void vmx_update_eoi_exit_bitmap(struct vcpu *v, uint8_t vector, bool
> set)
>  {
> -    if ( trig )
> +    if ( set )
>          vmx_set_eoi_exit_bitmap(v, vector);
>      else
>          vmx_clear_eoi_exit_bitmap(v, vector);
> diff --git a/xen/include/asm-x86/hvm/hvm.h b/xen/include/asm-
> x86/hvm/hvm.h
> index 1eb377dd82..be0d8b0a4d 100644
> --- a/xen/include/asm-x86/hvm/hvm.h
> +++ b/xen/include/asm-x86/hvm/hvm.h
> @@ -192,7 +192,7 @@ struct hvm_function_table {
>      void (*nhvm_domain_relinquish_resources)(struct domain *d);
> 
>      /* Virtual interrupt delivery */
> -    void (*update_eoi_exit_bitmap)(struct vcpu *v, u8 vector, u8 trig);
> +    void (*update_eoi_exit_bitmap)(struct vcpu *v, uint8_t vector, bool set);
>      void (*process_isr)(int isr, struct vcpu *v);
>      void (*deliver_posted_intr)(struct vcpu *v, u8 vector);
>      void (*sync_pir_to_irr)(struct vcpu *v);
> --
> 2.28.0


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.