tianocore / edk2

EDK II
https://github.com/tianocore/tianocore.github.io/wiki/EDK-II
Other
4.41k stars 2.4k forks source link

MdePkg/Tdx.h: Fix the order of NumVcpus and MaxVcpus #5828

Closed calmisi closed 2 weeks ago

calmisi commented 3 weeks ago

Description

Currently, TDX QEMU always configure TD_PARAMS.MAX_VCPUS as the number of actual vcpus it has created for the TD. So in the TDG.VP.INFO, the returned value of NUM_VCPUS and MAX_VCPUS in R8 are always same.

However, TDX QEMU + KVM are going to set a big value for TD_PARAMS.MAX_VCPUS than actual created TD vcpus, which triggers the issue and find the bug.

ardbiesheuvel commented 2 weeks ago

Removing the 'push' label as this PR is blocking the mergify queue.