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

Re: [Xen-devel] [PATCH 26/45] xen: arm64: add guest type to domain field.



At 15:56 +0000 on 23 Jan (1358956592), Ian Campbell wrote:
> --- a/xen/include/asm-arm/domain.h
> +++ b/xen/include/asm-arm/domain.h
> @@ -35,8 +35,26 @@ struct hvm_domain
>      uint64_t              params[HVM_NR_PARAMS];
>  }  __cacheline_aligned;
>  
> +#ifdef CONFIG_ARM_64
> +enum domain_type {
> +    DOMAIN_PV32,
> +#ifdef CONFIG_ARM_64

Nested ifdef CONFIG_ARM_64 here. 

Tim.

> +    DOMAIN_PV64,
> +#endif
> +};
> +#define is_pv32_domain(d) ((d)->arch.type == DOMAIN_PV32)
> +#define is_pv64_domain(d) ((d)->arch.type == DOMAIN_PV64)
> +#else
> +#define is_pv32_domain(d) (1)
> +#define is_pv64_domain(d) (0)
> +#endif
> +
>  struct arch_domain
>  {
> +#ifdef CONFIG_ARM_64
> +    enum domain_type type;
> +#endif
> +
>      struct p2m_domain p2m;
>      struct hvm_domain hvm_domain;
>  
> -- 
> 1.7.2.5
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxx
> http://lists.xen.org/xen-devel

_______________________________________________
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®.