Re: [PATCH] KVM: x86: Deflect unknown MSR accesses to user space

From: Vitaly Kuznetsov
Date: Wed Jul 29 2020 - 04:23:28 EST


Jim Mattson <jmattson@xxxxxxxxxx> writes:

> On Tue, Jul 28, 2020 at 5:41 AM Alexander Graf <graf@xxxxxxxxxx> wrote:
>>

...

>> While it does feel a bit overengineered, it would solve the problem that
>> we're turning in-KVM handled MSRs into an ABI.
>
> It seems unlikely that userspace is going to know what to do with a
> large number of MSRs. I suspect that a small enumerated list will
> suffice.

The list can also be 'wildcarded', i.e.
{
u32 index;
u32 mask;
...
}

to make it really short.

--
Vitaly