]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve: Initialize more registers in vcpu_reset()
authorCorvin Köhne <CorvinK@beckhoff.com>
Wed, 27 Jul 2022 14:41:02 +0000 (16:41 +0200)
committerEmmanuel Vadot <manu@FreeBSD.org>
Wed, 27 Jul 2022 16:20:47 +0000 (18:20 +0200)
commit56b8f5b11171375bf5da484577926b53ce56a3be
tree6e53f82aa9e31b246390eda252de91d6c8a26f41
parent4eadbef92493ea8d375207b2c2a0bd3a22603750
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.

Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D35622
Sponsored by: Beckhoff Automation GmbH & Co. KG
lib/libvmmapi/vmmapi.c