From: Avi Kivity Date: Sun, 16 Mar 2008 16:48:26 +0000 (+0200) Subject: KVM: VMX: Restore tss even on x86_64 X-Git-Tag: v2.6.25-rc7~3^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dc832628229d2736fab10523566855c3cda622d;p=pandora-kernel.git KVM: VMX: Restore tss even on x86_64 The vmx hardware state restore restores the tss selector and base address, but not its length. Usually, this does not matter since most of the tss contents is within the default length of 0x67. However, if a process is using ioperm() to grant itself I/O port permissions, an additional bitmap within the tss, but outside the default length is consulted. The effect is that the process will receive a SIGSEGV instead of transparently accessing the port. Fix by restoring the tss length. Note that i386 had this working already. Closes bugzilla 10246. Signed-off-by: Avi Kivity --- Reading git-diff-tree failed