Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1287561

Re: [Xen-devel] [PATCH] x86: Xen PV guests don't have the rtc_cmos platform device

From Boris Ostrovsky <boris.ostrovsky@oracle.com>
Newsgroups linux.kernel
Subject Re: [Xen-devel] [PATCH] x86: Xen PV guests don't have the rtc_cmos platform device
Date 2015-12-09 16:20 +0100
Message-ID <qDOH8-1CS-27@gated-at.bofh.it> (permalink)
References <qDO4p-1aj-15@gated-at.bofh.it> <qDOe5-1dO-15@gated-at.bofh.it> <qDOxs-1zF-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 12/09/2015 10:00 AM, Sander Eikelenboom wrote:
> On 2015-12-09 15:42, Jan Beulich wrote:
>>>>> On 09.12.15 at 15:32, <boris.ostrovsky@oracle.com> wrote:
>>> --- a/arch/x86/kernel/rtc.c
>>> +++ b/arch/x86/kernel/rtc.c
>>> @@ -200,6 +200,9 @@ static __init int add_rtc_cmos(void)
>>>      }
>>>  #endif
>>>
>>> +    if (paravirt_enabled())
>>> +        return -ENODEV;
>>
>> What about Xen Dom0?
>>
>> Jan
>
> Checked that in my testing and that still worked:
> [   16.733837] rtc_cmos 00:02: RTC can wake from S4
> [   16.734030] rtc_cmos 00:02: rtc core: registered rtc_cmos as rtc0
> [   16.734087] rtc_cmos 00:02: alarms up to one month, y3k, 114 bytes 
> nvram
> [   17.760329] rtc_cmos 00:02: setting system clock to 2015-12-09 
> 08:43:48 UTC (1449650628)
>
> and /dev/rtc and /dev/rtc0 both exist.
>
> But i don't know the nitty gritty details about why ...


That's because it is discovered by ACPI earlier. I don't know though 
whether we can always assume this will be the case.

-boris

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] x86: Xen PV guests don't have the rtc_cmos platform device Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2015-12-09 15:40 +0100
  Re: [Xen-devel] [PATCH] x86: Xen PV guests don't have the  rtc_cmos platform device "Jan Beulich" <JBeulich@suse.com> - 2015-12-09 15:50 +0100
    Re: [Xen-devel] [PATCH] x86: Xen PV guests don't have the  rtc_cmos platform device Sander Eikelenboom <linux@eikelenboom.it> - 2015-12-09 16:10 +0100
      Re: [Xen-devel] [PATCH] x86: Xen PV guests don't have the rtc_cmos  platform device Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2015-12-09 16:20 +0100
        Re: [Xen-devel] [PATCH] x86: Xen PV guests don't have the  rtc_cmos platform device "Jan Beulich" <JBeulich@suse.com> - 2015-12-09 16:30 +0100
          Re: [Xen-devel] [PATCH] x86: Xen PV guests don't have the rtc_cmos  platform device Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2015-12-09 19:20 +0100
      Re: [Xen-devel] [PATCH] x86: Xen PV guests don't have the rtc_cmos platform device Vitaly Kuznetsov <vkuznets@redhat.com> - 2015-12-09 16:30 +0100

csiph-web