|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] x86: Move nested_p2m per domain data into its own struct.
>>> On 28.11.11 at 15:42, Jean Guyader <jean.guyader@xxxxxxxxxxxxx> wrote:
>--- a/xen/include/asm-x86/domain.h
>+++ b/xen/include/asm-x86/domain.h
>@@ -238,6 +238,12 @@ struct pv_domain
> unsigned int nr_e820;
> };
>
>+struct nested_p2m_per_domain
>+{
>+ struct p2m_domain *nested_p2m[MAX_NESTEDP2M];
>+ mm_lock_t nested_p2m_lock;
So you call these nested_p2m* but the container ...
>+};
>+
> struct arch_domain
> {
> #ifdef CONFIG_X86_64
>@@ -274,8 +280,7 @@ struct arch_domain
> int page_alloc_unlock_level;
>
> /* nestedhvm: translate l2 guest physical to host physical */
>- struct p2m_domain *nested_p2m[MAX_NESTEDP2M];
>- mm_lock_t nested_p2m_lock;
>+ struct nested_p2m_per_domain *nested_p2m;
... is also called this way. Pretty redundant, just requiring extra
typing and eventually leading to ugly to read wrapped lines.
Jan
>
> /* NB. protected by d->event_lock and by irq_desc[irq].lock */
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |