[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] x86emul/test: use MSR constants
commit 01ffbe8bcffdc5c6c98f0715bac95f3348b1c0cc Author: Jan Beulich <jbeulich@xxxxxxxx> AuthorDate: Fri Sep 6 12:48:42 2024 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Fri Sep 6 12:48:42 2024 +0200 x86emul/test: use MSR constants msr-index.h has been in use for a while, so use the identifiers it provides in place of raw numbers plus comments. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- tools/tests/x86_emulator/test_x86_emulator.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/tests/x86_emulator/test_x86_emulator.c b/tools/tests/x86_emulator/test_x86_emulator.c index 94a2bbab93..3a6054441a 100644 --- a/tools/tests/x86_emulator/test_x86_emulator.c +++ b/tools/tests/x86_emulator/test_x86_emulator.c @@ -689,11 +689,11 @@ static int read_msr( { switch ( reg ) { - case 0xc0000080: /* EFER */ - *val = ctxt->addr_size > 32 ? 0x500 /* LME|LMA */ : 0; + case MSR_EFER: + *val = ctxt->addr_size > 32 ? EFER_LME | EFER_LMA : 0; return X86EMUL_OKAY; - case 0xc0000103: /* TSC_AUX */ + case MSR_TSC_AUX: #define TSC_AUX_VALUE 0xCACACACA *val = TSC_AUX_VALUE; return X86EMUL_OKAY; -- generated by git-patchbot for /home/xen/git/xen.git#master
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |