[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZoxcJP6AA5sUZBjs@google.com>
Date: Mon, 8 Jul 2024 14:37:40 -0700
From: Sean Christopherson <seanjc@...gle.com>
To: Maxim Levitsky <mlevitsk@...hat.com>
Cc: Paolo Bonzini <pbonzini@...hat.com>, Vitaly Kuznetsov <vkuznets@...hat.com>, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org, Hou Wenlong <houwenlong.hwl@...group.com>,
Kechen Lu <kechenl@...dia.com>, Oliver Upton <oliver.upton@...ux.dev>,
Binbin Wu <binbin.wu@...ux.intel.com>, Yang Weijiang <weijiang.yang@...el.com>,
Robert Hoo <robert.hoo.linux@...il.com>
Subject: Re: [PATCH v2 27/49] KVM: x86: Swap incoming guest CPUID into vCPU
before massaging in KVM_SET_CPUID2
On Thu, Jul 04, 2024, Maxim Levitsky wrote:
> On Fri, 2024-05-17 at 10:39 -0700, Sean Christopherson wrote:
> > @@ -529,7 +533,14 @@ static int kvm_set_cpuid(struct kvm_vcpu *vcpu, struct kvm_cpuid_entry2 *e2,
> > #endif
> > kvm_vcpu_after_set_cpuid(vcpu);
> >
> > +success:
> > + kvfree(e2);
> > return 0;
> > +
> > +err:
> > + swap(vcpu->arch.cpuid_entries, e2);
> > + swap(vcpu->arch.cpuid_nent, nent);
> > + return r;
> > }
> >
> > /* when an old userspace process fills a new kernel module */
>
> Hi,
>
> This IMHO is a good idea. You might consider moving this patch to the
> beginning of the patch series though, it will make more sense with the rest
> of the patches there.
I'll double check, but IIRC, there were dependencies that prevented moving this
patch earlier.
Powered by blists - more mailing lists