]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vmm: emulate INVD by ignoring it
authorCorvin Köhne <CorvinK@beckhoff.com>
Wed, 27 Jul 2022 14:39:47 +0000 (16:39 +0200)
committerEmmanuel Vadot <manu@FreeBSD.org>
Wed, 27 Jul 2022 16:20:47 +0000 (18:20 +0200)
commit4eadbef92493ea8d375207b2c2a0bd3a22603750
treefc44619a7ca96f097db955bf59b8edcb09d259cf
parent532d4fbfa0829be624bd1eea0e264b42d7dbea75
vmm: emulate INVD by ignoring it

On physical systems the ram isn't initialized on boot. So, coreboot uses
the cache as ram in this boot phase. When exiting cache as ram, coreboot
calls INVD for making the cache consistent.

In a virtual environment ram is always initialized and the cache is
always consistent. So, we can safely ignore this call.

Reviewed by: jhb, imp
Differential Revision: https://reviews.freebsd.org/D35620
Sponsored by: Beckhoff Automation GmbH & Co. KG
sys/amd64/vmm/amd/svm.c
sys/amd64/vmm/intel/vmx.c