From b14793cc5f3714b1c6ead00008f5250404c48307 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Thu, 1 Mar 2012 12:26:13 +0000 Subject: libxl: Remove xen/sched.h from public interface Signed-off-by: Ian Campbell --- tools/libxl/libxl_utils.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tools/libxl/libxl_utils.c') diff --git a/tools/libxl/libxl_utils.c b/tools/libxl/libxl_utils.c index 227364cffe..a5b3c17f55 100644 --- a/tools/libxl/libxl_utils.c +++ b/tools/libxl/libxl_utils.c @@ -507,6 +507,13 @@ void libxl_cputopology_list_free(libxl_cputopology *list, int nr) free(list); } +int libxl_domid_valid_guest(uint32_t domid) +{ + /* returns 1 if the value _could_ be a valid guest domid, 0 otherwise + * does not check whether the domain actually exists */ + return domid > 0 && domid < DOMID_FIRST_RESERVED; +} + /* * Local variables: * mode: C -- cgit v1.2.3