Re: [PATCH v4 3/4] xen: Mark "xen_nopvspin" parameter obsolete

From
Zhenzhong Duan <hidden>
Date
2019-10-06 07:54:25
Also in
kvm, lkml
Reply to
Boris Ostrovsky, 2019-10-04
On 2019/10/4 22:57, Boris Ostrovsky wrote:
On 10/3/19 10:02 AM, Zhenzhong Duan wrote:
quoted
Map "xen_nopvspin" to "nopvspin", fix stale description of "xen_nopvspin"
as we use qspinlock now.

Signed-off-by: Zhenzhong Duan <redacted>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>
Cc: Thomas Gleixner <redacted>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>

with a small nit
quoted
  void __init xen_init_spinlocks(void)
  {
+	if (nopvspin)
+		xen_pvspin = false;
  
  	/*  Don't need to use pvqspinlock code if there is only 1 vCPU. */
  	if (num_possible_cpus() == 1)
I'd fold the change into this 'if' statement, I think it will still be
clear what the comment refers to.
Good suggestion, will do that. Thanks

Zhenzhong
Thread (12 messages) 12 messages, 3 authors, last reply 2019-10-08
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help