cmd/sbi: format KVM version
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 14 Aug 2022 19:57:14 +0000 (21:57 +0200)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Tue, 6 Sep 2022 05:00:58 +0000 (13:00 +0800)
commitaa8aa48b4c32fafaf2c393b4a937b0b35668943e
treea5710ac6e891815908b6f309acb8c68e99ed82b2
parentac48fc3deb3708fec4bfd49dc878b67b57a8ebfb
cmd/sbi: format KVM version

Format the KVM implementation number in a human readable form.

With the patch output of the sbi command for Linux 5.19.1 looks like:

    => sbi
    SBI 0.3
    KVM 5.19.1
    Machine:
      Vendor ID 0
      Architecture ID 7005c
      Implementation ID 7005c
    Extensions:
      SBI Base Functionality
      Timer Extension
      IPI Extension
      RFENCE Extension
      Hart State Management Extension
      System Reset Extension

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
cmd/riscv/sbi.c