On Thu, Sep 29, 2022, David Matlack wrote: > Miscellaneous fixes and cleanups to emulator_error_test. The reason I > started looking at this test is because it fails when TDP is disabled, > which pollutes my test results when I am testing a new series for > upstream. This series defeats the (not well documented) purpose of emulator_error_test. The test exists specifically to verify that KVM emulates in response to EPT violations when "allow_smaller_maxphyaddr && guest.MAXPHYADDR < host.MAXPHADDR". That said, the test could use some upgrades: 1. Verify that a well-emulated instruction takes #PF(RSVD) 2. Verify that FLDS takes #PF(RSVD) when EPT is disabled