Shouldn't there be a check here for snp_inited before calling rmpupdate.
- free_pages((unsigned long)sev_es_tmr,
- get_order(SEV_ES_TMR_SIZE));
+ __snp_free_firmware_pages(virt_to_page(sev_es_tmr),
+ get_order(sev_es_tmr_size),
+ false);
TMR page can exist even if the SNP is not supported.