Re: [PATCH 1/2] KVM: x86: Add emulation support for #GP triggered by VM instructions

From: Wei Huang
Date: Wed Jan 13 2021 - 00:16:04 EST




On 1/12/21 12:58 PM, Andy Lutomirski wrote:
Andrew Cooper points out that there may be a nicer workaround. Make
sure that the SMRAM and HT region (FFFD00000000 - FFFFFFFFFFFF) are
marked as reserved in the guest, too.

In theory this proposed solution can avoid intercepting #GP. But in reality SMRAM regions can be different on different machines. So this solution can break after VM migration.