lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.11.1509182043280.3951@nanos>
Date:	Fri, 18 Sep 2015 20:43:36 +0200 (CEST)
From:	Thomas Gleixner <tglx@...utronix.de>
To:	Paolo Bonzini <pbonzini@...hat.com>
cc:	linux-kernel@...r.kernel.org, kvm@...r.kernel.org,
	Ingo Molnar <mingo@...hat.com>,
	"H. Peter Anvin" <hpa@...or.com>,
	"maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" <x86@...nel.org>,
	Jiang Liu <jiang.liu@...ux.intel.com>,
	Joerg Roedel <joro@...tes.org>, Feng Wu <feng.wu@...el.com>
Subject: Re: [PATCH] irq_remapping: move structs outside #ifdef



On Fri, 18 Sep 2015, Paolo Bonzini wrote:

> This is friendlier to clients of the code, who are going to prepare
> vcpu_data structs unconditionally, even if CONFIG_IRQ_REMAP is not
> defined.
> 
> Signed-off-by: Paolo Bonzini <pbonzini@...hat.com>


Reviewed-by: Thomas Gleixner <tglx@...utronix.de>

> ---
> 	Please ack, I'd like to include it in the 4.4 pull request.
> 
>  arch/x86/include/asm/irq_remapping.h | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/arch/x86/include/asm/irq_remapping.h b/arch/x86/include/asm/irq_remapping.h
> index 046c7fb1ca43..a210eba2727c 100644
> --- a/arch/x86/include/asm/irq_remapping.h
> +++ b/arch/x86/include/asm/irq_remapping.h
> @@ -33,6 +33,11 @@ enum irq_remap_cap {
>  	IRQ_POSTING_CAP = 0,
>  };
>  
> +struct vcpu_data {
> +	u64 pi_desc_addr;	/* Physical address of PI Descriptor */
> +	u32 vector;		/* Guest vector of the interrupt */
> +};
> +
>  #ifdef CONFIG_IRQ_REMAP
>  
>  extern bool irq_remapping_cap(enum irq_remap_cap cap);
> @@ -58,11 +63,6 @@ static inline struct irq_domain *arch_get_ir_parent_domain(void)
>  	return x86_vector_domain;
>  }
>  
> -struct vcpu_data {
> -	u64 pi_desc_addr;	/* Physical address of PI Descriptor */
> -	u32 vector;		/* Guest vector of the interrupt */
> -};
> -
>  #else  /* CONFIG_IRQ_REMAP */
>  
>  static inline bool irq_remapping_cap(enum irq_remap_cap cap) { return 0; }
> -- 
> 1.8.3.1
> 
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ