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