Skip to content

OvmfXen: Set PcdFSBClock at runtime

Anthony PERARD xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 6 repliesIn review
  2. v27 patches 9 repliesSuperseded

Changes in v3 from the cover letter

- typos and codying style

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7OvmfPkg/XenResetVector: Silent a warning from nasmOvmfPkg/XenResetVector/Ia32/XenPVHMain.asm+1 -10 replies
2/7MdePkg: Allow PcdFSBClock to by DynamicMdePkg/MdePkg.dec+4 -42 replies
3/7OvmfPkg/IndustryStandard/Xen: Apply EDK2 coding style to XEN_VCPU_TIME_INFOOvmfPkg/Include/IndustryStandard/Xen/xen.h+9 -80 replies
4/7OvmfPkg/IndustryStandard: Introduce PageTable.hOvmfPkg/Include/IndustryStandard/PageTable.h OvmfPkg/Library/BaseMemEncryptSevLib/X64/VirtualMemory.h+5 -2551 reply
5/7OvmfPkg/XenPlatformPei: Map extra physical addressOvmfPkg/XenPlatformPei/Platform.h OvmfPkg/XenPlatformPei/Xen.c OvmfPkg/XenPlatformPei/XenPlatformPei.inf+77 -00 replies
6/7OvmfPkg/XenPlatformPei: Calibrate APIC timer frequencyOvmfPkg/XenPlatformPei/Platform.c OvmfPkg/XenPlatformPei/Platform.h OvmfPkg/XenPlatformPei/Xen.c +1 more+185 -01 reply
7/7OvmfPkg/OvmfXen: Set PcdFSBClockOvmfPkg/OvmfXen.dsc OvmfPkg/XenPlatformPei/Xen.c OvmfPkg/XenPlatformPei/XenPlatformPei.inf+6 -31 reply

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchLaszlo ErsekLiming GaoTom Lendacky
SeriesR-b A-b
1/7R-b
2/7R-b R-b R-b
3/7R-b
4/7R-b A-b
5/7A-b
6/7A-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/7] OvmfXen: Set PcdFSBClock at runtime

Patch series available in this git branch:
git://xenbits.xen.org/people/aperard/ovmf.git br.apic-timer-freq-v3

Changes in v3:
- typos and codying style

Changes in v2:
- main change is to allow mapping of Xen pages outside of the RAM see patch: "OvmfPkg/XenPlatformPei: Map extra physical address"
- that new function allows to map the Xen shared info page (where we can find information about tsc frequency) at the highest physical address allowed.

Hi,

OvmfXen uses the APIC timer, but with an hard-coded frequency that may change as pointed out here:
https://edk2.groups.io/g/devel/message/45185
<20190808134423.ybqg3qkpw5ucfzk4@Air-de-Roger>

This series changes that so the frequency is calculated at runtime.

Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2490

There is also one cleanup patch that has nothing to do with the rest.

Cheers,

Anthony PERARD (7):
OvmfPkg/XenResetVector: Silent a warning from nasm
MdePkg: Allow PcdFSBClock to by Dynamic OvmfPkg/IndustryStandard/Xen: Apply EDK2 coding style to
XEN_VCPU_TIME_INFO
OvmfPkg/IndustryStandard: Introduce PageTable.h OvmfPkg/XenPlatformPei: Map extra physical address OvmfPkg/XenPlatformPei: Calibrate APIC timer frequency OvmfPkg/OvmfXen: Set PcdFSBClock

 MdePkg/MdePkg.dec                             |   8 +-
 OvmfPkg/OvmfXen.dsc                           |   4 +-
 OvmfPkg/XenPlatformPei/XenPlatformPei.inf     |   4 +
 .../IndustryStandard/PageTable.h}             | 117 +-------
 OvmfPkg/Include/IndustryStandard/Xen/xen.h    |  17 +-
 .../BaseMemEncryptSevLib/X64/VirtualMemory.h  | 143 +---------
 OvmfPkg/XenPlatformPei/Platform.h             |  10 +
 OvmfPkg/XenPlatformPei/Platform.c             |   1 +
 OvmfPkg/XenPlatformPei/Xen.c                  | 252 ++++++++++++++++++
 OvmfPkg/XenResetVector/Ia32/XenPVHMain.asm    |   2 +-
 10 files changed, 287 insertions(+), 271 deletions(-)
 copy OvmfPkg/{Library/BaseMemEncryptSevLib/X64/VirtualMemory.h => Include/IndustryStandard/PageTable.h} (60%)
Signature · 1 line
Anthony PERARD