On Tue, 2018-04-10 at 17:40 +0800, Wanpeng Li wrote: > Hi Sean, > 2018-03-09 0:57 GMT+08:00 Sean Christopherson <sean.j.christopherson@xxxxxxxxx>: > > > > Use kvm_fast_pio_in() on VMX and consolidate x86's fast PIO code > > now that both VMX and SVM support fast PIO for IN and OUT. > I found the kvm-unit-tests/emulator.flat fails after this patchset. The tests that are failing rely on KVM to use emulate_instruction for an IN instruction. Now that IN doesn't trigger emulation the tests fail. The unit tests are easily fixed by replacing IN with INSB. Is anyone running the KVM unit tests on AMD hardware? SVM has been using fast PIO for a few years, i.e. these tests probably have been failing on AMD even since fast PIO was introduced. FAIL: movq mmx generates #MF FAIL: 64-bit mov imm2 FAIL: 16-bit smsw reg FAIL: 32-bit smsw reg FAIL: 64-bit smsw reg FAIL: nop FAIL: mov_dr6 Regards, Wanpeng Li