Re: [PATCH] KVM: PPC: Apply paravirt to all vcpu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 






On 22.11.2011, at 12:19, Liu Yu-B13201 <B13201@xxxxxxxxxxxxx> wrote:

> 
> 
>> -----Original Message-----
>> From: Alexander Graf [mailto:agraf@xxxxxxx] 
>> Sent: Tuesday, November 22, 2011 7:14 PM
>> To: Liu Yu-B13201
>> Cc: <kvm-ppc@xxxxxxxxxxxxxxx>; Liu Yu-B13201
>> Subject: Re: [PATCH] KVM: PPC: Apply paravirt to all vcpu
>> 
>> 
>> On 22.11.2011, at 10:55, Liu Yu <yu.liu@xxxxxxxxxxxxx> wrote:
>> 
>>> Previously, only primary vcpu get enabled paravirt.
>> 
>> Please fix it the other way around. Thd hypercall is CPU 
>> local and should stay that way, so we have to call it on each 
>> vcpu inside the guest.
>> 
> 
> The guest kernel already use on_each_cpu()
> But seems it doesn't work.
> The place primary cpu do hypercall is still in early_init
> where secondary cpus don't get kicked.

Ouch. Then let's go with this approach and

a) update the hypercall documentation
b) change the guest code to not loop through all cpus
c) flush the tlb cache on all vcpus from the hc handler

Alex

> 
--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM Development]     [KVM ARM]     [KVM ia64]     [Linux Virtualization]     [Linux USB Devel]     [Linux Video]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux