Re: [PATCH v6 07/12] Add async PF initialization to PV guest.

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

 



 On 10/08/2010 09:54 AM, Gleb Natapov wrote:
>  >+
>  >+static void kvm_guest_cpu_notify(void *dummy)
>  >+{
>  >+	if (!dummy)
>  >+		kvm_guest_cpu_init();
>  >+	else
>  >+		kvm_pv_disable_apf(NULL);
>  >+}
>
>  Why are you making decisions based on a dummy input?
>
>  The whole thing looks strange.  Use two functions?
>
What is so strange? Type of notification is passed as a parameter.
The code that does this is just under the function. I can rename
dummy to something else. Or make it two functions.

Two separate functions is simplest.

--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.

--
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