From: Olaf Hering <olaf@aepfle.de>
To: Tim Deegan <tim@xen.org>
Cc: xen-devel@lists.xen.org
Subject: Re: guest crash in wrmsr_hypervisor_regs if hypercall page is paged out
Date: Thu, 2 May 2013 16:43:01 +0200 [thread overview]
Message-ID: <20130502144301.GA8910@aepfle.de> (raw)
In-Reply-To: <20130502112050.GJ65547@ocelot.phlegethon.org>
On Thu, May 02, Tim Deegan wrote:
> At 20:19 +0200 on 30 Apr (1367353157), Olaf Hering wrote:
> >
> > With current xen-unstable I see this guest crash if the gfn 169ff is
> > paged out. The xenpaging -v output shows that 169ff is populated, but
> > appearently wrmsr_hypervisor_regs does not like the resulting mfn?!
>
> Looks that way:
>
> > (XEN) HVM10: Allocated Xen hypercall page at 169ff000
> > (XEN) traps.c:654:d10 Bad GMFN 169ff (MFN 3e900000000) to MSR 40000000
>
> That MFN looks like garbage, so I'm guessing that 'page' was null, i.e.
> get_page_from_gfn() returned NULL. I guess you'll need to instrument it
> up to figure out why. At least the GFN is a predictable constant which
> should make it easier to add debugging printout for just this case.
The GMFN has p2m_t p2m_ram_paged, so the mfn is -1.
Its not clear to me, how should wrmsr_hypervisor_regs handle a paged
gfn? I was under the impression that get_page_from_gfn would wait until
the gfn is paged-in again.
Olaf
next prev parent reply other threads:[~2013-05-02 14:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-30 18:19 guest crash in wrmsr_hypervisor_regs if hypercall page is paged out Olaf Hering
2013-05-02 11:20 ` Tim Deegan
2013-05-02 14:43 ` Olaf Hering [this message]
2013-05-02 14:52 ` Tim Deegan
2013-05-02 14:58 ` Jan Beulich
2013-05-02 15:20 ` Olaf Hering
2013-05-02 15:29 ` Jan Beulich
2013-05-02 17:46 ` Olaf Hering
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=20130502144301.GA8910@aepfle.de \
--to=olaf@aepfle.de \
--cc=tim@xen.org \
--cc=xen-devel@lists.xen.org \
/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.