Xen Test Framework
|
Library logic for MSRs. More...
Go to the source code of this file.
Functions | |
static uint64_t | force_rdmsr (uint32_t idx) |
static void | force_wrmsr (uint32_t idx, uint64_t val) |
void | xtf_msr_consistency_test (const struct xtf_msr_consistency_test_data *t) |
Run consistency tests as described by t . More... | |
Library logic for MSRs.
Definition in file msr.c.
void xtf_msr_consistency_test | ( | const struct xtf_msr_consistency_test_data * | t | ) |
Run consistency tests as described by t
.
Some MSRs may be passed directly through to guests for performance reasons. This introduces an extra level of complexity for context switching an emulation purposes.
To check that synchronisation is working properly, t
describes an MSR and an array of predicated values. For each value where the predicate is true, mix regular and forced reads and writes to check that values written via one mechanism become visible via the other.
This logic is only applicable to read/write MSRs which expect to retain their written values on subsequent reads, and for values which will succeed when written.
Definition at line 29 of file msr.c.