]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
x86-64, paravirt: Call set_iopl_mask() on 64 bits
authorH. Peter Anvin <hpa@zytor.com>
Thu, 10 Dec 2009 00:54:08 +0000 (16:54 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 10 Dec 2009 00:54:08 +0000 (16:54 -0800)
set_iopl_mask() is a no-op on 64 bits, but it is also a paravirt hook,
so call it even on 64 bits.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Brian Gerst <brgerst@gmail.com>
LKML-Reference: <1260403316-5679-3-git-send-email-brgerst@gmail.com>

arch/x86/kernel/ioport.c

index 85ecc7c57ba69480d78eba5a4392139dfc2cb407..8eec0ec59af2a6545c074b330ca9d9565a7a3a70 100644 (file)
@@ -116,10 +116,8 @@ long sys_iopl(unsigned int level, struct pt_regs *regs)
                        return -EPERM;
        }
        regs->flags = (regs->flags & ~X86_EFLAGS_IOPL) | (level << 12);
-#ifdef CONFIG_X86_32
        t->iopl = level << 12;
        set_iopl_mask(t->iopl);
-#endif
 
        return 0;
 }