ia64/xen-unstable

changeset 19407:db20b819679c

tmem: Placeholder hypercall.

Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Mar 20 08:40:18 2009 +0000 (2009-03-20)
parents f87b2374cdf0
children b7f7fb22210e
files xen/arch/x86/x86_32/entry.S xen/arch/x86/x86_64/compat/entry.S xen/arch/x86/x86_64/entry.S xen/common/memory.c
line diff
     1.1 --- a/xen/arch/x86/x86_32/entry.S	Fri Mar 20 08:34:24 2009 +0000
     1.2 +++ b/xen/arch/x86/x86_32/entry.S	Fri Mar 20 08:40:18 2009 +0000
     1.3 @@ -703,6 +703,7 @@ ENTRY(hypercall_table)
     1.4          .long do_sysctl             /* 35 */
     1.5          .long do_domctl
     1.6          .long do_kexec_op
     1.7 +        .long do_tmem_op
     1.8          .rept __HYPERVISOR_arch_0-((.-hypercall_table)/4)
     1.9          .long do_ni_hypercall
    1.10          .endr
    1.11 @@ -750,6 +751,7 @@ ENTRY(hypercall_args_table)
    1.12          .byte 1 /* do_sysctl            */  /* 35 */
    1.13          .byte 1 /* do_domctl            */
    1.14          .byte 2 /* do_kexec_op          */
    1.15 +        .byte 1 /* do_tmem_op           */
    1.16          .rept __HYPERVISOR_arch_0-(.-hypercall_args_table)
    1.17          .byte 0 /* do_ni_hypercall      */
    1.18          .endr
     2.1 --- a/xen/arch/x86/x86_64/compat/entry.S	Fri Mar 20 08:34:24 2009 +0000
     2.2 +++ b/xen/arch/x86/x86_64/compat/entry.S	Fri Mar 20 08:40:18 2009 +0000
     2.3 @@ -408,6 +408,7 @@ ENTRY(compat_hypercall_table)
     2.4          .quad do_sysctl                 /* 35 */
     2.5          .quad do_domctl
     2.6          .quad compat_kexec_op
     2.7 +        .quad do_tmem_op
     2.8          .rept __HYPERVISOR_arch_0-((.-compat_hypercall_table)/8)
     2.9          .quad compat_ni_hypercall
    2.10          .endr
    2.11 @@ -455,6 +456,7 @@ ENTRY(compat_hypercall_args_table)
    2.12          .byte 1 /* do_sysctl                */  /* 35 */
    2.13          .byte 1 /* do_domctl                */
    2.14          .byte 2 /* compat_kexec_op          */
    2.15 +        .byte 1 /* do_tmem_op               */
    2.16          .rept __HYPERVISOR_arch_0-(.-compat_hypercall_args_table)
    2.17          .byte 0 /* compat_ni_hypercall      */
    2.18          .endr
     3.1 --- a/xen/arch/x86/x86_64/entry.S	Fri Mar 20 08:34:24 2009 +0000
     3.2 +++ b/xen/arch/x86/x86_64/entry.S	Fri Mar 20 08:40:18 2009 +0000
     3.3 @@ -692,6 +692,7 @@ ENTRY(hypercall_table)
     3.4          .quad do_sysctl             /* 35 */
     3.5          .quad do_domctl
     3.6          .quad do_kexec_op
     3.7 +        .quad do_tmem_op
     3.8          .rept __HYPERVISOR_arch_0-((.-hypercall_table)/8)
     3.9          .quad do_ni_hypercall
    3.10          .endr
    3.11 @@ -739,6 +740,7 @@ ENTRY(hypercall_args_table)
    3.12          .byte 1 /* do_sysctl            */  /* 35 */
    3.13          .byte 1 /* do_domctl            */
    3.14          .byte 2 /* do_kexec             */
    3.15 +        .byte 1 /* do_tmem_op           */
    3.16          .rept __HYPERVISOR_arch_0-(.-hypercall_args_table)
    3.17          .byte 0 /* do_ni_hypercall      */
    3.18          .endr
     4.1 --- a/xen/common/memory.c	Fri Mar 20 08:34:24 2009 +0000
     4.2 +++ b/xen/common/memory.c	Fri Mar 20 08:40:18 2009 +0000
     4.3 @@ -560,6 +560,17 @@ long do_memory_op(unsigned long cmd, XEN
     4.4      return rc;
     4.5  }
     4.6  
     4.7 +/* Temporary placeholder. */
     4.8 +int do_tmem_op(void *tmem_op)
     4.9 +{
    4.10 +    static bool_t warned;
    4.11 +
    4.12 +    if ( !test_and_set_bool(warned) )
    4.13 +        printk("tmem: not implemented\n");
    4.14 +
    4.15 +    return -ENOSYS;
    4.16 +}
    4.17 +
    4.18  /*
    4.19   * Local variables:
    4.20   * mode: C