From: "Christoph Egger" <Christoph.Egger@amd.com>
To: xen-devel@lists.xensource.com
Subject: Re: [PATCH][XEN] construct_dom0: Initialize variable before use
Date: Thu, 29 Nov 2007 15:32:14 +0100 [thread overview]
Message-ID: <200711291532.14558.Christoph.Egger@amd.com> (raw)
In-Reply-To: <200711291437.24862.Christoph.Egger@amd.com>
On Thursday 29 November 2007 14:37:24 Christoph Egger wrote:
> On Thursday 29 November 2007 14:28:00 Keir Fraser wrote:
> > On 29/11/07 13:02, "Christoph Egger" <Christoph.Egger@amd.com> wrote:
> > > Without this fix, d->arch.physaddr_bitsize is 0 in
> > > domain_clamp_alloc_bitsize(). This causes all attempts to
> > > XENMEM_increase_reservation with bits > 0 to fail. More precisely,
> > > __alloc_domheap_pages() returns NULL.
> > > This impacts Xen heap allocation in general.
> > > Question: How did that work on Linux Dom0?
> >
> > Yes, that's pretty broken. It works for Linux because Linux allocates its
> > lowmem I/o pages (e.g., swiotlb) using the XENMEM_exchange command, and
> > that allocates the new memory anonymously in the first instance. This
> > defeats the bitsize clamp check (which is okay just now because our
> > truncation of the phsyical memory map to 166GB is sufficient to ensure
> > that compat domUs can address all memory).
>
> Thanks for clarification.
> NetBSD Dom0 failed when allocating DMA-safe memory above 4GB.
Keir: Can you also put this fix onto your patch-queue for Xen 3.1.3, please?
Thanks,
Christoph
--
AMD Saxony, Dresden, Germany
Operating System Research Center
Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
Dr. Hans-R. Deppe, Thomas McCoy
next prev parent reply other threads:[~2007-11-29 14:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-29 13:02 [PATCH][XEN] construct_dom0: Initialize variable before use Christoph Egger
2007-11-29 13:28 ` Keir Fraser
2007-11-29 13:37 ` Christoph Egger
2007-11-29 14:32 ` Christoph Egger [this message]
2007-11-29 14:34 ` Keir Fraser
[not found] <C37DAC27.197BA%Keir.Fraser@cl.cam.ac.uk>
2007-12-06 14:53 ` Christoph Egger
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=200711291532.14558.Christoph.Egger@amd.com \
--to=christoph.egger@amd.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.