1. A method, comprising: determining a workload type associated with a workload being executed by a virtual machine running on a computer system; identifying, by a processing device, using a memory data structure comprising a plurality of records mapping memory device type identifiers to workload type identifiers, a memory device type associated with the workload type; identifying, by the processing device, a memory device associated with the memory device type; evaluating a memory pressure metric reflecting a period of time during which an application being executed by the computer system has been blocked by a memory allocation operation; responsive to determining that the memory pressure metric exceeds a threshold value, allocating a memory block on the identified memory device; and swapping memory pages of the virtual machine with the allocated memory block.