From: Christoph Egger <Christoph.Egger@amd.com>
To: Jan Beulich <JBeulich@novell.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
Tim Deegan <Tim.Deegan@citrix.com>
Subject: Re: [PATCH 12/12] Nested Virtualization: hap-on-hap
Date: Fri, 29 Apr 2011 11:09:21 +0200 [thread overview]
Message-ID: <4DBA8041.5060900@amd.com> (raw)
In-Reply-To: <4DBA9B00020000780003EDAA@vpn.id2.novell.com>
On 04/29/11 11:03, Jan Beulich wrote:
>>>> On 05.04.11 at 17:48, Christoph Egger<Christoph.Egger@amd.com> wrote:
>> diff -r cfde4384be14 -r 28809c365861 xen/include/asm-x86/domain.h
>> --- a/xen/include/asm-x86/domain.h
>> +++ b/xen/include/asm-x86/domain.h
>> ...
>> @@ -225,6 +227,7 @@ struct paging_vcpu {
>> #define MAX_CPUID_INPUT 40
>> typedef xen_domctl_cpuid_t cpuid_input_t;
>>
>> +#define MAX_NESTEDP2M 10
>> struct p2m_domain;
>> struct time_scale {
>> int shift;
>> @@ -258,6 +261,12 @@ struct arch_domain
>> struct paging_domain paging;
>> struct p2m_domain *p2m;
>>
>> + /* nestedhvm: translate l2 guest physical to host physical */
>> + struct p2m_domain *nested_p2m[MAX_NESTEDP2M];
>> + spinlock_t nested_p2m_lock;
>> + int nested_p2m_locker;
>> + const char *nested_p2m_function;
>> +
>> /* NB. protected by d->event_lock and by irq_desc[irq].lock */
>> int *irq_pirq;
>> int *pirq_irq;
>
> Was there a specific reason to add this to struct arch_domain
> instead of struct hvm_domain? I.e. can any pf these fields be
> used on pv (or idle) domains?
The reason is that there is already a 'struct p2m_domain *p2m' field.
If that can be moved to struct hvm_domain then nested_p2m can
definitely move over to there, too.
Christoph
--
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85689 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
next prev parent reply other threads:[~2011-04-29 9:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-09 14:31 [PATCH 12/12] Nested Virtualization: hap-on-hap Christoph Egger
2011-03-22 14:59 ` Tim Deegan
2011-03-31 15:25 ` Christoph Egger
2011-04-05 15:48 ` Christoph Egger
2011-04-06 10:29 ` Tim Deegan
2011-04-06 14:42 ` Christoph Egger
2011-04-29 9:03 ` Jan Beulich
2011-04-29 9:09 ` Christoph Egger [this message]
2011-04-29 9:19 ` Jan Beulich
-- strict thread matches above, loose matches on Subject: below --
2010-12-20 16:13 Christoph Egger
2011-01-07 15:55 ` Tim Deegan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DBA8041.5060900@amd.com \
--to=christoph.egger@amd.com \
--cc=JBeulich@novell.com \
--cc=Tim.Deegan@citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.