[PATCH 07/41] KVM: Do not communicate to userspace through cpu registers during PIO

Date

Sun, 1 Apr 2007 17:35:04 +0300

Currently when passing the a PIO emulation request to userspace, werely on userspace updating %rax (on 'in' instructions) and %rsi/%rdi/%rcx(on string instructions). This (a) requires two extra ioctls for gettingand setting the registers and (b) is unfriendly to non-x86 archs, whenthey get kvm ports.

So fix by doing the register fixups in the kernel and passing to userspaceonly an abstract description of the PIO to be done.