> > v1 -> v2 > > * Replaced 2M page allocations with 128 kB allocations. > > * Broadly, updated test to follow Sean's draft: > > * Got rid of loop + individual test cases. Instead combined all test cases. > > * Got rid of configure_atomic_switch_msr_limit_test(). > > * Updated cleanup code to free memory. I added a new helper, > > free_pages_by_order() to help here. > > * Changed virt_to_phys() to explicit u64 cast. > > * Renamed original test case from atomic_switch_msr_limit_test() to > > atomic_switch_max_msrs_test(). Added opt-in > > atomic_switch_overflow_msrs_test() test case to test failure code path > > during VM-entry. > > * Fixed a bug in transitioning VMX launched state when the first > > VM-entry fails. > > Can we move this bug-fix to a separate patch so that it can be > identified easily when searching in git history ? SGTM. I'll wait to see if there are any more comments before splitting this out.