Page MenuHomeFreeBSD

bhyve: Initialize more registers in vcpu_reset().
ClosedPublic

Authored by c.koehne_beckhoff.com on Jun 28 2022, 8:45 AM.

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
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; 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
c.koehne_beckhoff.com retitled this revision from bhyve: reset vcpus properly to bhyve: Initialize more registers in vcpu_reset()..Jul 1 2022, 6:03 AM
c.koehne_beckhoff.com edited the summary of this revision. (Show Details)