Re: [PATCH v4 2/3] KVM: x86: Introduce allow list for MSR emulation

2020-09-01 Thread Alexander Graf
On 20.08.20 00:49, Jim Mattson wrote: On Mon, Aug 3, 2020 at 2:14 PM Alexander Graf wrote: --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -901,6 +901,13 @@ struct kvm_hv { struct kvm_hv_syndbg hv_syndbg; }; +struct msr_bitmap_range { + u32

Re: [PATCH v4 2/3] KVM: x86: Introduce allow list for MSR emulation

2020-08-19 Thread Jim Mattson
On Mon, Aug 3, 2020 at 2:14 PM Alexander Graf wrote: > --- a/arch/x86/include/asm/kvm_host.h > +++ b/arch/x86/include/asm/kvm_host.h > @@ -901,6 +901,13 @@ struct kvm_hv { > struct kvm_hv_syndbg hv_syndbg; > }; > > +struct msr_bitmap_range { > + u32 flags; > + u32 nmsrs; > +

[PATCH v4 2/3] KVM: x86: Introduce allow list for MSR emulation

2020-08-03 Thread Alexander Graf
It's not desireable to have all MSRs always handled by KVM kernel space. Some MSRs would be useful to handle in user space to either emulate behavior (like uCode updates) or differentiate whether they are valid based on the CPU model. To allow user space to specify which MSRs it wants to see