]> err.no Git - linux-2.6/commitdiff
KVM: x86 emulator: remove unused functions
authorLaurent Vivier <Laurent.Vivier@bull.net>
Tue, 18 Sep 2007 09:26:38 +0000 (11:26 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:52:46 +0000 (17:52 +0200)
Remove #ifdef functions never used

Signed-off-by: Laurent Vivier <Laurent.Vivier@bull.net>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/x86_emulate.c

index f12bc2c740405382c30bd00dc9dc8c75e0432cb3..9ea82f84743ec2ef8b6b11f0122f75d92d36310b 100644 (file)
@@ -1639,42 +1639,3 @@ cannot_emulate:
        DPRINTF("Cannot emulate %02x\n", b);
        return -1;
 }
-
-#ifdef __XEN__
-
-#include <asm/mm.h>
-#include <asm/uaccess.h>
-
-int
-x86_emulate_read_std(unsigned long addr,
-                    unsigned long *val,
-                    unsigned int bytes, struct x86_emulate_ctxt *ctxt)
-{
-       unsigned int rc;
-
-       *val = 0;
-
-       if ((rc = copy_from_user((void *)val, (void *)addr, bytes)) != 0) {
-               propagate_page_fault(addr + bytes - rc, 0);     /* read fault */
-               return X86EMUL_PROPAGATE_FAULT;
-       }
-
-       return X86EMUL_CONTINUE;
-}
-
-int
-x86_emulate_write_std(unsigned long addr,
-                     unsigned long val,
-                     unsigned int bytes, struct x86_emulate_ctxt *ctxt)
-{
-       unsigned int rc;
-
-       if ((rc = copy_to_user((void *)addr, (void *)&val, bytes)) != 0) {
-               propagate_page_fault(addr + bytes - rc, PGERR_write_access);
-               return X86EMUL_PROPAGATE_FAULT;
-       }
-
-       return X86EMUL_CONTINUE;
-}
-
-#endif