-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OvmfPkg: Rerun dispatcher after initializing virtio-rng #6403
base: master
Are you sure you want to change the base?
Conversation
mailing list thread: https://edk2.groups.io/g/devel/topic/109008158#msg120623 |
@@ -539,6 +539,8 @@ PlatformBootManagerBeforeConsole ( | |||
ConnectVirtioPciRng, | |||
NULL | |||
); | |||
|
|||
gDS->Dispatch (); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we include this fix also in ConnectVirtioPciRng()
in OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably a good idea. I'll open a separate PR for that later.
a7b0689
to
eb76d78
Compare
Since the pixiefail CVE fix the network stack requires a hardware random number generator. This can currently be a modern CPU supporting the RDRAND instruction or a virtio-rng device. The latter is initialized during the BDS phase. To ensure all depending (network) modules are also started, we need to run the dispatcher once more after the device was initialized. Without this, network boot is not available under certain hardware configurations. Analysed-by: Stefano Garzarella <[email protected]> Suggested-by: Gerd Hoffmann <[email protected]> Signed-off-by: Oliver Steffen <[email protected]>
eb76d78
to
2138646
Compare
What about adding |
Description
Since the pixiefail CVE fix the network stack requires a hardware random number generator. This can currently be a modern CPU supporting the RDRAND instruction or a virtio-rng device.
The latter is initialized during the BDS phase.
To ensure all depending (network) modules are also started, we need to run the dispatcher once more.
Without this, network boot is not available under certain hardware configurations.
How This Was Tested
Run Ovmf in Qemu with a core2duo vCPU, a virtio-rng-pci device and a varying number of isa serial ports. Observe if the network stack is loaded (presence of HTTP/PXE boot entries, for example). With 2 serial ports the netboot is not available.
Integration Instructions
N/A