X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvlib%2Fphysmem.c;h=846f9a091aeb52ce5b70ba733fdafc40df60bc9c;hb=842506f3c9ac8136642d3f9b49bb73f05f63cfdb;hp=a62309552f52693143e1a0a02237b4b0532449e3;hpb=ba0da570f264785f6b50eff7829f6653c0924069;p=vpp.git diff --git a/src/vlib/physmem.c b/src/vlib/physmem.c index a62309552f5..846f9a091ae 100755 --- a/src/vlib/physmem.c +++ b/src/vlib/physmem.c @@ -29,7 +29,7 @@ #include #include -#ifdef __x86_64__ +#if defined(__x86_64__) && !defined(CLIB_SANITIZE_ADDR) /* we keep physmem in low 38 bits of VA address space as some IOMMU implamentation cannot map above that range */ #define VLIB_PHYSMEM_DEFAULT_BASE_ADDDR (1ULL << 36) @@ -178,6 +178,9 @@ vlib_physmem_config (vlib_main_t * vm, unformat_input_t * input) { if (unformat (input, "base-addr 0x%lx", &vpm->base_addr)) ; + else if (unformat (input, "max-size %U", + unformat_memory_size, &vpm->max_size)) + ; else return unformat_parse_error (input); }