Open eyberg opened 5 years ago
A command ops accel-check
could be implemented rather easily. The command would provide some debug info:
Your system does not support hardware acceleration
Your system support hardware acceleration but no hypervisors found. Supported hypervisors are ...
Your user <username> is not part of the kvm group. Please add your user to the kvm group ...
nah - I was just thinking of a help section for docs listing some of the checks you mentioned - eg: are you in a vm already, do you have rights to kvm, etc.. but if you want to roll an accel-check I'm not opposed to that either - I'm already thinking of ways to automate help/debugging
Does mean add a detailed description akin to:
1) Check to see if your system supports Accel 2) Check to see if the modules are loaded on linux 3) Check to see if you are part of the
kvm
group on linux 4) Try runninghello world
example with accel enabledIs that the kind of debugging we are talking about? To help users get accel working? Or are we talking abut something more low level?
Note that on MacOS accel doesn't really need much documentation. If you are using a version of MacOS that has
hv_support
and you are using a version ofqemu
that hashv_support
then you are good if you added the accel flag to your config. Most modern Macs fall into this category.