Re: kvm-s390: Dont exit SIE on SIGP sense running

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

 



On 06/18/2010 12:16 AM, Christian Borntraeger wrote:
Avi, Marcello,

Newer (guest) kernels use sigp sense running in their spinlock
implementation to check if the other cpu is running before yielding
the processor. This revealed some wrong guest settings, causing
unnecessary exits for every sigp sense running.

Applied, thanks.

  void kvm_arch_vcpu_destroy(struct kvm_vcpu *vcpu)
  {
  	VCPU_EVENT(vcpu, 3, "%s", "free cpu");
+	clear_bit(63 - vcpu->vcpu_id, (unsigned long *)&vcpu->kvm->arch.sca->mcn);
  	if (vcpu->kvm->arch.sca->cpu[vcpu->vcpu_id].sda ==
  		(__u64) vcpu->arch.sie_block)
  		vcpu->kvm->arch.sca->cpu[vcpu->vcpu_id].sda = 0;

Unrelated, do these VCPU_EVENTs want to become ftrace tracepoints?

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

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


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux