1. A method, comprising: responsive to determining, by a processing device of a host computer system, that an active user session exists in a virtual machine operating in a hibernation state on the host computer system, disabling modifications of a hardware configuration parameter of the virtual machine; responsive to determining that the active user session has terminated, enabling modifications of the hardware configuration parameter of the virtual machine; and responsive to determining the hardware configuration parameter of the virtual machine has been modified, causing the virtual machine to discard, upon awakening, a previously saved memory state.