Re: [edk2] [PATCH 3 of 5] OvmfPkg/PlatformPei: Detect Xen and publish XenInfo HOB

Subject: Re: [edk2] [PATCH 3 of 5] OvmfPkg/PlatformPei: Detect Xen and publish XenInfo HOB

From: Bei Guan <gbtju85@gmail.com>

To: Jordan Justen <jljusten@gmail.com>

Date: 2011-08-05 07:34:42

Hi Jordan,

How about the patch (0001-OvmfPkg-PlatformPei-Add-Xen-support.patch) you attached in previous mail? Can it be applied?


Thanks,
Bei



2011/7/31 Bei Guan <gbtju85@gmail.com>
More information about this problem.
IfMemDetect() executes afterInitializePlatform(), it can't allocate memory pages for Xen hypercall page inXenConnect().So, the following code returns error code ofEFI_OUT_OF_RESOURCES.

mXenInfo.HyperPages = AllocatePages (TransferPages);
if (!mXenInfo.HyperPages) {
return EFI_OUT_OF_RESOURCES;
}


Thanks,
Bei

2011/7/31 Bei Guan <gbtju85@gmail.com>


2011/7/30 Jordan Justen <jljusten@gmail.com>
Bei, Andrei,

How does this modified version of the Platform PEI changes look to
you? Will Xen boot for you with this version?
Hi Jordan,

In the function InitializePlatform(), if we put the method MemDetect() before InitializeXen(), it works well for detecting Xen.
Can we move the method MemDetect() to the location before InitializeXen()?


Thanks,
Bei


Thanks,

-Jordan

On Wed, Jul 27, 2011 at 00:11, Bei Guan <gbtju85@gmail.com> wrote:
> Reviewed-by: gavinguan
>
> 2011/7/26 Andrei Warkentin <andreiw@motorola.com>
>>
>> On Sun, Jul 24, 2011 at 10:26 AM, Bei Guan <gbtju85@gmail.com> wrote:
>> > OvmfPkg/PlatformPei: Detect Xen and publish XenInfo HOB
>> >
>> > * Fix assigned PIO and MMIO ranges for PCI.
>> > * Make PlatformPei aware Xen.
>> > * Publish XenInfo HOB
>> >
>>
>> Reviewed-by: Andrei Warkentin <andreiw@motorola.com>
>> Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
>
>