提交 edcbc401 编写于 作者: W Wei Huang 提交者: Paolo Bonzini

kvm_stat: Add aarch64 support

This patch enables aarch64 support for kvm_stat. The platform detection
is based on OS uname.
Signed-off-by: NWei Huang <wei@redhat.com>
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 b30934cb
......@@ -204,10 +204,18 @@ def ppc_init():
}
})
def aarch64_init():
globals().update({
'sc_perf_evt_open' : 241
})
def detect_platform():
if os.uname()[4].startswith('ppc'):
ppc_init()
return
elif os.uname()[4].startswith('aarch64'):
aarch64_init()
return
for line in file('/proc/cpuinfo').readlines():
if line.startswith('flags'):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册