Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp578124ybh; Thu, 12 Mar 2020 07:21:58 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuUCHjt+dc+d6w24inqCGMLcB5DwoYeo9l1Yl6V/T5eraY6gLWY/wablHDlGdpkDT8f/EWH X-Received: by 2002:a9d:64d4:: with SMTP id n20mr6177977otl.193.1584022918635; Thu, 12 Mar 2020 07:21:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584022918; cv=none; d=google.com; s=arc-20160816; b=soMmjuWF3jIwQ2PJdXWOXXrrvJEJUAVPF3YotJoA6JIC6A1b9N4BiDtPQ/EBGksz+w eQmygGVmNzpa9/kLpP+/3k1VBI2zgysLlewPIKyn3INwcmFm7A4ZVIgAs6ssbGaguovW qsUVwhPOe8wU7Y+gGzyAYFHmQ/RGrhxDZiKEjyWd42Nw5xHZXK6iqhLT9C3Dg4DZjluJ p9mm9guZjMCN/9gZSGKDFPvzkj6fnBEbWGK6BUPGE1d+tLISnZTLKwqHIGSD53W++UcY LvlRlDpYYUx2mjgwODmLtVfEihPX/73iRr1+0uGUZgW4IknTIPeh2zRq8erWYNohGWch XXsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=iIqioCORkFRQcM2aAt5K+pM1bpGv7+ZfunFl/mdbIW4=; b=Aj0b7QzQWBhN1gDmx96wevAShtgQeoePEwBcPkbkb/CSC6rjEooExGjzsHYi7dDtWG fdA0VNgk/i8CLoZ7+LLpkTGh8/wysF6WZ9eY0wBeLr4woh3cX21v3vFBgd2iU3iJ4+0i G/3rI5KUcd5EdFOKUcsOlgEEiZ5FPZyUbLoywxBkRdOSKx9w2luPkK/lprz7QcWWRQHR rSc38tOstKddaa+AZMP3M22pp/ryCPWolrfe3El8IwbRRm83V72c5EOKru4HCGTRJGtV 9oFpfAQzxjkoWjImmQW422oRwa+SlKw5sf/ePdw3Ie+FIijq7G35evHW9MDNYingNA2z g5Vg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h10si2596897oie.63.2020.03.12.07.21.46; Thu, 12 Mar 2020 07:21:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727530AbgCLOUM (ORCPT + 99 others); Thu, 12 Mar 2020 10:20:12 -0400 Received: from mx2.suse.de ([195.135.220.15]:58324 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727123AbgCLOUL (ORCPT ); Thu, 12 Mar 2020 10:20:11 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id A1AEAB2F8; Thu, 12 Mar 2020 14:20:09 +0000 (UTC) From: Miroslav Benes To: boris.ostrovsky@oracle.com, jgross@suse.com, sstabellini@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, jpoimboe@redhat.com Cc: x86@kernel.org, xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, live-patching@vger.kernel.org, jslaby@suse.cz, Miroslav Benes Subject: [PATCH 0/2] x86/xen: Make idle tasks reliable Date: Thu, 12 Mar 2020 15:20:05 +0100 Message-Id: <20200312142007.11488-1-mbenes@suse.cz> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The unwinder reports idle tasks' stack on XEN PV as unreliable which complicates things for at least live patching. The two patches in the series try to amend that by using similar approach as non-XEN x86 does. However, I did not come up with a nice solution for secondary CPUs idle tasks. The patch just shows the idea what should be done but it is an ugly hack. Ideas are more than welcome. Miroslav Benes (2): x86/xen: Make the boot CPU idle task reliable x86/xen: Make the secondary CPU idle tasks reliable arch/x86/xen/smp_pv.c | 3 ++- arch/x86/xen/xen-head.S | 14 +++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) -- 2.25.1