bhyve needs instruction emul tests
As more unit tests are written as part of the
system/bhyve/tests package, it would be nice to have some for the in-kernel instruction emulation. It should be relatively straightforward to create a simple guest environment with a small flat memory space into which isolated instruction tests can be injected and run. The userspace portion of the test could service the as-expected VM exits and check that the desired vCPU states are achieved.
Updated by Patrick Mooney 5 months ago
While this was originally desired for testing instruction emulation, the first use case ended up being testing kernel-emulated devices from the perspective of a guest (running an in-guest test payload).
Those tests (timekeeping related) were executed successfully on both AMD and Intel hardware.
Updated by Electric Monk 5 months ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
commit 5103e761e384621c5728a6d1f4b0bfdc1be233a4 Author: Patrick Mooney <email@example.com> Date: 2022-03-30T15:50:42.000Z 14569 bhyve should consolidate on hrtime 14486 bhyve needs instruction emul tests Reviewed by: Andy Fiddaman <firstname.lastname@example.org> Reviewed by: Luqman Aden <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>