diff --git a/xen/common/memory.c b/xen/common/memory.c index ae805ccbe4..10becf7c1f 100644 --- a/xen/common/memory.c +++ b/xen/common/memory.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include @@ -1660,6 +1661,9 @@ long do_memory_op(unsigned long cmd, XEN_GUEST_HANDLE_PARAM(void) arg) break; case XENMEM_claim_pages: + if ( llc_coloring_enabled ) + return -EOPNOTSUPP; + if ( unlikely(start_extent) ) return -EINVAL;