1 /*
2  * Copyright 2009-2017 Citrix Ltd and other contributors
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published
6  * by the Free Software Foundation; version 2.1 only. with the special
7  * exception on linking described in file LICENSE.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU Lesser General Public License for more details.
13  */
14 
15 #include "libxl_osdeps.h"
16 
17 #include "libxl_internal.h"
18 
19 /* TMEM is gone. Leave some stubs here. */
20 
libxl_tmem_list(libxl_ctx * ctx,uint32_t domid,int use_long)21 char *libxl_tmem_list(libxl_ctx *ctx, uint32_t domid, int use_long)
22 {
23     GC_INIT(ctx);
24     LOGED(ERROR, domid, "Can not get tmem list");
25     GC_FREE;
26     return NULL;
27 }
28 
libxl_tmem_freeze(libxl_ctx * ctx,uint32_t domid)29 int libxl_tmem_freeze(libxl_ctx *ctx, uint32_t domid)
30 {
31     GC_INIT(ctx);
32     LOGED(ERROR, domid, "Can not freeze tmem pools");
33     GC_FREE;
34     return ERROR_FAIL;
35 }
36 
libxl_tmem_thaw(libxl_ctx * ctx,uint32_t domid)37 int libxl_tmem_thaw(libxl_ctx *ctx, uint32_t domid)
38 {
39     GC_INIT(ctx);
40     LOGED(ERROR, domid, "Can not thaw tmem pools");
41     GC_FREE;
42     return ERROR_FAIL;
43 }
44 
libxl_tmem_set(libxl_ctx * ctx,uint32_t domid,char * name,uint32_t set)45 int libxl_tmem_set(libxl_ctx *ctx, uint32_t domid, char* name, uint32_t set)
46 {
47     GC_INIT(ctx);
48     LOGED(ERROR, domid, "Can not set tmem %s", name);
49     GC_FREE;
50     return ERROR_FAIL;
51 }
52 
libxl_tmem_shared_auth(libxl_ctx * ctx,uint32_t domid,char * uuid,int auth)53 int libxl_tmem_shared_auth(libxl_ctx *ctx, uint32_t domid,
54                            char* uuid, int auth)
55 {
56     GC_INIT(ctx);
57     LOGED(ERROR, domid, "Can not set tmem shared auth");
58     GC_FREE;
59     return ERROR_FAIL;
60 }
61 
libxl_tmem_freeable(libxl_ctx * ctx)62 int libxl_tmem_freeable(libxl_ctx *ctx)
63 {
64     GC_INIT(ctx);
65     LOGE(ERROR, "Can not get tmem freeable memory");
66     GC_FREE;
67     return ERROR_FAIL;
68 }
69 
70 /*
71  * Local variables:
72  * mode: C
73  * c-basic-offset: 4
74  * indent-tabs-mode: nil
75  * End:
76  */
77