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

Re: [Xen-devel] [PATCH v7 12/17] x86: move some APIC related macros to apicdef.h



>>> On 11.09.15 at 10:29, <feng.wu@xxxxxxxxx> wrote:
> Move some APIC related macros to apicdef.h, so they can be used
> outside of vlapic.c.
> 
> CC: Keir Fraser <keir@xxxxxxx>
> CC: Jan Beulich <jbeulich@xxxxxxxx>
> CC: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
> Signed-off-by: Feng Wu <feng.wu@xxxxxxxxx>
> ---
> v7:
> - Put the Macros to the right place inside the file.

Almost:

> --- a/xen/include/asm-x86/apicdef.h
> +++ b/xen/include/asm-x86/apicdef.h
> @@ -57,6 +57,8 @@
>  #define                      APIC_DEST_SELF          0x40000
>  #define                      APIC_DEST_ALLINC        0x80000
>  #define                      APIC_DEST_ALLBUT        0xC0000
> +#define                      APIC_SHORT_MASK         0xC0000
> +#define                      APIC_DEST_NOSHORT       0x0

This last one would more naturally go ahead of APIC_DEST_SELF. And
both it and ...

> @@ -64,6 +66,7 @@
>  #define                      APIC_INT_LEVELTRIG      0x08000
>  #define                      APIC_INT_ASSERT         0x04000
>  #define                      APIC_ICR_BUSY           0x01000
> +#define                      APIC_DEST_MASK          0x800

... this one should be zero-padded to match the respective neighbors.

With that done
Acked-by: Jan Beulich <jbeulich@xxxxxxxx>


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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