From: Christoph Egger <Christoph.Egger@amd.com>
To: Tim Deegan <Tim.Deegan@citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: Re: [PATCH 4 of 4] Nested p2m: rework locking around nested-p2m flushes and updates
Date: Fri, 24 Jun 2011 13:08:54 +0200 [thread overview]
Message-ID: <4E047046.6090609@amd.com> (raw)
In-Reply-To: <20110624104515.GZ17634@whitby.uk.xensource.com>
On 06/24/11 12:45, Tim Deegan wrote:
> At 17:08 +0200 on 23 Jun (1308848939), Christoph Egger wrote:
>>> + /* If this p2m table has been flushed or recycled under our feet,
>>> + * leave it alone. We'll pick up the right one as we try to
>>> + * vmenter the guest. */
>>> + if ( p2m->cr3 == nhvm_vcpu_hostcr3(v) )
>>> + rv = set_p2m_entry(p2m, L2_gpa>> PAGE_SHIFT,
>>> + page_to_mfn(maddr_to_page(L0_gpa)),
>>> + 0 /*4K*/, p2mt, p2ma);
>>
>> The introduction of this check leads to this crash when the L2 guest
>> initializes its third vcpu:
>
> D'oh!
>
> diff -r b40d4bcca0d7 xen/arch/x86/mm/hap/nested_hap.c
> --- a/xen/arch/x86/mm/hap/nested_hap.c Fri Jun 24 11:16:53 2011 +0100
> +++ b/xen/arch/x86/mm/hap/nested_hap.c Fri Jun 24 11:43:30 2011 +0100
> @@ -100,7 +100,7 @@ nestedhap_fix_p2m(struct vcpu *v, struct
> paddr_t L2_gpa, paddr_t L0_gpa,
> p2m_type_t p2mt, p2m_access_t p2ma)
> {
> - int rv = 0;
> + int rv = 1;
> ASSERT(p2m);
> ASSERT(p2m->set_entry);
>
Yes, that fixes the crash.
> This is what comes of not being able to test things properly. Can you
> describe your test setup for me? I'm having no luck getting
> xen-on-debian-on-xen-on-debian to work.
That should do it. If your problem is that the L1 Dom0 hangs at boot
then disable the TSC Deadline Timer in libxc/xc_cpuid_x86.c.
This feature is broken since its introduction.
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
prev parent reply other threads:[~2011-06-24 11:08 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-22 16:10 [PATCH 0 of 4] RFC: Nested-p2m cleanups and locking changes Tim Deegan
2011-06-22 16:10 ` [PATCH 1 of 4] Nested p2m: implement "flush" as a first-class action Tim Deegan
2011-06-23 12:50 ` Christoph Egger
2011-06-23 12:56 ` Christoph Egger
2011-06-23 15:04 ` Christoph Egger
2011-06-23 15:21 ` Christoph Egger
2011-06-24 9:07 ` Tim Deegan
2011-06-22 16:10 ` [PATCH 2 of 4] Nested p2m: remove bogus check of CR3 value Tim Deegan
2011-06-22 16:10 ` [PATCH 3 of 4] Nested p2m: clarify logic in p2m_get_nestedp2m() Tim Deegan
2011-06-24 14:25 ` Christoph Egger
2011-06-24 14:37 ` Tim Deegan
2011-06-24 14:53 ` Christoph Egger
2011-06-24 15:05 ` Tim Deegan
2011-06-27 9:46 ` Christoph Egger
2011-06-22 16:10 ` [PATCH 4 of 4] Nested p2m: rework locking around nested-p2m flushes and updates Tim Deegan
2011-06-23 15:08 ` Christoph Egger
2011-06-24 10:45 ` Tim Deegan
2011-06-24 11:08 ` Christoph Egger [this message]
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=4E047046.6090609@amd.com \
--to=christoph.egger@amd.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.