From: David Vrabel <dvrabel@cantab.net>
To: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: David Vrabel <david.vrabel@citrix.com>, xen-devel@lists.xen.org
Subject: Re: [PATCH] x86/xen: do not identity map E820 memory regions that are UNUSABLE
Date: Fri, 12 Jul 2013 22:38:13 +0100 [thread overview]
Message-ID: <51E07745.9020301@cantab.net> (raw)
In-Reply-To: <20130712193342.GA6364@phenom.dumpdata.com>
On 12/07/2013 20:33, Konrad Rzeszutek Wilk wrote:
>
> So the 'HYPERVISOR_update_va_mapping' fails b/c we include it in the
> xen_set_identify_and_release_chunk.
That's what I understand.
> Why not make the logic that sets "gaps"
> and E820_RESERVED regions to omit E820_UNUSABLE regions? That would solve
> it as well - and we won't be messing with the E820.
I suppose we could do what you suggest but there would have to be a
xen_release_chunk() function added, otherwise you would waste the frames
in that region.
I remain unconvinced that adding pointless unusable regions into the
dom0's memory map makes any sense.
>>> OK. What about the BIOS manufacturing [unusable regions?
>>
>> What about it? As a PV guest we don't care what the machine memory map
>> looks like, /except/ as a means to find interesting bits of hardware
>> that we want 1:1 mappings for.
>
> Right but now you are converting it from 1:1 to a RAM region - where we
> don't do 1:1.
No, it's leaving it as a RAM region, as setup by Xen (and as marked as
such in the pseudo-physical map).
I guess I still haven't explained very well what the (confusing) setup
code is trying to do.
1. Get psuedo-physical memory map.
2. Get machine memory map.
3. For each "interesting" (reserved or MMIO hole) region in the machine
memory map:
a. Add reserved region or hole to pseudo-physical memory map.
b. Release memory.
c. Set as 1:1 in p2m.
d. Update any existing mappings.
The code as-is doesn't work like that but the end result should be the same.
David
next prev parent reply other threads:[~2013-07-12 21:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1373377133-11018-1-git-send-email-david.vrabel@citrix.com>
2013-07-09 14:13 ` [PATCH] x86/xen: do not identity map E820 memory regions that are UNUSABLE Konrad Rzeszutek Wilk
[not found] ` <20130709141329.GC24897@phenom.dumpdata.com>
2013-07-09 14:44 ` David Vrabel
[not found] ` <51DC21D6.4000107@citrix.com>
2013-07-09 18:45 ` Konrad Rzeszutek Wilk
[not found] ` <20130709184538.GB10188@phenom.dumpdata.com>
2013-07-11 11:21 ` David Vrabel
2013-07-12 19:33 ` Konrad Rzeszutek Wilk
2013-07-12 21:38 ` David Vrabel [this message]
2013-07-15 12:48 ` Konrad Rzeszutek Wilk
2013-07-09 17:00 ` Aurelien Chartier
[not found] ` <51DC41A1.6010909@citrix.com>
2013-07-09 18:36 ` Konrad Rzeszutek Wilk
[not found] ` <20130709183647.GA10188@phenom.dumpdata.com>
2013-07-10 14:24 ` Aurelien Chartier
2013-07-09 13:38 David Vrabel
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=51E07745.9020301@cantab.net \
--to=dvrabel@cantab.net \
--cc=david.vrabel@citrix.com \
--cc=konrad.wilk@oracle.com \
--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.