Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp879248img; Thu, 21 Mar 2019 10:50:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqzIPb5L6NF9SnzXF1fWoWUL0wDGF8g5wt2F3SJU0y/ai9HrIHGW99rFi4f7SHv9JyrE/J57 X-Received: by 2002:a17:902:b181:: with SMTP id s1mr4755341plr.321.1553190657243; Thu, 21 Mar 2019 10:50:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553190657; cv=none; d=google.com; s=arc-20160816; b=cgj2m4Nt9kZlUYYJGfhAPRZtPnuL9x2625rutmpaSTiIK0QPPqbKAXwBWZYbin4QAb 7d303EbGI/xOfxCxDqqQivqwEr8lDY7fBE+Ymosm4TQivZy/ZPrl2PI/sIt78hC0cQBN 6XRUi207SH0KkuNVRS49QinG3P/ogocvs1JR8Mq9lxYX5FJzytE++UqzLEfe/8d3IpmY L2KafmwS40KwT9Azo1obYcQegSxYXBdYEr2HipmeXRX5cQgy59hN+FIE5SW/IypR6tnD VhVmttclK2eLrglYvrXPeZG3GHkViWG57sl7dsI2PbDAkEikCp3UgbAuEmxnDui2d+Vb gDfw== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=5s8K0ded7tJro3u0DvZMYMy+4uXqoWw15kHMmn18mmM=; b=dr8EOp9RKRZTgtIzkV3OZ0Eqb/+Fa3Kc4xzQuFCdxkaloK+Urqt/W6uLJD9ApY3JDA CVVOaCWGTF7K5sqaHXOxGdtkZ8aIzYRcLDOuGQJZ+KLbnbyZwyq6UV+PyARFS/QVHGOL aqVPvl6955DWG4u0lAUSoPrbV2dw0sy+4a5hWeoOzYlJL+zyFP3DSf7O19ZfmlFJ6KtP jna9kVhtWKD8A52yqcACnx5XOlKGUMoQIErGoi0gjfsCmZMUi+e8IyJO6tNrLjXe0y+7 fLUs9VTGCZKPXlX8rlWnfXWkDANYfrByScFBBrYqd7GFQt1zpgxuYBCIUGawZjOHZUUy Rj8A== 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 v4si4662187pff.172.2019.03.21.10.50.39; Thu, 21 Mar 2019 10:50:57 -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 S1728577AbfCURtu (ORCPT + 99 others); Thu, 21 Mar 2019 13:49:50 -0400 Received: from smtp03.citrix.com ([162.221.156.55]:48841 "EHLO SMTP03.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727823AbfCURtt (ORCPT ); Thu, 21 Mar 2019 13:49:49 -0400 X-IronPort-AV: E=Sophos;i="5.60,253,1549929600"; d="scan'208";a="81274831" Subject: Re: [PATCH] xen/pv: Add PV specific legacy_pic struct to expose legacy IRQs. To: Boris Ostrovsky , , , References: <1553025739-92245-1-git-send-email-jennifer.herbert@citrix.com> <2eb1fdec-6cc0-7f62-3d4f-adc5dba9971e@oracle.com> CC: Juergen Gross , Stefano Stabellini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" From: Jennifer Herbert Message-ID: <5C93CEB7.9030701@citrix.com> Date: Thu, 21 Mar 2019 17:49:43 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0 MIME-Version: 1.0 In-Reply-To: <2eb1fdec-6cc0-7f62-3d4f-adc5dba9971e@oracle.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/03/19 23:06, Boris Ostrovsky wrote: > On 3/19/19 4:02 PM, Jennifer Herbert wrote: >> The ACPI tables doesn't always contain all IRQs for legacy devices >> such as RTC. Since no PIC controller is visible for a PV linux guest, >> under Xen, legacy_pic currently defaults to the null_legacy_pic - with >> reports no legacy IRQs. Since the commit "rtc: cmos: Do not assume >> irq 8 for rtc when there are no legacy irqs" by Hans de Goede >> (commit id: a1e23a42f1bdc00e32fc4869caef12e4e6272f26), the rtc now >> incorrectly decides it has no irq it can use, for some hardware. >> >> This patch rectifies the problem by providing a xen legacy_pic >> struct, which is much like the null_legacy_pic except that it >> reports NR_IRQS_LEGACY irqs. > I assume this is for dom0? > > Could there be the same problem with PVH dom0? (and if yes then this > should probably go into arch/x86/xen/enlighten.c). > > -boris > I am doing this to fix a problem with dom0. DomU doesn't seem to have an RTC, and so it is unaffected. I'm not familiar with PVH, but have now done some experiments. The RTC on PVH seems broken - but not quite in the same way as PV. More research is needed, however simply doing the same trick I did with PV will not fix the issue. I'll look further into it. Cheer, -jenny