Re: [PATCH v8 095/103] KVM: TDX: Handle TDX PV rdmsr/wrmsr hypercall

From: Isaku Yamahata
Date: Fri Aug 26 2022 - 02:47:12 EST


On Wed, Aug 17, 2022 at 03:40:24PM -0700,
Sagi Shahar <sagis@xxxxxxxxxx> wrote:

> On Sun, Aug 7, 2022 at 3:03 PM <isaku.yamahata@xxxxxxxxx> wrote:
> > +static int tdx_emulate_wrmsr(struct kvm_vcpu *vcpu)
> > +{
> > + u32 index = tdvmcall_a0_read(vcpu);
> > + u64 data = tdvmcall_a1_read(vcpu);
> > +
> > + if (!kvm_msr_allowed(vcpu, index, KVM_MSR_FILTER_READ) ||
> ^
> This should be KVM_MSR_FILTER_WRITE

Oops. Thanks. I'll fix it.
--
Isaku Yamahata <isaku.yamahata@xxxxxxxxx>