From 75ef7e84588cf574be7577362cf1eb711799283f Mon Sep 17 00:00:00 2001 From: yliu79 Date: Wed, 22 May 2019 10:38:15 -0700 Subject: [PATCH] DM: remove unused function vm_set_lowmem_limit Change-Id: I0f9ad089b8e72c7ecd9c83a9115727140c945c4f Tracked-On: #3123 Signed-off-by: Ying Liu Acked-by: Anthony Xu --- devicemodel/core/vmmapi.c | 6 ------ devicemodel/include/vmmapi.h | 1 - 2 files changed, 7 deletions(-) diff --git a/devicemodel/core/vmmapi.c b/devicemodel/core/vmmapi.c index f8dee18a2..3ed7faef0 100644 --- a/devicemodel/core/vmmapi.c +++ b/devicemodel/core/vmmapi.c @@ -280,12 +280,6 @@ vm_get_lowmem_limit(struct vmctx *ctx) return ctx->lowmem_limit; } -void -vm_set_lowmem_limit(struct vmctx *ctx, uint32_t limit) -{ - ctx->lowmem_limit = limit; -} - int vm_map_memseg_vma(struct vmctx *ctx, size_t len, vm_paddr_t gpa, uint64_t vma, int prot) diff --git a/devicemodel/include/vmmapi.h b/devicemodel/include/vmmapi.h index 82260f95c..065863f35 100644 --- a/devicemodel/include/vmmapi.h +++ b/devicemodel/include/vmmapi.h @@ -116,7 +116,6 @@ int hugetlb_setup_memory(struct vmctx *ctx); void hugetlb_unsetup_memory(struct vmctx *ctx); void *vm_map_gpa(struct vmctx *ctx, vm_paddr_t gaddr, size_t len); uint32_t vm_get_lowmem_limit(struct vmctx *ctx); -void vm_set_lowmem_limit(struct vmctx *ctx, uint32_t limit); size_t vm_get_lowmem_size(struct vmctx *ctx); size_t vm_get_highmem_size(struct vmctx *ctx); int vm_run(struct vmctx *ctx);