From: Andrew Cooper <andrew.cooper3@citrix.com>
To: James Harper <james.harper@bendigoit.com.au>
Cc: "Mike C." <miguelmclara@gmail.com>,
"Roger Pau Monné" <roger.pau@citrix.com>,
"Ian Campbell" <Ian.Campbell@citrix.com>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
"port-xen@netbsd.org" <port-xen@netbsd.org>
Subject: Re: [Xen-devel] Fwd: NetBSD xl core-dump not working... Memory fault (core dumped)
Date: Tue, 10 Dec 2013 10:41:58 +0000 [thread overview]
Message-ID: <52A6EFF6.3030408@citrix.com> (raw)
In-Reply-To: <6035A0D088A63A46850C3988ED045A4B66BFFA30@BITCOM1.int.sbss.com.au>
On 10/12/13 08:21, James Harper wrote:
> I've been working with Mike on this today. After he re-applied the patch (something must have gone wrong initially), an ioctl error is repeated constantly instead of SIGSEGV:
>
> xc: error: xc_map_foreign_range: ioctl failed (14 = Bad address): Internal error
>
> I dumped out some of the variables though, and:
>
> nr_memory_map = 1
> pfn_start = 0, pfn_end = 1048575
>
> this equates to 4GB of pfn's to be dumped on a vm with mem/maxmem = 256MB... is there code that skips empty pages? If not, that seems to be the explanation for the errors.
>
> James
xc_map_foreign_range is completely broken as far as errors go.
The privcmd driver ends up doing:
if ( HYPERVISOR_mmu_update(foo,bar) < 0 )
return -EFAULT;
Your best bet here is intercepting this and finding the real error.
privcmd (and evenchn and gnttab) devices are generally broken as far as
errors go, because it is impossible to distinguish between a kernel
error and a Xen error.
In someones copious free time, (possibly mine if I ever get any) a brand
new set of ioctls on each of the Xen devices would not go amis.
~Andrew
next prev parent reply other threads:[~2013-12-10 10:41 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <52770EED.9090804@gmx.de>
2013-11-04 22:13 ` Fwd: NetBSD xl core-dump not working... Memory fault (core dumped) Mike C.
2013-11-07 10:29 ` Ian Campbell
2013-11-07 21:04 ` [Xen-devel] " Miguel C.
2013-11-08 10:29 ` Ian Campbell
2013-11-08 17:20 ` John Nemeth
2013-11-12 9:35 ` Ian Campbell
2013-11-13 21:31 ` James Harper
2013-11-12 9:48 ` [Xen-devel] " Roger Pau Monné
2013-11-12 10:00 ` Ian Campbell
2013-11-12 10:09 ` Roger Pau Monné
2013-11-13 12:36 ` [Xen-devel] " Miguel C.
2013-11-13 12:39 ` Roger Pau Monné
2013-11-13 17:59 ` Miguel C.
2013-12-03 18:14 ` Mike C.
2013-12-10 8:21 ` James Harper
2013-12-10 9:27 ` [Xen-devel] " James Harper
2013-12-10 10:41 ` Andrew Cooper [this message]
2013-12-10 10:46 ` James Harper
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=52A6EFF6.3030408@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=james.harper@bendigoit.com.au \
--cc=miguelmclara@gmail.com \
--cc=port-xen@netbsd.org \
--cc=roger.pau@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).