VirtualBox

Ignore:
Timestamp:
Mar 31, 2025 11:31:09 AM (2 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
168237
Message:

Devices/EFI/FirmwareNew: Merge edk2-stable202502 from the vendor branch and make it build for the important platforms, bugref:4643

Location:
trunk/src/VBox/Devices/EFI/FirmwareNew
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/FirmwareNew

  • trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/XenPlatformPei/Xen.c

    r99404 r108794  
    129129  )
    130130{
    131   UINT32             Index;
    132   UINT32             TransferReg;
    133   UINT32             TransferPages;
    134131  UINT32             XenVersion;
    135132  EFI_XEN_OVMF_INFO  *Info;
     
    139136
    140137  ASSERT (mXenLeaf != 0);
    141 
    142   //
    143   // Prepare HyperPages to be able to make hypercalls
    144   //
    145 
    146   AsmCpuid (mXenLeaf + 2, &TransferPages, &TransferReg, NULL, NULL);
    147   mXenInfo.HyperPages = AllocatePages (TransferPages);
    148   if (!mXenInfo.HyperPages) {
    149     return EFI_OUT_OF_RESOURCES;
    150   }
    151 
    152   for (Index = 0; Index < TransferPages; Index++) {
    153     AsmWriteMsr64 (
    154       TransferReg,
    155       (UINTN)mXenInfo.HyperPages +
    156       (Index << EFI_PAGE_SHIFT) + Index
    157       );
    158   }
    159138
    160139  //
     
    284263  // This function should only be used after XenConnect
    285264  //
    286   ASSERT (mXenInfo.HyperPages != NULL);
     265  ASSERT (mXenInfo.VersionMajor);
    287266
    288267  return mXenHvmloaderInfo == NULL;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette