From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Wei Liu <wei.liu2@citrix.com>
Cc: edk2-devel@lists.sourceforge.net, xen-devel@lists.xen.org
Subject: Re: Passing Xen memory map and resource map to OVMF
Date: Tue, 12 Nov 2013 14:22:51 -0500 [thread overview]
Message-ID: <20131112192251.GC12345@phenom.dumpdata.com> (raw)
In-Reply-To: <20131112183321.GN13369@zion.uk.xensource.com>
On Tue, Nov 12, 2013 at 06:33:21PM +0000, Wei Liu wrote:
> Hi all
>
> Currently OVMF determines memory size by consulting CMOS, then it makes
> up memory map of its own.
>
> Consulting memory size by reading CMOS limits the RAM size to 1TB as
> there's only 3 bytes from 0x5b-0x5d in CMOS, where the upper memory size
> is stored.
>
> And from Xen's point of view, OVMF should use the memory mapped passed
> by hypervisor (from hvmloader) instead of making up its own.
>
> To solve the above two problems all in one go, I plan to pass necessary
> information (io resource, mmio resource) to OVMF from Xen. I will
> construct the table / structure in hvmloader then hook up platform pei
> code when OVMF is running on Xen.
/me nods. The nice thing about that is that it could also allow us
to modify the E820 from the toolstack for any combination we want.
For example if you use e820_host=1 in your PV guest the E820 will
look like the host one. Great for PCI passthrough when you have some
stubborn cards.
>
> The first thing that comes in mind is to reuse E820 table for memory map
> plus some extra fields for io / mmio resources. But I guess UEFI is the
> new world so stuffs like E820 from old world will be less popular. Any
> suggestion on existing table / data structure I can use?
I think the E820 is fine. After all the Linux kernel picks up the EFI
memmap and then stuffs it in E820.
And there are some patches that do this for HVM already:
http://article.gmane.org/gmane.comp.emulators.xen.devel/170593
for which I was hoping could be reworked as needed.
>
>
> Thanks
> Wei.
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2013-11-12 19:22 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20131112183321.GN13369@zion.uk.xensource.com>
2013-11-12 19:05 ` [edk2] Passing Xen memory map and resource map to OVMF Laszlo Ersek
[not found] ` <52827C0B.5040901@redhat.com>
2013-11-12 19:20 ` Laszlo Ersek
2013-11-13 7:03 ` Gerd Hoffmann
[not found] ` <1384326219.3560.9.camel@nilsson.home.kraxel.org>
2013-11-13 11:58 ` Wei Liu
[not found] ` <20131113115811.GC4948@zion.uk.xensource.com>
2013-11-13 13:53 ` Gerd Hoffmann
[not found] ` <1384350814.3560.24.camel@nilsson.home.kraxel.org>
2013-11-13 14:06 ` Wei Liu
[not found] ` <20131113140654.GF4948@zion.uk.xensource.com>
2013-11-13 14:23 ` Gerd Hoffmann
[not found] ` <1384352585.3560.36.camel@nilsson.home.kraxel.org>
2013-11-13 16:56 ` Wei Liu
[not found] ` <20131113165644.GA16969@zion.uk.xensource.com>
2013-11-14 7:58 ` Gerd Hoffmann
[not found] ` <1384415898.15534.15.camel@nilsson.home.kraxel.org>
2013-11-14 10:47 ` Wei Liu
2013-11-14 11:06 ` Laszlo Ersek
[not found] ` <20131114104738.GB23151@zion.uk.xensource.com>
2013-11-14 11:19 ` Gerd Hoffmann
[not found] ` <5284AEA4.6090004@redhat.com>
2013-11-14 16:42 ` Andrew Fish
[not found] ` <746A3CCD-E629-4AD5-9889-3BC89A7814F9@apple.com>
2013-11-15 7:18 ` Gerd Hoffmann
2013-11-15 14:26 ` Wei Liu
2013-11-13 16:51 ` Konrad Rzeszutek Wilk
2013-11-13 16:47 ` Konrad Rzeszutek Wilk
2013-11-12 19:22 ` Konrad Rzeszutek Wilk [this message]
2013-11-13 10:34 ` Ian Campbell
2013-11-12 19:51 ` Jordan Justen
2013-11-13 10:38 ` Ian Campbell
[not found] ` <CAFe8ug92_AUd45s3MNA19nz-etSK-aZxKTqdsskFqDX9BBdTjA@mail.gmail.com>
2013-11-13 11:59 ` Wei Liu
2013-11-12 18:33 Wei Liu
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=20131112192251.GC12345@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=edk2-devel@lists.sourceforge.net \
--cc=wei.liu2@citrix.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 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).