Re: [PATCH v19 097/130] KVM: x86: Split core of hypercall emulation to helper function

From: Isaku Yamahata
Date: Mon Apr 15 2024 - 18:51:31 EST


On Tue, Apr 09, 2024 at 05:28:05PM +0800,
Binbin Wu <binbin.wu@xxxxxxxxxxxxxxx> wrote:

> > +int kvm_emulate_hypercall(struct kvm_vcpu *vcpu)
> > +{
> > + unsigned long nr, a0, a1, a2, a3, ret;
> > + int op_64_bit;
>
> Can it be opportunistically changed to bool type, as well as the argument
> type of "op_64_bit" in __kvm_emulate_hypercall()?

Yes. We can also fix kvm_pv_send_ipi(op_64_bit).
--
Isaku Yamahata <isaku.yamahata@xxxxxxxxx>