tap: fix tap interface not working on Arm issue 69/21469/3
authorLijian.Zhang <Lijian.Zhang@arm.com>
Wed, 21 Aug 2019 09:51:16 +0000 (17:51 +0800)
committerDamjan Marion <dmarion@me.com>
Tue, 3 Sep 2019 15:55:40 +0000 (15:55 +0000)
commitba0da570f264785f6b50eff7829f6653c0924069
tree086908ccf181fd345ebaee7c1d92fb6685c83ed7
parent017dc45243bad1b3708d0a9b902d23ca47859344
tap: fix tap interface not working on Arm issue

The VPP code tries to set all userspace memory in the table via IOCTL
to VHOST_SET_MEM_TABLE. But on aarch64, the userspace address range is
larger (48 bits) than that on x86 (47 bits). Below is an segment from
/proc/[vpp]/maps.

fffb41200000-fffb43a00000 rw-s 00000000 00:0e 532232
/anon_hugepage (deleted)

Instead of setting all userspace memory space to vhost-net, will only set
the address space reserved by pmalloc module during initialization.

Type: fix

Change-Id: I91cb35e990869b42094cf2cd0512593733d33677
Signed-off-by: Lijian Zhang <Lijian.Zhang@arm.com>
Reviewed-by: Steve Capper <Steve.Capper@arm.com>
src/vlib/physmem.c
src/vlib/physmem.h
src/vnet/devices/tap/tap.c