vmm: fix set but not used warnings
(cherry picked from commit f877977a034b41bedacdf507e79e4233b28a8bfc)