From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4EFBDC43381 for ; Thu, 21 Mar 2019 17:49:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 24FE921902 for ; Thu, 21 Mar 2019 17:49:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728603AbfCURtu (ORCPT ); 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