Plus a few fixups along the way. To use wrmsr, you'll probably need to add the MSR to the write whitelist in devarch. The tool will tell you via errstr if wrmsr failed and why.
------------ You can also find this patch set at: [email protected]:brho/akaros.git From: 597386a35115 master To: 8daab1b7e92f msr And view them at: https://github.com/brho/akaros/compare/597386a35115...8daab1b7e92f ------------ Barret Rhoden (6): x86: Properly initialize MSR whitelists x86: Fix devarch's MSR error handling Remove MCS dissemination barrier Remove MAX_VCORES Add a helper for querying the number of cores Add rdmsr and wrmsr utilities kern/arch/x86/devarch.c | 43 ++++++++++++++++++++++------- tests/mhello.c | 7 ----- tests/rdmsr.c | 52 ++++++++++++++++++++++++++++++++++++ tests/wrmsr.c | 45 +++++++++++++++++++++++++++++++ user/parlib/include/parlib/mcs.h | 19 ------------- user/parlib/include/parlib/sysinfo.h | 13 +++++++++ user/parlib/include/parlib/vcore.h | 5 +--- user/parlib/mcs.c | 44 ------------------------------ user/parlib/sysinfo.c | 36 +++++++++++++++++++++++++ 9 files changed, 180 insertions(+), 84 deletions(-) create mode 100644 tests/rdmsr.c create mode 100644 tests/wrmsr.c create mode 100644 user/parlib/include/parlib/sysinfo.h create mode 100644 user/parlib/sysinfo.c -- 2.7.0.rc3.207.g0ac5344 -- You received this message because you are subscribed to the Google Groups "Akaros" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/d/optout.
