KVM-VMI / kvm

Fork of KVM with Virtual Machine Introspection patches
Other
33 stars 28 forks source link

KVM self-tests fails on AMD hardware #47

Open Wenzel opened 3 years ago

Wenzel commented 3 years ago

I tried to setup the vagrant on an AMD processor, and the self-tests fails:

TASK [run kvm self-tests] ******************************************************
fatal: [kvmi]: FAILED! => changed=true 
  cmd:
  - ./tools/testing/selftests/kvm/x86_64/kvmi_test
  delta: '0:00:00.607688'
  end: '2021-02-18 15:32:08.759027'
  msg: non-zero return code
  rc: 254
  start: '2021-02-18 15:32:08.151339'
  stderr: |-
    ==== Test Assertion Failure ====
      x86_64/kvmi_test.c:829: get_ucall(ctx->vm, ctx->vcpu_id, &uc)
      pid=8492 tid=8522 - Success
         1  0x0000000000403337: vcpu_worker at kvmi_test.c:828
         2  0x00007fe482c65fa2: ?? ??:0
         3  0x00007fe482b964ce: ?? ??:0
      No guest request
  stderr_lines:
  - ==== Test Assertion Failure ====
  - '  x86_64/kvmi_test.c:829: get_ucall(ctx->vm, ctx->vcpu_id, &uc)'
  - '  pid=8492 tid=8522 - Success'
  - "     1\t0x0000000000403337: vcpu_worker at kvmi_test.c:828"
  - "     2\t0x00007fe482c65fa2: ?? ??:0"
  - "     3\t0x00007fe482b964ce: ?? ??:0"
  - '  No guest request'
  stdout: |-
    Testing guest mode: PA-bits:ANY, VA-bits:48,  4K pages
    Guest physical address width detected: 40
    KVMI version: 1
            singlestep: 0
            vmfunc: 0
            eptp: 0
            ve: 0
            spp: 0
    vcpu count: 1
    tsc_speed: 0 HZ
    get_registers rip 0x40bc0f
    cpuid(0, 0) => eax 0x0000000d, ebx 0x68747541, ecx 0x444d4163, edx 0x69746e65
    Hypercall event, rip 0x402e5d
    Breakpoint event, rip 0x402ee0, len 1
    CR4, old 0x220, new 0x40220
    Exception event: vector 6, error_code 0x0, cr2 0x0
  stdout_lines: <omitted>

Any ideas @adlazar ?