]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: use proper port value when checking io instruction permission
authorMarcelo Tosatti <mtosatti@redhat.com>
Mon, 30 May 2011 18:23:14 +0000 (15:23 -0300)
committerAvi Kivity <avi@redhat.com>
Mon, 6 Jun 2011 07:52:09 +0000 (10:52 +0300)
commit8ce2ca6f8313a432cde1a2bfe8ce5d5841fca97f
tree7e84882430b604226a822b32be6ab29107fc0c73
parent8239129580b2630b51edf9e65a5488613141c969
KVM: x86: use proper port value when checking io instruction permission

Commit 65e37573023 moved the permission check for io instructions
to the ->check_perm callback. It failed to copy the port value from RDX
register for string and "in,out ax,dx" instructions.

Fix it by reading RDX register at decode stage when appropriate.

Fixes FC8.32 installation.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/emulate.c