On 10/04/2018 17:31, Sean Christopherson wrote: > 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 > The right thing to do is to change the tests to use the new forced emulation prefix, and skip if it is not available. I'll try to post a patch later today. Thanks, Paolo