KVM: emulator: Fix io permission checking for 64bit guest
authorGleb Natapov <gleb@redhat.com>
Mon, 7 Mar 2011 12:55:06 +0000 (14:55 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Thu, 17 Mar 2011 16:08:33 +0000 (13:08 -0300)
commit5601d05b8c340ee2643febc146099325eff187eb
tree61fb3298bb267eecfd899621cc852114d636de52
parent831ca6093ca486060721f5c3c74f97b10f3172b9
KVM: emulator: Fix io permission checking for 64bit guest

Current implementation truncates upper 32bit of TR base address during IO
permission bitmap check. The patch fixes this.

Reported-and-tested-by: Francis Moreau <francis.moro@gmail.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_emulate.h
arch/x86/kvm/emulate.c
arch/x86/kvm/x86.c