Mounting hugepages (created on the host) to lxd container return wrong physical address

Hi All,

I have mounted the hugepage directory as a disk on the container. But when I mapped the hugepages on the container and tried to do a virt2phys address conversion the physical address is not correct and is different from the one I found when I perform virt2phys on the host.

Any ideas @stgraber ?

After setting security.privileged flag for the container, I am getting the correct physical address.

Thanks.