Re: [PATCHv1 dont apply] RFC: kvm eoi PV using shared memory

Avi Kivity
2012-04-17T09:22:59Z

On 04/16/2012 01:08 PM, Gleb Natapov wrote:
> > }
> >
> > +
> > + if (kvm_para_has_feature(KVM_FEATURE_EOI)) {
> > + kvm_guest_native_apic_write = apic->write;
> > + apic->write = kvm_guest_apic_write;
> > + wrmsrl(MSR_KVM_EOI_EN, __pa(&__get_cpu_var(apic_eoi)));
> > + }
> Can happen on more then one cpu. After it happens on two kvm_guest_apic_write()
> will call to itself.

It's also hacky. Try static_cpu_has() in the apic code (and add an eoi
method).

--
error compiling committee.c: too many arguments to function