Page MenuHomeFreeBSD

bhyve: Initialize more registers in vcpu_reset().
ClosedPublic

Authored by corvink on Jun 28 2022, 8:45 AM.
Tags
Referenced Files
Unknown Object (File)
Wed, Oct 15, 12:11 PM
Unknown Object (File)
Sun, Oct 12, 1:50 AM
Unknown Object (File)
Fri, Oct 10, 1:13 AM
Unknown Object (File)
Thu, Oct 9, 4:16 PM
Unknown Object (File)
Thu, Sep 18, 3:11 AM
Unknown Object (File)
Sep 14 2025, 8:51 PM
Unknown Object (File)
Sep 12 2025, 10:03 AM
Unknown Object (File)
Aug 17 2025, 10:45 PM
Subscribers

Details

Summary
  • Clear CR2, EFER, and R8-15 to zero.
  • Reset DR6 and DR7 to their documented reset values.
  • Reset interrupt shadow state.
  • Document the reason CR0 is reset to a value that doesn't match its documented value.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I would perhaps adjust the commit log to say something more like:

bhyve: Initialize more registers in vcpu_reset().

- Clear CR2, EFER, and R8-15 to zero.

- Reset DR6 and DR7 to their documented reset values.

- Reset interrupt shadow state.

- Document the reason CR0 is reset to a value that doesn't match
   its documented value.
This revision is now accepted and ready to land.Jun 30 2022, 6:10 PM
corvink retitled this revision from bhyve: reset vcpus properly to bhyve: Initialize more registers in vcpu_reset()..Jul 1 2022, 6:03 AM
corvink edited the summary of this revision. (Show Details)
This revision was automatically updated to reflect the committed changes.