On 26/04/2024 3:32 pm, George Dunlap wrote: > To unify certain common sanity checks, checks are done very early in > processing based only on the top-level type. > > Unfortunately, when TRC_HVM_EMUL was introduced, it broke some of the > assumptions about how the top-level types worked. Namely, traces of > this type will show up outside of HVM contexts: in idle domains and in > PV domains. > > Make an explicit exception for TRC_HVM_EMUL types in a number of places: > > - Pass the record info pointer to toplevel_assert_check, so that it > can exclude TRC_HVM_EMUL records from idle and vcpu data_mode > checks > > - Don't attempt to set the vcpu data_type in hvm_process for > TRC_HVM_EMUL records. > > Signed-off-by: George Dunlap <[email protected]>
Acked-by: Andrew Cooper <[email protected]> Although I'm tempted to say that if records of this type show up outside of HVM context, then it's misnamed or we've got an error in Xen. Any view on which? ~Andrew
