On 17/08/2020 16:57, Roger Pau Monne wrote:
> @@ -1005,6 +1013,13 @@ static int write_msr(unsigned int reg, uint64_t val,
> curr->arch.pv.gs_base_user = val;
> return X86EMUL_OKAY;
>
> +case MSR_EFER:
> +/* Silently drop writes that don't change the reported value. *
Silently drop writes to the EFER MSR for PV guests if the value is not
changed from what it's being reported. Current PV Linux will attempt
to write to the MSR with the same value that's been read, and raising
a fault will result in a guest crash.
As part of this work introduce a helper to easily