The following patch fixes the access checking behavior changed in 7aa4ee5. Kvm_stat will now fall back to debugfs statistics if the tracefs ones were chosen but are not available. It will then print a warning and wait five seconds until it continues.
Five seconds are not long, but I do not want to annoy users with longer delays and the message is still visible after closing kvm_stat. Janosch Frank (1): scripts/kvm/kvm_stat: Fix tracefs access checking scripts/kvm/kvm_stat | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) -- 2.3.0